RogerDodger (talk | contribs) (add a list of all fighters) |
RogerDodger (talk | contribs) (add list function) |
||
Line 13: | Line 13: | ||
"Shaheen", "Steve", "Xiaoyu", "Yoshimitsu", "Zafina" | "Shaheen", "Steve", "Xiaoyu", "Yoshimitsu", "Zafina" | ||
} | } | ||
p.list = function() | |||
local r = '' | |||
for _, f in ipairs(p.fighters) do | |||
r = r .. "* [[" .. f .. "]]\n" | |||
end | |||
return r | |||
end | |||
p.class = function(frame) | p.class = function(frame) |
Revision as of 16:39, 5 July 2021
Documentation for this module may be created at Module:Fighter/doc
local p = {};
p.fighters = {
"Akuma", "Alisa", "Anna", "Armor King", "Asuka",
"Bob", "Bryan", "Claudio", "Devil Jin", "Dragunov",
"Eddy", "Eliza", "Fahkumram", "Feng", "Ganryu",
"Geese", "Gigas", "Heihachi", "Hwoarang", "Jack-7",
"Jin", "Josie", "Julia", "Katarina", "Kazumi",
"Kazuya", "King", "Kuma", "Kunimitsu", "Lars",
"Law", "Lee", "Lei", "Leo", "Leroy",
"Lidia", "Lili", "Lucky Chloe", "Marduk", "Master Raven",
"Miguel", "Negan", "Nina", "Noctis", "Paul",
"Shaheen", "Steve", "Xiaoyu", "Yoshimitsu", "Zafina"
}
p.list = function()
local r = ''
for _, f in ipairs(p.fighters) do
r = r .. "* [[" .. f .. "]]\n"
end
return r
end
p.class = function(frame)
local name = frame.args[1]
return p._class(name)
end
p._class = function(name)
local r = name:lower():gsub("%s+","-")
return r
end
return p