Difference between revisions of "Module:MonsterBox"

From Curse of Aros
Jump to: navigation, search
Line 4: Line 4:
  
 
function export.show(frame)
 
function export.show(frame)
table = mw.html.create('table'):addClass('rsw-infobox'):addClass('plainlinks')
+
local table = mw.html.create('table'):addClass('coa-infobox'):addClass('monster')
 +
 +
--class="infobox-header" colspan="2"| {{{name}}}
 +
local tr = table:tag('tr'):attr('colspan', '2'):wikitext('Monster name')
 +
 
     return tostring(table)
 
     return tostring(table)
 
end
 
end
  
 
return export
 
return export

Revision as of 12:23, 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 tr = table:tag('tr'):attr('colspan', '2'):wikitext('Monster name')
	
    return tostring(table)
end

return export