Jump to content
Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Infobox star system: Difference between revisions

Template page
Automatic category lists and Create buttons; easier-to-read privacy policy; remove em dashes
Merge planets into star system pages
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<includeonly><div class="evo-infobox"><div class="evo-infobox-title">{{{name|{{PAGENAME}}}}}</div>{{#if:{{{image|}}}|<div class="evo-infobox-image">[[File:{{{image}}}|{{{image_size|260px}}}]]{{#if:{{{caption|}}}|<div class="evo-infobox-caption">{{{caption}}}</div>}}</div>}}{{Infobox/header|Overview|{{{region|}}}{{{distance|}}}{{{age|}}}}}{{Infobox/row|Region|{{{region|}}}}}{{Infobox/row|Distance|{{{distance|}}}}}{{Infobox/row|Age|{{{age|}}}}}{{Infobox/header|Stars|{{{stars|}}}{{{star_type|}}}}}{{Infobox/row|Stars|{{{stars|}}}}}{{Infobox/row|Star type|{{{star_type|}}}}}{{Infobox/header|Planetary system|{{{planets|}}}{{{other_bodies|}}}}}{{Infobox/row|Planets|{{{planets|}}}}}{{Infobox/row|Other bodies|{{{other_bodies|}}}}}{{Infobox/header|Life|{{{native_species|}}}{{{inhabitants|}}}{{{discovered_by|}}}}}{{Infobox/row|Native species|{{{native_species|}}}}}{{Infobox/row|Inhabitants|{{{inhabitants|}}}}}{{Infobox/row|Discovered by|{{{discovered_by|}}}}}
<includeonly>{{SHORTDESC:{{#if:{{{short_description|}}}|{{{short_description}}}|Star system{{#if:{{{region|}}}|&#32;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 },
"image_size": { "label": "Image size", "type": "string", "default": "260px" },
"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 29: Line 30:
"stars": { "label": "Stars", "description": "Number or names of stars", "type": "content", "suggested": true },
"stars": { "label": "Stars", "description": "Number or names of stars", "type": "content", "suggested": true },
"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": "Links to the planet sections further down the page, e.g. [[#Nereid|Nereid]]", "type": "content", "suggested": true },
"other_bodies": { "label": "Other bodies", "description": "Asteroid belts, comets, stations…", "type": "content" },
"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", "image", "image_size", "caption", "region", "distance", "age", "stars", "star_type", "planets", "other_bodies", "native_species", "inhabitants", "discovered_by" ]
"paramOrder": [ "name", "short_description", "image", "caption", "region", "distance", "age", "stars", "star_type", "planets", "other_bodies", "native_species", "inhabitants", "discovered_by" ]
}
}
</templatedata>
</templatedata>
</noinclude>
</noinclude>

Latest revision as of 22:52, 19 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.

Template parameters[Edit template data]

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Namename

Display name. Defaults to the page name.

Stringoptional
Short descriptionshort_description

The line shown under the page title. Leave empty to build it automatically from the region.

Stringoptional
Imageimage

File name without the File: prefix

Filesuggested
Captioncaption

no description

Contentoptional
Regionregion

Galactic region or sector

Contentoptional
Distancedistance

E.g. distance from Sol

Contentsuggested
Ageage

no description

Contentoptional
Starsstars

Number or names of stars

Contentsuggested
Star typestar_type

Spectral class, e.g. G2V

Contentsuggested
Planetsplanets

Links to the planet sections further down the page, e.g. [[#Nereid|Nereid]]

Contentsuggested
Other bodiesother_bodies

Asteroid belts, comets, stations

Contentoptional
Native speciesnative_species

no description

Contentoptional
Inhabitantsinhabitants

Non-native species present

Contentoptional
Discovered bydiscovered_by

no description

Contentoptional