Difference between revisions of "Template:Planet"

From Terra
Jump to: navigation, search
Line 1: Line 1:
 
<includeonly>[[Category: Planets]]
 
<includeonly>[[Category: Planets]]
 
{{#if: {{{class|}}}|[[Category: Class {{{class}}} planets]]|}}
 
{{#if: {{{class|}}}|[[Category: Class {{{class}}} planets]]|}}
 +
{{#ifeq: {{{type}}}|unregistered|[[Category:Unregistered planets]]|}}
 
{{#ifeq: {{{type}}}|scattered|[[Category:Scattered worlds]]|}}
 
{{#ifeq: {{{type}}}|scattered|[[Category:Scattered worlds]]|}}
 
{{#ifeq: {{{type}}}|moon|[[Category:Moons]]|}}
 
{{#ifeq: {{{type}}}|moon|[[Category:Moons]]|}}
Line 17: Line 18:
 
  type=scattered
 
  type=scattered
 
  type=moon
 
  type=moon
 +
type=unregistered
 
  empire=y
 
  empire=y
 
  federation=y
 
  federation=y
 
</noinclude>
 
</noinclude>

Revision as of 09:31, 4 May 2008

This template adds the current page to the 'planets' category, and also does some other magic. At some time in the future, it might be nice to add an infobox.

To use this template, include the following text on the planet page:

{{planet}}

You may also specify the class of the planet by using something like:

{{planet|class=2}}

The following are more useful arguments you can add:

type=scattered
type=moon
type=unregistered
empire=y
federation=y