Jump to content

Template:Galaxy Infobox: Difference between revisions

From The Petit Planet Wiki
ReisuDesign (talk | contribs)
No edit summary
Updated to DRUID infobox
Line 1: Line 1:
<includeonly><!--
<includeonly>{{#invoke:Infobox|main
--><infobox>
|kind = Galaxy
  <title source="name">
|sep = ,
  <format>{{#if:{{{number|}}}|<span class="number">{{{number}}} </span>}}{{{name|{{PAGENAME}}}}}</format>
|title = {{{title|{{{name|{{PAGENAME}}}}}}}}
  </title>
|subtitle = {{{subtitle|}}}
  <image source="image"/>
|image = {{#if:{{{image|}}}|[[File:{{{image|}}}]]|[[File:{{{title|{{{name|{{PAGENAME}}}}}}}} Icon.png]]}}
  <data source="terrain">
|images = {{#if:{{{images|}}}|{{Array|{{{images}}}|;|[[File:²{#explode:{item}¦:¦0}²]]|,|template=1}}}}
    <label>Terrain</label>
|tabs = {{#if:{{{images|}}}|{{Array|{{{images}}}|;|²{#explode:{item}¦:¦1}²|,|template=1}}}}
  </data>
|sections = Information
  <data source="climate">
 
    <label>Climate</label>
|Information_nolabel = Yes
  </data>
|Information = Terrain, Climate, Details, Departure
  <data source="details">
|Terrain = {{{terrain|}}}
      <format><li>{{{details}}}</li></format>
|Climate = {{{climate|}}}
  </data>
 
  <data source="departure">
|Details_wide = Yes
    <format><li>{{{departure}}}</li></format>
|Details = {{{details|}}}
  </data>
|Departure_wide = Yes
</infobox><!--
|Departure = {{{departure|}}}
}}<!--
 
-->{{Namespace|main=<!--
-->{{Namespace|main=<!--
-->[[Category:Galaxies]]<!--
-->[[Category:Galaxies]]<!--
-->}}<!--
-->}}<!--
--></includeonly><noinclude>{{Documentation|type=Infobox}}</noinclude>
--></includeonly><noinclude>{{Documentation|type=Infobox}}</noinclude>

Revision as of 13:20, 21 February 2026

Template documentation
Note: parts of or the entire template might not be visible without values provided.
This template uses Module:Infobox, a script written in Lua.
This template uses CSS found at MediaWiki:Gadget-Infobox.css.

Template that creates an infobox for Galaxies.

Syntax

{{Galaxy Infobox
|name      = 
|terrain   = 
|climate   = 
|details   = 
|departure = 
}}
  • name – Name of the Galaxy.
  • subtitle – Subtitle of the Galaxy.
  • terrain – Terrain of the Galaxy.
  • climate – Climate of the Galaxy.
  • details – Details description for the Galaxy.
  • departure – Departure description for the Galaxy.

Other parameters

  • image – Override the default image with a single file. Default: name Icon.png.
  • images – Override the default image with multiple files and tabs.
    • Format: Image 1.ext:Tab 1 name; Image 2.ext:Tab 2 name; ... ; Image N.ext:Tab N name.

Examples

{{Galaxy Infobox
|name      = Hexia
|terrain   = Verdant Plains
|climate   = Warm and Humid
|details   = Planets of the {{Color|help|Hexia}} Galaxy boast emerald plains and rolling, velvet hills, forming a fertile tapestry woven with glistening rivers and brimming with rustic charm.
|departure = Departing from {{Color|help|Hexia}} on a Starsea Voyage, you may come across bamboo Islets where leaves dance on solar winds, or ride rice-scented tides toward a paddy field Islet.
}}
Hexia
Terrain
Verdant Plains
Climate
Warm and Humid
Planets of the Hexia Galaxy boast emerald plains and rolling, velvet hills, forming a fertile tapestry woven with glistening rivers and brimming with rustic charm.
Departing from Hexia on a Starsea Voyage, you may come across bamboo Islets where leaves dance on solar winds, or ride rice-scented tides toward a paddy field Islet.

{{Galaxy Infobox
|name      = Example
|subtitle  = Subtitle example
|images    = Hexia Icon.png:Hexia; Taffeh Icon.png:Taffeh
|terrain   = Terrain example
|climate   = Climate example
|details   = Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
|departure = Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
}}
Example
Subtitle example
Hexia
Taffeh
Terrain
Terrain example
Climate
Climate example
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.

Template Data

Template that creates an infobox for Galaxies.

Template parameters[Edit template data]

This template has custom formatting.

ParameterDescriptionTypeStatus
Namename

Name of the Galaxy.

Example
Hexia
Stringsuggested
Subtitlesubtitle

Subtitle of the Galaxy.

Stringoptional
Terrainterrain

Terrain of the Galaxy.

Example
Verdant Plains
Stringsuggested
Climateclimate

Climate of the Galaxy.

Example
Warm and Humid
Stringsuggested
Detailsdetails

Details description for the Galaxy.

Example
Planets of the {{Color|help|Hexia}} Galaxy boast emerald plains and rolling, velvet hills, forming a fertile tapestry woven with glistening rivers and brimming with rustic charm.
Contentsuggested
Departuredeparture

Departure description for the Galaxy.

Example
Departing from {{Color|help|Hexia}} on a Starsea Voyage, you may come across bamboo Islets where leaves dance on solar winds, or ride rice-scented tides toward a paddy field Islet.
Contentsuggested
Imageimage

Override the default image with a single file.

Example
Unknown Icon.png
Fileoptional
Imagesimages

Override the default image with multiple files and tabs.

Example
Image 1.ext:Tab 1 name; Image 2.ext:Tab 2 name
Contentoptional