Difference between revisions of "Template:RegionInfoBox"

From EncyclopAtys

Jump to: navigation, search
m
 
(21 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{#switch: {{lc: {{{continent}}}}}
+
<includeonly>{{#switch: {{lc: {{{continent}}}|{{PAGENAME}} }}
| nexus minor    = {{#vardefine:colour|6C3}}  
+
| island    = {{#vardefine:colour|{{ColorAtys|type=dark|group=ranger}}}}
| witherings      = {{#vardefine:colour|871F78}}  
+
| almati wood    = {{#vardefine:colour|{{ColorAtys|type=dark|group=ranger}}}}
| verdant heights = {{#vardefine:colour|339340}}  
+
| nexus minor    = {{#vardefine:colour|{{ColorAtys|type=dark|group=ranger}}}}
| burning desert  = {{#vardefine:colour|C63}}  
+
| [[nexus minor]]    = {{#vardefine:colour|{{ColorAtys|type=dark|group=ranger}}}}  
| aeden aqueous  = {{#vardefine:colour|36C}}  
+
| witherings      = {{#vardefine:colour|{{ColorAtys|type=dark|group=zorai}}}}
| #default        = {{#vardefine:colour|000}} }}<!--
+
| [[witherings]]      = {{#vardefine:colour|{{ColorAtys|type=dark|group=zorai}}}}  
-->{| class="infobox"
+
| verdant heights = {{#vardefine:colour|{{ColorAtys|type=dark|group=matis}}}}
|-
+
| [[verdant heights]] = {{#vardefine:colour|{{ColorAtys|type=dark|group=matis}}}}
!align="centre" colspan="2" style="background: #{{#var:colour}}; padding: 2px;"| <font color="white">{{#if: {{{name|}}} | {{{name}}} | {{PAGENAME}} }}</font>
+
| burning desert  = {{#vardefine:colour|{{ColorAtys|type=dark|group=fyros}}}}  
|-
+
| [[burning desert]] = {{#vardefine:colour|{{ColorAtys|type=dark|group=fyros}}}}
! colspan="2" | {{#if: {{{image|}}} | [[Image:{{{image}}}|300px|{{PAGENAME}}]] }}
+
| aeden aqueous  = {{#vardefine:colour|{{ColorAtys|type=dark|group=tryker}}}}  
|-
+
| [[aeden aqueous]]   = {{#vardefine:colour|{{ColorAtys|type=dark|group=tryker}}}}  
!align="centre" colspan="2" style="background: #{{#var:colour}}; padding: 0px;height:8px;" |
+
| #default        = {{#vardefine:colour|000}} }}
|-
+
{{#switch: {{lc: {{{race}}}}}
|
+
| fyros= {{#vardefine:colour|{{ColorAtys|type=dark|group=fyros}}}}
|-
+
| [[fyros]]= {{#vardefine:colour|{{ColorAtys|type=dark|group=fyros}}}}
{{#if: {{{continent|}}} | ! align="centre" style="background: #{{#var:colour}}; padding-left:5px;padding-right:5px;" {{!}} <font color="white">'''Continent:'''</font>
+
| matis= {{#vardefine:colour|{{ColorAtys|type=dark|group=matis}}}}
!align="center" {{!}} {{{continent}}}
+
| [[matis]]= {{#vardefine:colour|{{ColorAtys|type=dark|group=matis}}}}
 +
| tryker= {{#vardefine:colour|{{ColorAtys|type=dark|group=tryker}}}}
 +
| [[tryker]]= {{#vardefine:colour|{{ColorAtys|type=dark|group=tryker}}}}
 +
| zoraï= {{#vardefine:colour|{{ColorAtys|type=dark|group=zoraï}}}}
 +
| [[zoraï]]= {{#vardefine:colour|{{ColorAtys|type=dark|group=zoraï}}}}
 +
| zorai= {{#vardefine:colour|{{ColorAtys|type=dark|group=fyros}}}}
 +
| [[zorai]]= {{#vardefine:colour|{{ColorAtys|type=dark|group=fyros}}}}
 +
}}<!--
 +
-->{| class="infobox" style="float: right;    width:25%;  max-width:30%;  margin: 0.1em;  overflow: auto; <!--
 +
-->border: thick outset #C90; border-radius:1em;  padding: 0.1em;<!--
 +
-->background-color: #C90; background-color: rgba(255, 165, 0, 0.5); background-image: radial-gradient(rgba(255, 255, 255, 0.2),rgba(255, 165, 0, 0.5)); <!--
 +
-->cellspacing: 0.01em; cellpadding:0.01em; vertical-align:center;  "
 +
|-                                 <!--Box title-->
 +
|colspan="2" <!--
 +
-->style="text-align:right; vertical-align:center; padding:.01em .04em; <!--
 +
-->font-size:1em; font-weight:b_old; font-variant:small-caps;  " | {{3DText|text={{{title|Geographical Amber}}}}}
 +
|-                                <!--Logo, name-->
 +
|colspan="2" <!--
 +
-->style="background:transparent; background-color: (rgba(255, 165, 0, 0.2)); background-image: linear-gradient(rgba(255, 255, 255, 0.2),rgba(255, 165, 0, 0.5),#A50);<!--
 +
-->background:transparent; background: #{{#var:colour}}; background-image: linear-gradient(rgba(255, 255, 255, 0.2),#{{#var:colour}},#A50);<!--
 +
-->vertical-align:middle;text-align:left; padding:.02em .4em; <!--
 +
-->{{#if: {{{logo|}}}| |line-height: 1.6;}} <!--
 +
-->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: {{{race|}}}|{{3DText|3D=glow|group={{lc:{{{race}}}}}|text=Country of {{{race}}} people}} }}
 +
|-                                <!--Image-->
 +
|colspan="2" <!--
 +
-->style="background-color: (rgba(255, 165, 0, 0.2)); background-image: linear-gradient(rgba(255, 255, 255, 0.2),rgba(255, 165, 0, 0.5),#A50);<!--
 +
-->text-align:left; padding:0em; "<!--
 +
-->|{{#if: {{{image|}}}| [[Image:{{{image}}}|frameless|center]]}}
 +
|-                                <!--Race-->
 +
{{#if: {{{race|}}} | !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" {{!}} '''Homins'''
 +
!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; " <!--
 +
-->{{!}} {{{race}}}
 +
{{!}}- | }}
 +
|-                                <!--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));<!--
 +
-->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));<!--
 +
-->text-align:left; padding:.2em .4em; " <!--
 +
-->{{!}} {{{continent}}}
 +
{{!}}- | }}
 +
|-                                 <!--Section-->
 +
{{#if: {{{section|}}} | !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" {{!}} '''Prime&nbsp;Roots&nbsp;Section'''
 +
!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; " <!--
 +
-->{{!}} {{{section}}}
 +
{{!}}- | }}
 +
|-                                <!--Lvl-->
 +
{{#if: {{{lvl|}}} | !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" {{!}} '''Region&nbsp;Level'''
 +
!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; " <!--
 +
-->{{!}} {{{lvl}}}
 +
{{!}}- | }}
 +
|-                                <!--Neut-->
 +
{{#if: {{{neut|}}} | !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" {{!}} '''Neutral&nbsp;Altar'''
 +
!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; " <!--
 +
-->{{!}} {{{neut}}}
 
{{!}}- | }}
 
{{!}}- | }}
{{#if: {{{section|}}} | ! align="centre" style="background: #{{#var:colour}}; padding-left:5px;padding-right:5px;" {{!}} <font color="white">'''Prime Roots Section:'''</font>
+
|-                                <!--Size-->
!align="center" {{!}} {{{section}}}
+
{{#if: {{{size|}}} | !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" {{!}} '''Area'''
 +
!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; " <!--
 +
-->{{!}} {{{size}}} km²
 
{{!}}- | }}
 
{{!}}- | }}
!align="centre" style="background: #{{#var:colour}}; padding-left:5px;padding-right:5px;" | <font color="white">'''Region Level:'''</font>
+
|}</includeonly><!--
!align="center" | {{{lvl}}}
 
|-
 
!align="centre" style="background: #{{#var:colour}}; padding-left:5px;padding-right:5px;" | <font color="white">'''Neutral Altar:'''</font>
 
!align="center" | {{{neut}}}
 
|}<!--
 
  
--><noinclude>{{clear}} __NOTOC__
+
--><noinclude>
 +
{{Trad
 +
|DE=Template:RegionInfoBox
 +
|EN=Template:RegionInfoBox
 +
|ES=Template:RegionInfoBox
 +
|FR=Template:RegionInfoBox
 +
|RU=Template:RegionInfoBox
 +
}}{{clear}} __NOTOC__
 
==Description==
 
==Description==
 
===Usage===
 
===Usage===
Line 38: Line 109:
 
|lvl=
 
|lvl=
 
|neut=
 
|neut=
 +
|size=
 
|}}
 
|}}
 
</pre>
 
</pre>
Line 51: Line 123:
 
:* Karavan
 
:* Karavan
 
:* None
 
:* None
 +
 +
;size
 +
:Size of the region (km²)
  
 
===Optional parameters===
 
===Optional parameters===
 
; continent
 
; continent
:Specifies on which continent the region is in.
+
:Specifies on which continent the region is in.chose one:
 +
:*Aeden aqueous
 +
:*Burning desert
 +
:*Nexus minor
 +
:*Verdant heights
 +
:*Witherings
  
 
; name
 
; name
Line 65: 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.
  
==Example==
+
==Examples==
 
{{RegionInfoBox
 
{{RegionInfoBox
 +
|name=Maiden Grove
 +
|image=MG_map.jpg
 +
|continent=Witherings
 +
|lvl=50 - 100
 +
|neut=Karavan
 +
|size=22.123
 +
|}}
 +
{| style="width: 450px;"
 +
|-
 +
| <pre><nowiki>{{RegionInfoBox
 +
|name=Maiden Grove
 
|image=MG_map.jpg
 
|image=MG_map.jpg
 
|continent=Witherings
 
|continent=Witherings
 
|lvl=50 - 100
 
|lvl=50 - 100
 
|neut=Karavan
 
|neut=Karavan
 +
|size=22.123
 +
|}}</nowiki></pre>
 +
|}
 +
 +
{{clear}}
 +
{{RegionInfoBox
 +
|type=C
 +
|logo=Matis_emblem.png
 +
|image=Forestnight.jpg
 +
|name=Verdant Heights
 +
|race=Matis
 +
|eco=Forest
 +
|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

de:Template:RegionInfoBox
en:Template:RegionInfoBox
es:Template:RegionInfoBox
fr:Template:RegionInfoBox
ru:Template:RegionInfoBox
 
UnderConstruction.png
Translation to review
Don't blame the contributors, but come and help them 😎

Reference text ( Maintained text, used as reference ) :
Notes: (Dorothée, 2022-03-18)


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
MG map.jpg
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
Matis emblem.png
Verdant Heights

Country of Matis people

Forestnight.jpg
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
|}}