420
edits
HyperNervie (talk | contribs) (Forgot to return result from p.doclistvar 😰) |
HyperNervie (talk | contribs) No edit summary |
||
| Line 41: | Line 41: | ||
function p.doclist(frame) | function p.doclist(frame) | ||
local tempFmt = | local tempFmt = mw.text.trim(frame.args[1]) | ||
local noQM = not trim(frame.args["?"]) | local noQM = not trim(frame.args["?"]) | ||
local tabs = "" | local tabs = "" | ||
| Line 94: | Line 94: | ||
function p.doclistvar(frame) | function p.doclistvar(frame) | ||
local tempFmt = | local tempFmt = mw.text.trim(frame.args[1]) | ||
local wikitable = mw.html.create("table") | local wikitable = mw.html.create("table") | ||
:addClass("wikitable") | :addClass("wikitable") | ||
| Line 106: | Line 106: | ||
local function addEntry(entry) | local function addEntry(entry) | ||
for _, var in ipairs(entry.iconVariants) do | for _, var in ipairs(entry.iconVariants) do | ||
local tempCall = mw.ustring.format( | local tempCall = mw.ustring.format( | ||
tempFmt, entry.console, entry.stage, entry.number, var) | tempFmt, entry.console, entry.stage, entry.number, var) | ||
wikitable | wikitable:tag("tr") | ||
:tag("td") | :tag("td") | ||
:css("text-align", "center") | :css("text-align", "center") | ||
edits