Template:Galaxy Infobox: Difference between revisions
Appearance
ReisuDesign (talk | contribs) No edit summary |
Updated to DRUID infobox |
||
| Line 1: | Line 1: | ||
<includeonly> | <includeonly>{{#invoke:Infobox|main | ||
|kind = Galaxy | |||
|sep = , | |||
|title = {{{title|{{{name|{{PAGENAME}}}}}}}} | |||
|subtitle = {{{subtitle|}}} | |||
|image = {{#if:{{{image|}}}|[[File:{{{image|}}}]]|[[File:{{{title|{{{name|{{PAGENAME}}}}}}}} Icon.png]]}} | |||
|images = {{#if:{{{images|}}}|{{Array|{{{images}}}|;|[[File:²{#explode:{item}¦:¦0}²]]|,|template=1}}}} | |||
|tabs = {{#if:{{{images|}}}|{{Array|{{{images}}}|;|²{#explode:{item}¦:¦1}²|,|template=1}}}} | |||
|sections = Information | |||
|Information_nolabel = Yes | |||
|Information = Terrain, Climate, Details, Departure | |||
|Terrain = {{{terrain|}}} | |||
|Climate = {{{climate|}}} | |||
|Details_wide = Yes | |||
|Details = {{{details|}}} | |||
|Departure_wide = Yes | |||
|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.
Note: parts of or the entire template might not be visible without values provided.
| Main | Documentation | Usage |
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
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.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Name | name | Name of the Galaxy.
| String | suggested |
| Subtitle | subtitle | Subtitle of the Galaxy. | String | optional |
| Terrain | terrain | Terrain of the Galaxy.
| String | suggested |
| Climate | climate | Climate of the Galaxy.
| String | suggested |
| Details | details | Details description for the Galaxy.
| Content | suggested |
| Departure | departure | Departure description for the Galaxy.
| Content | suggested |
| Image | image | Override the default image with a single file.
| File | optional |
| Images | images | Override the default image with multiple files and tabs.
| Content | optional |