Difference between revisions of "Template:Planet"
m (wonder if this will work) |
|||
| Line 2: | Line 2: | ||
[[Category: Planets]] | [[Category: Planets]] | ||
{{#if: {{{class|}}}|[[Category: Class {{{class}}} planets]]|}} | {{#if: {{{class|}}}|[[Category: Class {{{class}}} planets]]|}} | ||
| − | {{#ifeq: {{{type}}}|unregistered|[[Category:Unregistered planets]]| Timetable code: {{{code|unknown}}}}} | + | {{#ifeq: {{{type}}}|unregistered|[[Category:Unregistered planets]]| |
| + | <nowiki/> | ||
| + | |||
| + | Timetable code: {{{code|unknown}}}}} | ||
{{#ifeq: {{{type}}}|scattered|[[Category:Scattered worlds]]|}} | {{#ifeq: {{{type}}}|scattered|[[Category:Scattered worlds]]|}} | ||
{{#ifeq: {{{type}}}|secondary|[[Category:Secondary Planets]]|}} | {{#ifeq: {{{type}}}|secondary|[[Category:Secondary Planets]]|}} | ||
| Line 25: | Line 28: | ||
code=WTF | code=WTF | ||
type=scattered | type=scattered | ||
| + | type=secondary | ||
type=moon | type=moon | ||
type=unregistered | type=unregistered | ||
Revision as of 11:28, 23 April 2010
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:
code=WTF type=scattered type=secondary type=moon type=unregistered empire=y enterprise=y federation=y chrome=y democrats=y fringe=y transit=y