Module:Appearance type
Appearance
| You might want to create a documentation page for this Scribunto module. Editors can experiment in this module's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this module. |
local p = {}
local types = {
-- Main character
main = "Main character of ",
["main character"] = "Main character of ",
m = "Main character of ",
ma = "Main character of ",
-- Supporting character
supporting = "Supporting character of ",
["supporting character"] = "Supporting character of ",
s = "Supporting character of ",
su = "Supporting character of ",
-- Reccuring character
recurring = "Recurring character of ",
["recurring character"] = "Recurring character of ",
re = "Recurring character of ",
-- One shot character
["one shot"] = "One shot character of ",
["one-shot"] = "One shot character of ",
["one shot character"] = "One shot character of ",
guest = "One shot character of ",
os = "One shot character of ",
g = "One shot character of ",
-- Minor character
minor = "Minor character of ",
["minor character"] = "Minor character of ",
mi = "Minor character of ",
-- Présence générique
yes = "Appears in ",
['true'] = "Appears in ",
["#default"] = "Appears in ",
y = "Appears in ",
t = "Appears in ",
o = "Appears in ",
oui = "Appears in ",
v = "Appears in ",
vrai = "Appears in ",
-- Mention
mention = "Mentioned in ",
mentioned = "Mentioned in ",
me = "Mentioned in ",
men = "Mentioned in ",
-- Visual presence only
picture = "Picture only in ",
photo = "Picture only in ",
-- Vocal presence only
voice = "Voice only in ",
-- Deleted scenes only
["deleted scenes"] = "Appears in deleted scenes of ",
del = "Appears in deleted scenes of ",
sup = "Appears in deleted scenes of ",
supp = "Appears in deleted scenes of ",
["scène supprimée"] = "Appears in deleted scenes of ",
["scènes supprimées"] = "Appears in deleted scenes of ",
-- Flashback only
flash = "Flashback only in ",
flashback = "Flashback only in ",
flashbacks = "Flashback only in ",
}
function p.render(frame)
local param = mw.ustring.lower(frame.args[1] or "yes")
return types[param] or types["#default"]
end
return p