FANDOM


local utils = require("Module:Utils")
local InfoboxUtils = require("Module:InfoboxUtils")
local yesno = require('Dev:Yesno')
 
local categorize = utils.categorize("Moon")
 
local p = {}
 
 p._format_type = function(args)
    local type = args.type
    if type == "quasi" or type == "quasi-satellite" then
        return "quasi-satellite" .. categorize("quasi-satellite")
    elseif type == "manmade" or type == "manmade satellite" then
        return "Manmade Satellite" .. categorize("Manmade Satellite")
    elseif type == "natural" or type == "natural satellite" then
        return "Natural Satellite" .. categorize("NaturalSatellite")
    elseif type == "asteroid" or type == "captured" then
        return "Captured Satellite" .. categorize("Captured Satellite")
    else
       return utils.error_message("Invalid type.  Must be quasi, manmade, captured, or natural.")
    end
end
 
p.format_type=utils.make_wrapper_function(p._format_type)
 
 p._format_planet = function(args)
    local type = args.planet
    return "[[Planet:"..type.."|"..type.."]]"
end
 
p.format_planet=utils.make_wrapper_function(p._format_planet)
 
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.