Difference between revisions of "Template:ContinentInfoBox"
From EncyclopAtys
m |
|||
| (9 intermediate revisions by one other user not shown) | |||
| Line 1: | Line 1: | ||
| − | <includeonly>{{#switch: {{lc: {{{race}}}}} | + | <includeonly> |
| + | {{RegionInfoBox | ||
| + | |type=C | ||
| + | |name={{{name|}}} | ||
| + | |logo={{{logo|}}} | ||
| + | |image={{{image|}}} | ||
| + | |continent={{{continent|}}} | ||
| + | |race={{{race|}}} | ||
| + | |eco={{{eco|}}} | ||
| + | |size={{{size|}}} | ||
| + | |}} | ||
| + | |||
| + | <!-----------------------{{#switch: {{lc: {{{race}}}}} | ||
| zoraï = {{#vardefine:colour|871F78}} | | zoraï = {{#vardefine:colour|871F78}} | ||
| matis = {{#vardefine:colour|339340}} | | matis = {{#vardefine:colour|339340}} | ||
| fyros = {{#vardefine:colour|C63}} | | fyros = {{#vardefine:colour|C63}} | ||
| tryker = {{#vardefine:colour|36C}} | | tryker = {{#vardefine:colour|36C}} | ||
| − | | #default = {{#vardefine:colour|000}} }}<!-- | + | | #default = {{#vardefine:colour|000}} }}<!-x- |
| − | -->{| class="infobox" | + | -x->{| class="infobox" |
|- | |- | ||
!align="centre" colspan="2" style="background: #{{#var:colour}}; padding: 2px;"| <font color="white">{{#if: {{{name|}}} | {{{name}}} | {{PAGENAME}} }}</font> | !align="centre" colspan="2" style="background: #{{#var:colour}}; padding: 2px;"| <font color="white">{{#if: {{{name|}}} | {{{name}}} | {{PAGENAME}} }}</font> | ||
| Line 11: | Line 23: | ||
! colspan="2" | {{#if: {{{image|}}} | [[Image:{{{image}}}|300px|{{PAGENAME}}]] }} | ! colspan="2" | {{#if: {{{image|}}} | [[Image:{{{image}}}|300px|{{PAGENAME}}]] }} | ||
|- | |- | ||
| − | !align="centre" colspan="2" style="background: #{{#var:colour}}; padding: | + | !align="centre" colspan="2" style="background: #{{#var:colour}}; padding: 0px;height:8px;" | |
|- | |- | ||
| | | | ||
|- | |- | ||
| − | {{#if: {{{race|}}} | ! align="center" style="background: #{{#var:colour}}; | + | {{#if: {{{race|}}} | ! align="center" style="background: #{{#var:colour}}; padding-left:5px;padding-right:5px;" {{!}} <font color="white">'''Homins:'''</font> |
!align="center" {{!}} {{{race}}} | !align="center" {{!}} {{{race}}} | ||
{{!}}- | }} | {{!}}- | }} | ||
| − | |}</includeonly><!-- | + | |- |
| + | {{#if: {{{eco|}}} | ! align="center" style="background: #{{#var:colour}}; padding-left:5px;padding-right:5px;" {{!}} <font color="white">'''Ecosystem:'''</font> | ||
| + | !align="center" {{!}} {{{eco}}} | ||
| + | {{!}}- | }} | ||
| + | |- | ||
| + | {{#if: {{{size|}}} | ! align="center" style="background: #{{#var:colour}}; padding-left:5px;padding-right:5px;" {{!}} <font color="white">'''Area:'''</font> | ||
| + | !align="center" {{!}} {{{size}}} km² | ||
| + | {{!}}- | }} | ||
| + | |}--></includeonly><!-- | ||
--><noinclude>{{clear}} __NOTOC__ | --><noinclude>{{clear}} __NOTOC__ | ||
| Line 28: | Line 48: | ||
|name= | |name= | ||
|race= | |race= | ||
| + | |eco= | ||
| + | |size= | ||
|}} | |}} | ||
</pre> | </pre> | ||
===Not optional parameters=== | ===Not optional parameters=== | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
===Optional parameters=== | ===Optional parameters=== | ||
| − | ; | + | ; race |
| − | :Specifies | + | :Specifies the homin inhabitants. |
; name | ; name | ||
| Line 52: | Line 65: | ||
:Specifies the image that should be used for the region. | :Specifies the image that should be used for the region. | ||
| − | ; | + | ;eco |
| − | : | + | :Name of the ecosystem. |
| + | |||
| + | ;size | ||
| + | :Square kilometers of size | ||
==Example== | ==Example== | ||
| Line 59: | Line 75: | ||
|image=MG_map.jpg | |image=MG_map.jpg | ||
|name=Witherings | |name=Witherings | ||
| − | |race= | + | |race=Zoraï |
| + | |eco=Jungle | ||
| + | |size=37.59 | ||
|}} | |}} | ||
[[Category: Infobox templates|ContinentInfoBox]] | [[Category: Infobox templates|ContinentInfoBox]] | ||
</noinclude> | </noinclude> | ||
Latest revision as of 14:58, 9 April 2019
Description
Usage
{{RegionInfoBox
|image=
|name=
|race=
|eco=
|size=
|}}
Not optional parameters
Optional parameters
- race
- Specifies the homin inhabitants.
- name
- If used the template uses a different name than what {{PAGENAME}} provides.
- image
- Specifies the image that should be used for the region.
- eco
- Name of the ecosystem.
- size
- Square kilometers of size
Example
| Geographical Amber | |
| Witherings
Country of Zoraï people | |
| Homins | Zoraï |
|---|---|
| Area | 37.59 km² |