Module:SystemInfobox: Difference between revisions

Content deleted Content added
WIP
 
m Added powers
Line 25:
if field.Value == "Archon Delaine" then
output = '[[File:Archon_Delaine_vector.svg|27px|link=]] ' .. '[[' .. field.Value .. ']]'
elseif field.Value == "nextAisling Duval" then
output = '[[File:nextAisling Duval_vector.svg|27px|link=]] ' .. '[[' .. field.Value .. ']]'
elseif field.Value == "nextArissa Lavigny-Duval" then
output = '[[File:next.svgA Lavigny Duval_vector|27px|link=]] ' .. '[[' .. field.Value .. ']]'
elseif field.Value == "IndependentDenton Patreus" then
output = '[[File:Denton Patreus_vector.svg|27px|link=]] ' .. '[[' .. field.Value .. ']]'
elseif field.Value == "Edmund Mahon" then
output = '[[File:Edmund_Mahon_vector.svg|27px|link=]] ' .. '[[' .. field.Value .. ']]'
elseif field.Value == "Felicia Winters" then
output = '[[File:Felicia Winters_vector.svg|27px|link=]] ' .. '[[' .. field.Value .. ']]'
elseif field.Value == "Li Yong-Rui" then
output = '[[File:Li Yong Rui_vector.svg|27px|link=]] ' .. '[[' .. field.Value .. ']]'
elseif field.Value == "Simguru Pranav Antal" or field.Value == "Pranav Antal" then
output = '[[File:Pranav Antal_vector.svg|27px|link=]] ' .. '[[' .. field.Value .. ']]'
elseif field.Value == "Zachary Hudson" then
output = '[[File:Zachary Hudson_vector.svg|27px|link=]] ' .. '[[' .. field.Value .. ']]'
elseif field.Value == "Zemina Torval" then
output = '[[File:Zemina Torval_vector.svg|27px|link=]] ' .. '[[' .. field.Value .. ']]'
else
output = '[[' .. field.Value .. ']]'
end
return output
end
end
 
function Infobox.Quantify( field, vars )
local unit = field.Unit or ''
local value = field.Value or field.Default or '?'
if HF.isempty(value) then
return '---'
else
return value .. ' ' .. unit
end
end