Module:Navbox fighter (Tekken 7): Difference between revisions
From Wavu Wiki, the 🌊 wavy Tekken wiki
RogerDodger (talk | contribs) m (RogerDodger moved page Module:Navbox fighter7 to Module:Navbox fighter (Tekken 7) without leaving a redirect) |
RogerDodger (talk | contribs) No edit summary |
||
(2 intermediate revisions by the same user not shown) | |||
Line 15: | Line 15: | ||
local list = "" | local list = "" | ||
for _, page in ipairs(pages) do | for _, page in ipairs(pages) do | ||
list = list .. "* [[" .. game.fighterPage(fighter, page:lower()) .. "|" .. page .. "]] | list = list .. "\n* [[" .. game.fighterPage(fighter, page:lower()) .. "|" .. page .. "]]" | ||
end | end | ||
return mw.getCurrentFrame():expandTemplate{ | return mw.getCurrentFrame():expandTemplate{ | ||
title = "Navbox", args = { | title = "Navbox", args = { | ||
borderWidth = "0 1px 2px 1px", | borderWidth = "0 1px 2px 1px", | ||
heading1 = "[[" .. fighter .. "]]", | heading1 = "[[" .. game.fighterPage(fighter) .. "|" .. fighter .. "]] (Tekken 7)", | ||
links1 = mw.getCurrentFrame():expandTemplate{ | links1 = mw.getCurrentFrame():expandTemplate{ | ||
title = "Dotlist", | title = "Dotlist", | ||
args = { list .. extra } | args = { list .. " " .. extra } | ||
} | } | ||
} | } |
Latest revision as of 06:08, 12 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 = "[[" .. game.fighterPage(fighter) .. "|" .. fighter .. "]] (Tekken 7)",
links1 = mw.getCurrentFrame():expandTemplate{
title = "Dotlist",
args = { list .. " " .. extra }
}
}
}
end
return p