FANDOM


local Infobox = {}
local HF = require('Module:HF')
 
function Infobox.Allegiance( field, vars )
    output = ''
    if not HF.isempty(field.Value) then
        if field.Value == "Alliance" then
            output = '[[File:Alliance_vector.svg|27px|link=]] ' .. '[[' .. field.Value .. ']]'
        elseif field.Value == "Empire" then
            output = '[[File:Empire_vector.svg|27px|link=]] ' .. '[[' .. field.Value .. ']]'
        elseif field.Value == "Federation" then
            output = '[[File:Federation_vector.svg|27px|link=]] ' .. '[[' .. field.Value .. ']]'
        elseif field.Value == "Independent" then
            output = field.Value
        else
            output = '[[' .. field.Value .. ']]'
        end
        return output
    end
end
 
function Infobox.Power( field, vars )
    output = ''
    if not HF.isempty(field.Value) then
        if field.Value == "Archon Delaine" then
            output = '[[File:Archon_Delaine_vector.svg|27px|link=]] ' .. '[[' .. field.Value .. ']]'
        elseif field.Value == "Aisling Duval" then
            output = '[[File:Aisling Duval_vector.svg|27px|link=]] ' .. '[[' .. field.Value .. ']]'
        elseif field.Value == "Arissa Lavigny-Duval" then
            output = '[[File:A Lavigny Duval_vector.svg|27px|link=]] ' .. '[[' .. field.Value .. ']]'
        elseif field.Value == "Denton 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 not HF.isempty(value) then 
        return value .. ' ' .. unit
    end
end
 
function Infobox.MainImage( field, vars )
    output = ''
    if not HF.isempty(field.Value) then
        output = '[[File:' .. field.Value .. '|306px]]'
    end
    return output
end
 
return Infobox

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.