Module:Tables

From Foundation - Wiki
Revision as of 10:14, 14 August 2022 by Sakaratte (talk | contribs) (Created page with "local com = require('Module:Common') local a = require('Module:Args') local i = require('Module:Icon') local p = {} function p.buildings(frame) local buildingList = mw.load('Module:Buildings') local args = a.getArgs(frame) local buildingTable = mw.html.create('table') buildingTable:addClass('wikitable sortable') :tag('tr') :tag('th') :wikitext('Name') :done() :tag('th') :wikitext('Prerequisites')...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Documentation for this module may be created at Module:Tables/doc

local com = require('Module:Common')
local a = require('Module:Args')
local i = require('Module:Icon')
local p = {}

function p.buildings(frame)
	local buildingList = mw.load('Module:Buildings')
	local args = a.getArgs(frame)
	local buildingTable = mw.html.create('table')
	buildingTable:addClass('wikitable sortable')
	    :tag('tr')
	        :tag('th')
	            :wikitext('Name')
	            :done()
	        :tag('th')
	            :wikitext('Prerequisites')
	            :done()
	        :tag('th')
	            :wikitext('Production')
	            :done()
	        :tag('th')
	            :wikitext('Construction Requirements')
	            :done()
	        :done()
end