Module:Navbox fighter (Tekken 7): Difference between revisions
From Wavu Wiki, the 🌊 wavy Tekken wiki
RogerDodger (talk | contribs) No edit summary |
RogerDodger (talk | contribs) No edit summary |
||
Line 20: | Line 20: | ||
title = "Navbox", args = { | title = "Navbox", args = { | ||
borderWidth = "0 1px 2px 1px", | borderWidth = "0 1px 2px 1px", | ||
heading1 = "[[" .. fighter .. "]]", | heading1 = "[[" .. fighter .. "]] (Tekken 7)", | ||
links1 = mw.getCurrentFrame():expandTemplate{ | links1 = mw.getCurrentFrame():expandTemplate{ | ||
title = "Dotlist", | title = "Dotlist", |
Revision as of 07:19, 11 February 2024
Documentation for this module may be created at Module:Navbox fighter (Tekken 7)/doc
local p = {}
local game = require("Module:Game").Tekken7
local pages = {
"Movelist", "Strategy", "Punishers", "Combos",
"Tech", "Counterplay", "Changelog"
}
p.main = function(frame)
return p._main(frame.args[1], frame.args[2])
end
p._main = function(fighter, extra)
extra = extra or ""
local list = ""
for _, page in ipairs(pages) do
list = list .. "\n* [[" .. game.fighterPage(fighter, page:lower()) .. "|" .. page .. "]]"
end
return mw.getCurrentFrame():expandTemplate{
title = "Navbox", args = {
borderWidth = "0 1px 2px 1px",
heading1 = "[[" .. fighter .. "]] (Tekken 7)",
links1 = mw.getCurrentFrame():expandTemplate{
title = "Dotlist",
args = { list .. " " .. extra }
}
}
}
end
return p