Difference between revisions of "Module:MonsterBox"
| Line 8: | Line 8: | ||
-- Create header | -- Create header | ||
local td = table:tag('tr'):tag('td') | local td = table:tag('tr'):tag('td') | ||
| − | td:addClass('infobox-header') | + | td:addClass('infobox-header'):attr('colspan', '2') |
| − | + | :wikitext(frame.args.name) | |
| − | |||
| − | |||
return tostring(table) | return tostring(table) | ||
Revision as of 11:34, 11 February 2019
Documentation for this module may be created at Module:MonsterBox/doc
local export = {}
local pagename = mw.title.getCurrentTitle().fullText
function export.show(frame)
local table = mw.html.create('table'):addClass('coa-infobox'):addClass('monster')
-- Create header
local td = table:tag('tr'):tag('td')
td:addClass('infobox-header'):attr('colspan', '2')
:wikitext(frame.args.name)
return tostring(table)
end
return export