Difference between revisions of "Template:Planet"
| Line 3: | Line 3: | ||
{{#ifeq: {{{type}}}|scattered|[[Category:Scattered worlds]]|}} | {{#ifeq: {{{type}}}|scattered|[[Category:Scattered worlds]]|}} | ||
{{#ifeq: {{{type}}}|moon|[[Category:Moons]]|}} | {{#ifeq: {{{type}}}|moon|[[Category:Moons]]|}} | ||
| + | {{#ifeq: {{{empire|n}}}|n||[[Category:Imperial Worlds]]}} | ||
| + | {{#ifeq: {{{federation|n}}}|n||[[Category:Federation Worlds]]}} | ||
</includeonly> | </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. | <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. | ||
| Line 15: | Line 17: | ||
type=scattered | type=scattered | ||
type=moon | type=moon | ||
| + | empire=y | ||
| + | federation=y | ||
</noinclude> | </noinclude> | ||
Revision as of 23:17, 11 April 2007
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 empire=y federation=y