Module:Shiren Shield List Converter Proof of Concept
Jump to navigation
Jump to search
Documentation for this module may be created at Module:Shiren Shield List Converter Proof of Concept/doc
-- This would only be used on the List of Shields page.
local p = {}
local mw = require('mw')
function p.main(frame)
local args = frame.args
local output = mw.html.create()
local data = require("Module:Shiren Shield List Proof of Concept Data Cell")
local metatable = {__index = function () return "" end}
setmetatable(data, metatable)
shieldArg = args["shield"]
output:tag("h3"):wikitext(shieldArg):done()
output:tag("li"):wikitext("Alternate Japanese names include: (Japanese: " .. data[shieldArg]["alt_ja"] .. ")"):done()
return tostring(output) -- prints the data
end
return p