Difference between revisions of "Module:Tables"

From Foundation - Wiki
Jump to navigation Jump to search
(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')...")
(No difference)

Revision as of 10:14, 14 August 2022

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