FANDOM


local utils = require("Module:Utils")
local InfoboxUtils = require("Module:InfoboxUtils")
local yesno = require('Dev:Yesno')
 
local categorize = utils.categorize("Planet")
 
local p = {}
 
 p._format_star_amount = function(args)
    local amt = args.stars
   if tonumber(amt) then
       if amt == "0" then
           return utils.error_message("No constellation has 0 stars.  Use a different amount.")
        else
           return amt.." Stars" .. categorize("Constellation with "..amt.." stars")
         end
    else
    return utils.error_message("Stars amount must be a number.")
    end
end
 
p.format_star_amount=utils.make_wrapper_function(p._format_star_amount)
 
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.