FANDOM


local utils  = require("Module:Utils")
local InfoboxUtils = require("Module:InfoboxUtils")
local yesno = require("Dev:Yesno")
 
local categorize = utils.categorize("System")
 
local p = {}
 
p._format_Planets = function(args)
    local it = args.planets
    if tonumber(args.planets) then
        if args.planets == "0" then
            return utils.error_message("Please do not use the planets argument if the system has no planets.")
        else
        return it ..categorize("System with "..args.planets.." planets")
        end
    else
       return utils.error_message("planet amount must be a number.") 
    end
end
 
p.format_Planets = utils.make_wrapper_function(p._format_Planets)
 
return p

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.