FANDOM


local utils = require("Module:Utils")
local InfoboxUtils = require("Module:InfoboxUtils")
local yesno = require('Dev:Yesno')
 
local categorize = utils.categorize("Dwarf Planet")
 
local p = {}
 
 p._format_type = function(args)
    local type = args.type
    if type == "Terrestrial" then
        return "Terrestrial Dwarf Planet" .. categorize("Terrestrial Dwarf Planets")
    elseif type == "Gas Giant" then
        return utils.error_message("Please refrain from using Gas giant on a dwarf planet, as there are no known Dwarf planets that are made fully of gas.")
    else
       return utils.error_message("Invalid type.  Must be Terrestrial, or Gas Giant.")
    end
end
 
p.format_type=utils.make_wrapper_function(p._format_type)
 
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.