Template:Infobox star system: Difference between revisions
More actions
Automatic category lists and Create buttons; easier-to-read privacy policy; remove em dashes |
Redesign: Star Citizen Wiki style Main Page, infoboxes and notices; short descriptions; Create a page |
||
| Line 1: | Line 1: | ||
<includeonly> | <includeonly>{{SHORTDESC:{{#if:{{{short_description|}}}|{{{short_description}}}|Star system{{#if:{{{region|}}}| in {{#invoke:Plain|text|{{{region}}}}}}}}}}}<div class="evo-infobox">{{#if:{{{image|}}}|<div class="evo-infobox-image">[[File:{{{image}}}|400px]]</div>{{#if:{{{caption|}}}|<div class="evo-infobox-caption">{{{caption}}}</div>}}}}<div class="evo-infobox-head"><div class="evo-infobox-kicker">Star system</div><div class="evo-infobox-title">{{{name|{{PAGENAME}}}}}</div></div>{{Infobox/section|Overview|{{Infobox/row|Region|{{{region|}}}}}{{Infobox/row|Distance|{{{distance|}}}}}{{Infobox/row|Age|{{{age|}}}}}}}{{Infobox/section|Stars|{{Infobox/row|Stars|{{{stars|}}}}}{{Infobox/row|Star type|{{{star_type|}}}}}}}{{Infobox/section|Planetary system|{{Infobox/row|Planets|{{{planets|}}}}}{{Infobox/row|Other bodies|{{{other_bodies|}}}}}}}{{Infobox/section|Life|{{Infobox/row|Native species|{{{native_species|}}}}}{{Infobox/row|Inhabitants|{{{inhabitants|}}}}}{{Infobox/row|Discovered by|{{{discovered_by|}}}}}}}</div>{{#ifeq:{{NAMESPACE}}||[[Category:Systems]]}}</includeonly><noinclude> | ||
</div>{{#ifeq:{{NAMESPACE}}||[[Category:Systems]]}}</includeonly><noinclude> | |||
Infobox for star systems. Put it at the very top of the page. Every field is optional, and empty fields and sections are hidden. Pages using it in the main namespace are added to [[:Category:Systems]] automatically. | Infobox for star systems. Put it at the very top of the page. Every field is optional, and empty fields and sections are hidden. Pages using it in the main namespace are added to [[:Category:Systems]] automatically. | ||
It also sets the page's '''short description''' (the line under the title) automatically, for example "Star system in the Outer Reach". To write your own instead, fill in <code>short_description</code>. | |||
== Example == | == Example == | ||
| Line 17: | Line 18: | ||
<templatedata> | <templatedata> | ||
{ | { | ||
"description": "Summary box for a star system. All fields are optional; empty fields and sections are hidden.", | "description": "Summary box for a star system. All fields are optional; empty fields and sections are hidden. Also sets the page's short description automatically.", | ||
"format": "block", | "format": "block", | ||
"params": { | "params": { | ||
"name": { "label": "Name", "description": "Display name. Defaults to the page name.", "type": "string" }, | "name": { "label": "Name", "description": "Display name. Defaults to the page name.", "type": "string" }, | ||
"short_description": { "label": "Short description", "description": "The line shown under the page title. Leave empty to build it automatically from the region.", "type": "string" }, | |||
"image": { "label": "Image", "description": "File name without the File: prefix", "type": "wiki-file-name", "suggested": true }, | "image": { "label": "Image", "description": "File name without the File: prefix", "type": "wiki-file-name", "suggested": true }, | ||
"caption": { "label": "Caption", "type": "content" }, | "caption": { "label": "Caption", "type": "content" }, | ||
"region": { "label": "Region", "description": "Galactic region or sector", "type": "content" }, | "region": { "label": "Region", "description": "Galactic region or sector", "type": "content" }, | ||
| Line 30: | Line 31: | ||
"star_type": { "label": "Star type", "description": "Spectral class, e.g. G2V", "type": "content", "suggested": true }, | "star_type": { "label": "Star type", "description": "Spectral class, e.g. G2V", "type": "content", "suggested": true }, | ||
"planets": { "label": "Planets", "description": "Linked list of planets", "type": "content", "suggested": true }, | "planets": { "label": "Planets", "description": "Linked list of planets", "type": "content", "suggested": true }, | ||
"other_bodies": { "label": "Other bodies", "description": "Asteroid belts, comets, | "other_bodies": { "label": "Other bodies", "description": "Asteroid belts, comets, stations", "type": "content" }, | ||
"native_species": { "label": "Native species", "type": "content" }, | "native_species": { "label": "Native species", "type": "content" }, | ||
"inhabitants": { "label": "Inhabitants", "description": "Non-native species present", "type": "content" }, | "inhabitants": { "label": "Inhabitants", "description": "Non-native species present", "type": "content" }, | ||
"discovered_by": { "label": "Discovered by", "type": "content" } | "discovered_by": { "label": "Discovered by", "type": "content" } | ||
}, | }, | ||
"paramOrder": [ "name", " | "paramOrder": [ "name", "short_description", "image", "caption", "region", "distance", "age", "stars", "star_type", "planets", "other_bodies", "native_species", "inhabitants", "discovered_by" ] | ||
} | } | ||
</templatedata> | </templatedata> | ||
</noinclude> | </noinclude> | ||
Revision as of 06:00, 18 October 2026
Infobox for star systems. Put it at the very top of the page. Every field is optional, and empty fields and sections are hidden. Pages using it in the main namespace are added to Category:Systems automatically.
It also sets the page's short description (the line under the title) automatically, for example "Star system in the Outer Reach". To write your own instead, fill in short_description.
Example
{{Infobox star system
| image = Sigma Draconis.png
| stars = 1
| star_type = G9V (yellow-orange dwarf)
| distance = 18.8 light-years from Sol
| planets = [[Planet A]], [[Planet B]]
| native_species = [[Draconis Koi]]
}}
Summary box for a star system. All fields are optional; empty fields and sections are hidden. Also sets the page's short description automatically.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Name | name | Display name. Defaults to the page name. | String | optional |
| Short description | short_description | The line shown under the page title. Leave empty to build it automatically from the region. | String | optional |
| Image | image | File name without the File: prefix | File | suggested |
| Caption | caption | no description | Content | optional |
| Region | region | Galactic region or sector | Content | optional |
| Distance | distance | E.g. distance from Sol | Content | suggested |
| Age | age | no description | Content | optional |
| Stars | stars | Number or names of stars | Content | suggested |
| Star type | star_type | Spectral class, e.g. G2V | Content | suggested |
| Planets | planets | Linked list of planets | Content | suggested |
| Other bodies | other_bodies | Asteroid belts, comets, stations | Content | optional |
| Native species | native_species | no description | Content | optional |
| Inhabitants | inhabitants | Non-native species present | Content | optional |
| Discovered by | discovered_by | no description | Content | optional |