Module:History
From Vintage Story Wiki
Documentation for this module may be created at Module:History/doc
local p = {}
function p.create(f)
local args = require( 'Module:ProcessArgs' ).merge( true )
local parentVer
for str in string.gmatch( args[1], '(.*)%-' ) do
parentVer = str
end
local childVer = args[1]
local header = mw.html.create('th'):wikitext('History')
local parent = mw.html.create('td')
parent
:css('width', '20%')
:wikitext('[[' .. parentVer .. ']]')
local child = mw.html.create('td')
child
:css('width', '20%')
:wikitext('[[' .. childVer .. ']]')
local body = mw.html.create('table')
body
:css('border', '1px solid black')
:tag('tr')
:node(header):done()
:node(parent):done()
:node(child):done()
:wikitext(args[2]):done()
:done()
return body
end
return p