Difference between revisions of "Template:RegionInfoBox"
From EncyclopAtys
(9 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | {{#switch: {{lc: {{{continent}}}|{{PAGENAME}} }} | + | <includeonly>{{#switch: {{lc: {{{continent}}}|{{PAGENAME}} }} |
+ | | island = {{#vardefine:colour|{{ColorAtys|type=dark|group=ranger}}}} | ||
+ | | almati wood = {{#vardefine:colour|{{ColorAtys|type=dark|group=ranger}}}} | ||
| nexus minor = {{#vardefine:colour|{{ColorAtys|type=dark|group=ranger}}}} | | nexus minor = {{#vardefine:colour|{{ColorAtys|type=dark|group=ranger}}}} | ||
| [[nexus minor]] = {{#vardefine:colour|{{ColorAtys|type=dark|group=ranger}}}} | | [[nexus minor]] = {{#vardefine:colour|{{ColorAtys|type=dark|group=ranger}}}} | ||
Line 38: | Line 40: | ||
-->{{#if: {{{logo|}}}| |line-height: 1.6;}} <!-- | -->{{#if: {{{logo|}}}| |line-height: 1.6;}} <!-- | ||
-->font-size:1.2em; font-weight:bold;<!-- | -->font-size:1.2em; font-weight:bold;<!-- | ||
− | -->{{# | + | -->{{#ifeq: {{lc: {{{type}}} }} |c| font-variant:small-caps; }} <!-- |
-->"|<!-- | -->"|<!-- | ||
-->{{#if: {{{logo|}}}| [[Image:{{{logo}}}|64px|top|left]]}} <big>{{3DText|3D=glow|text={{#if: {{{name|}}}|{{{name}}}|{{PAGENAME}} }} }}</big> | -->{{#if: {{{logo|}}}| [[Image:{{{logo}}}|64px|top|left]]}} <big>{{3DText|3D=glow|text={{#if: {{{name|}}}|{{{name}}}|{{PAGENAME}} }} }}</big> | ||
− | {{#if: {{{race|}}}|{{3DText|3D=glow|text=Country of {{{race}}} people}} }} | + | {{#if: {{{race|}}}|{{3DText|3D=glow|group={{lc:{{{race}}}}}|text=Country of {{{race}}} people}} }} |
|- <!--Image--> | |- <!--Image--> | ||
|colspan="2" <!-- | |colspan="2" <!-- | ||
Line 56: | Line 58: | ||
|- <!--Continent--> | |- <!--Continent--> | ||
{{#if: {{{continent|}}} | !style="background: #{{#var:colour}}; background-image: linear-gradient(to left,#{{#var:colour}}, white 1%,rgba(255, 165, 0, 0.1) 4%,rgba(255, 165, 0, 0.5));<!-- | {{#if: {{{continent|}}} | !style="background: #{{#var:colour}}; background-image: linear-gradient(to left,#{{#var:colour}}, white 1%,rgba(255, 165, 0, 0.1) 4%,rgba(255, 165, 0, 0.5));<!-- | ||
− | -->text-align:right; padding:.2em .8em; color:white" {{!}} '''Continent''' | + | -->text-align:right; padding:.2em .8em; color:white" {{!}} '''Sub-Continent''' |
!style="background: #{{#var:colour}}; background-image: linear-gradient(to right, rgba(255, 240, 225, 0.9),rgba(255, 165, 0, 0.8));<!-- | !style="background: #{{#var:colour}}; background-image: linear-gradient(to right, rgba(255, 240, 225, 0.9),rgba(255, 165, 0, 0.8));<!-- | ||
-->text-align:left; padding:.2em .4em; " <!-- | -->text-align:left; padding:.2em .4em; " <!-- | ||
Line 89: | Line 91: | ||
-->{{!}} {{{size}}} km² | -->{{!}} {{{size}}} km² | ||
{{!}}- | }} | {{!}}- | }} | ||
− | |}<!-- | + | |}</includeonly><!-- |
--><noinclude> | --><noinclude> | ||
Line 143: | Line 145: | ||
:Used in case of Prime Roots regions, it specifies the section of Prime Roots the region is in. | :Used in case of Prime Roots regions, it specifies the section of Prime Roots the region is in. | ||
− | == | + | ==Examples== |
{{RegionInfoBox | {{RegionInfoBox | ||
+ | |name=Maiden Grove | ||
|image=MG_map.jpg | |image=MG_map.jpg | ||
|continent=Witherings | |continent=Witherings | ||
Line 150: | Line 153: | ||
|neut=Karavan | |neut=Karavan | ||
|size=22.123 | |size=22.123 | ||
− | |}} | + | |}} |
+ | {| style="width: 450px;" | ||
+ | |- | ||
+ | | <pre><nowiki>{{RegionInfoBox | ||
+ | |name=Maiden Grove | ||
+ | |image=MG_map.jpg | ||
+ | |continent=Witherings | ||
+ | |lvl=50 - 100 | ||
+ | |neut=Karavan | ||
+ | |size=22.123 | ||
+ | |}}</nowiki></pre> | ||
+ | |} | ||
+ | |||
+ | {{clear}} | ||
{{RegionInfoBox | {{RegionInfoBox | ||
|type=C | |type=C | ||
Line 160: | Line 176: | ||
|size=20.09 | |size=20.09 | ||
|}} | |}} | ||
+ | {| style="width: 450px;" | ||
+ | |- | ||
+ | | <pre><nowiki>{{RegionInfoBox | ||
+ | |type=C | ||
+ | |logo=Matis_emblem.png | ||
+ | |image=Forestnight.jpg | ||
+ | |name=Verdant Heights | ||
+ | |race=Matis | ||
+ | |eco=Forest | ||
+ | |size=20.09 | ||
+ | |}}</nowiki></pre> | ||
+ | |} | ||
+ | |||
[[Category: Infobox templates|RegionInfoBox]] | [[Category: Infobox templates|RegionInfoBox]] | ||
</noinclude> | </noinclude> |
Latest revision as of 08:13, 18 March 2022
Description
Usage
{{RegionInfoBox |image= |continent= |lvl= |neut= |size= |}}
Not optional parameters
- lvl
- Specifies the level range of the region, eg. 100 - 150
- neut
- specifies to what faction the neutral altar of the region belongs, can be:
- Kami and Karavan
- Kami
- Karavan
- None
- size
- Size of the region (km²)
Optional parameters
- continent
- Specifies on which continent the region is in.chose one:
- Aeden aqueous
- Burning desert
- Nexus minor
- Verdant heights
- Witherings
- name
- If used the template uses a different name than what {{PAGENAME}} provides.
- image
- Specifies the image that should be used for the region.
- section
- Used in case of Prime Roots regions, it specifies the section of Prime Roots the region is in.
Examples
Geographical Amber | |
Maiden Grove | |
Sub-Continent | Witherings |
---|---|
Region Level | 50 - 100 |
Neutral Altar | Karavan |
Area | 22.123 km² |
{{RegionInfoBox |name=Maiden Grove |image=MG_map.jpg |continent=Witherings |lvl=50 - 100 |neut=Karavan |size=22.123 |}} |
Geographical Amber | |
Verdant Heights
Country of Matis people | |
Homins | Matis |
---|---|
Area | 20.09 km² |
{{RegionInfoBox |type=C |logo=Matis_emblem.png |image=Forestnight.jpg |name=Verdant Heights |race=Matis |eco=Forest |size=20.09 |}} |