Difference between revisions of "Template:Planet"

From Terra
Jump to: navigation, search
(New page: Category: Planets)
 
 
(27 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 +
<includeonly>
 +
==Subpages==
 +
<subpages format="ul" redlink="yes" redirects="external" />
 
[[Category: Planets]]
 
[[Category: Planets]]
 +
{{#if: {{{class|}}}|[[Category: Class {{{class}}} planets]]|}}
 +
{{#ifeq: {{{type}}}|unregistered|[[Category:Unregistered planets]]|
 +
<nowiki/>
 +
 +
Timetable code: {{{code|unknown}}}}}
 +
{{#ifeq: {{{type}}}|scattered|[[Category:Scattered worlds]]|}}
 +
{{#ifeq: {{{type}}}|secondary|[[Category:Secondary Planets]]|}}
 +
{{#ifeq: {{{type}}}|moon|[[Category:Moons]]|}}
 +
{{#ifeq: {{{enterprise|{{{core|n}}}}}}|n||[[Category:Core Worlds]]}}
 +
{{#ifeq: {{{empire|n}}}|n||[[Category:Imperial Worlds]]}}
 +
{{#ifeq: {{{federation|n}}}|n||[[Category:Federation Worlds]]}}
 +
{{#ifeq: {{{fringe|n}}}|n||[[Category:Celtic Fringe Worlds]]}}
 +
{{#ifeq: {{{chrome|n}}}|n||[[Category:Chrome Worlds]]}}
 +
{{#ifeq: {{{democrats|n}}}|n||[[Category:United Democratic League Worlds]]}}
 +
{{#ifeq: {{{transit|n}}}|n||[[Category: Known discontinuous transit routes]]}}
 +
 +
</includeonly>
 +
<noinclude>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:
 +
<nowiki>{{planet}}</nowiki>
 +
 +
You may also specify the class of the planet by using something like:
 +
<nowiki>{{planet|class=2}}</nowiki>
 +
 +
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
 +
</noinclude>

Latest revision as of 08:58, 29 October 2011

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