Module:Infobox/styles.css: Difference between revisions
Appearance
nUSA>Nusawiki m 1 revision imported |
m 1 revision imported |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
-- Example Lua script for infobox logic | |||
local infobox = {} | |||
} | |||
.infobox- | function infobox.create(params) | ||
local content = mw.html.create('div') | |||
content:addClass('infobox-subbox') | |||
content:wikitext(params.content) | |||
return tostring(content) | |||
end | |||
return infobox | |||
Latest revision as of 16:50, 2 January 2025
Documentation for this module may be created at Module:Infobox/styles.css/doc
-- Example Lua script for infobox logic
local infobox = {}
function infobox.create(params)
local content = mw.html.create('div')
content:addClass('infobox-subbox')
content:wikitext(params.content)
return tostring(content)
end
return infobox