Module:GuyPerfect: Difference between revisions
From Inkipedia, the Splatoon wiki
GuyPerfect (talk | contribs) mNo edit summary |
GuyPerfect (talk | contribs) mNo edit summary |
||
Line 3: | Line 3: | ||
S2 = "Splatoon 2" | S2 = "Splatoon 2" | ||
} | } | ||
return { | return { | ||
gear = function(frame) | |||
local | local game = frame.args[1] | ||
local | local category = frame.args[2] | ||
local name = frame.args[3] | |||
local color = frame:expandTemplate | |||
{ title = "SiteColor", args = { GAMES[game] } } | |||
ret = ret .. "</div></div>" | |||
return | return ret | ||
end | end | ||
} | } |
Revision as of 01:00, 16 April 2021
Documentation for this module may be created at Module:GuyPerfect/doc
local GAMES = { S = "Splatoon", S2 = "Splatoon 2" } return { gear = function(frame) local game = frame.args[1] local category = frame.args[2] local name = frame.args[3] local color = frame:expandTemplate { title = "SiteColor", args = { GAMES[game] } } ret = ret .. "</div></div>" return ret end }