Difference between revisions of "Module:MonsterBox"
| Line 7: | Line 7: | ||
--class="infobox-header" colspan="2"| {{{name}}} | --class="infobox-header" colspan="2"| {{{name}}} | ||
| − | local | + | local td = table:tag('tr'):tag('td') |
| − | + | td:addClass('infobox-header') | |
| − | + | td:attr('colspan', '2') | |
| − | + | td:wikitext('Monster name') | |
| − | + | td:done() | |
return tostring(table) | return tostring(table) | ||
Revision as of 11:31, 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')
--class="infobox-header" colspan="2"| {{{name}}}
local td = table:tag('tr'):tag('td')
td:addClass('infobox-header')
td:attr('colspan', '2')
td:wikitext('Monster name')
td:done()
return tostring(table)
end
return export