Difference between revisions of "Template:RegionInfoBox"
From EncyclopAtys
m |
|||
Line 1: | Line 1: | ||
{{#switch: {{lc: {{{continent}}}}} | {{#switch: {{lc: {{{continent}}}}} | ||
− | | nexus minor = {{#vardefine:colour| | + | | nexus minor = {{#vardefine:colour|{{ColorAtys|type=dark|group=ranger}}}} |
− | | [[nexus minor]] = {{#vardefine:colour| | + | | [[nexus minor]] = {{#vardefine:colour|{{ColorAtys|type=dark|group=ranger}}}} |
− | | witherings = {{#vardefine:colour| | + | | witherings = {{#vardefine:colour|{{ColorAtys|type=dark|group=zorai}}}} |
− | | [[witherings]] = {{#vardefine:colour| | + | | [[witherings]] = {{#vardefine:colour|{{ColorAtys|type=dark|group=zorai}}}} |
− | | verdant heights = {{#vardefine:colour| | + | | verdant heights = {{#vardefine:colour|{{ColorAtys|type=dark|group=matis}}}} |
− | | [[verdant heights]] = {{#vardefine:colour| | + | | [[verdant heights]] = {{#vardefine:colour|{{ColorAtys|type=dark|group=matis}}}} |
− | | burning desert = {{#vardefine:colour| | + | | burning desert = {{#vardefine:colour|{{ColorAtys|type=dark|group=fyros}}}} |
− | | [[burning desert]] = {{#vardefine:colour| | + | | [[burning desert]] = {{#vardefine:colour|{{ColorAtys|type=dark|group=fyros}}}} |
− | | aeden aqueous = {{#vardefine:colour| | + | | aeden aqueous = {{#vardefine:colour|{{ColorAtys|type=dark|group=tryker}}}} |
− | | [[aeden aqueous]] = {{#vardefine:colour| | + | | [[aeden aqueous]] = {{#vardefine:colour|{{ColorAtys|type=dark|group=tryker}}}} |
| #default = {{#vardefine:colour|000}} }}<!-- | | #default = {{#vardefine:colour|000}} }}<!-- | ||
− | -->{| class="infobox" | + | -->{| 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|Region}}}}} | ||
+ | |- <!--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; "|{{#if: {{{logo|}}}| [[Image:{{{logo}}}|64px|top|left]]}} <big>{{3DText|3D=glow|text={{#if: {{{name|}}}|{{{name}}}|{{PAGENAME}}}}}}</big><br/> | ||
+ | <!-- old template |- | ||
!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 19: | Line 33: | ||
!align="centre" colspan="2" style="background: #{{#var:colour}}; padding: 0px;height:8px;" | | !align="centre" colspan="2" style="background: #{{#var:colour}}; padding: 0px;height:8px;" | | ||
|- | |- | ||
− | | | + | |--> |
− | |- | + | |- <!--Image--> |
− | {{#if: {{{continent|}}} | ! | + | |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]]}} | ||
+ | |- <!--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" {{!}} '''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}}} | ||
{{!}}- | }} | {{!}}- | }} | ||
− | {{#if: {{{section|}}} | ! | + | |- <!--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 Roots 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--> |
− | ! | + | !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 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--> |
− | ! | + | !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 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}}} | ||
+ | |- <!--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² | ||
|}<!-- | |}<!-- | ||
Revision as of 15:16, 13 January 2019
Region | |
RegionInfoBox | |
Region Level | {{{lvl}}} |
---|---|
Neutral Altar | {{{neut}}} |
Area | {{{size}}} km² |
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.
- 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.
Example
Geographical Amber | |
RegionInfoBox | |
Sub-Continent | Witherings |
---|---|
Region Level | 50 - 100 |
Neutral Altar | Karavan |
Area | 22.123 km² |