Difference between revisions of "Template:MobInfoBox"

From EncyclopAtys

Jump to: navigation, search
Line 6: Line 6:
 
|RU=
 
|RU=
 
}}
 
}}
βˆ’
</noinclude>{{#vardefine:colour|{{#switch:{{{king|}}}
+
</noinclude>{{#vardefine:colour|{{#switch:{{lc:{{{king|}}} }}
 
| plants = rgba(153, 255, 153, 1) <!-- #9f9 opaque -->
 
| plants = rgba(153, 255, 153, 1) <!-- #9f9 opaque -->
 
| animals = rgba(255, 153, 153, 1) <!-- #f99 opaque -->
 
| animals = rgba(255, 153, 153, 1) <!-- #f99 opaque -->
 
| rgba(255, 255, 153, 1)<!-- #ff9 opaque -->
 
| rgba(255, 255, 153, 1)<!-- #ff9 opaque -->
 
}} }}<!--
 
}} }}<!--
 +
-->{{#vardefine:ojo|{{#ifeq: {{lc:{{{aggro|}}} }} | yes | Attack | Counterattack }} }}<!--
 
-->{|style="float: right;    width:25%;  max-width:30%;  margin: 0.1em;  overflow: auto; <!--
 
-->{|style="float: right;    width:25%;  max-width:30%;  margin: 0.1em;  overflow: auto; <!--
 
-->border: thick outset #C90; border-radius:1em;  padding: 0.1em;<!--
 
-->border: thick outset #C90; border-radius:1em;  padding: 0.1em;<!--
Line 24: Line 25:
 
-->| <big>{{3DText|text={{#if: {{{name|}}}|{{{name}}}|{{PAGENAME}}}}}}</big>
 
-->| <big>{{3DText|text={{#if: {{{name|}}}|{{{name}}}|{{PAGENAME}}}}}}</big>
 
|-
 
|-
βˆ’
! colspan="2" |[[Image:{{{image}}}|300px|{{PAGENAME}}]]
+
! colspan="2" |[[Image:{{{image}}}|300px]]
βˆ’
{{#if:{{{kin_g|}}}|
+
|-------------------------style="background: {{#var:colour}};" <!--Kingdom (plant, animal) -->
βˆ’
{{!}}-------------------------style="background: {{#var:colour}};"
 
 
!style="background-color: rgba(255, 165, 0, 0.5); background-image: linear-gradient(to left,#900 1%,rgba(255, 165, 0, 0.5) 4%,rgba(255, 165, 0, 0.2));<!--
 
!style="background-color: rgba(255, 165, 0, 0.5); background-image: linear-gradient(to left,#900 1%,rgba(255, 165, 0, 0.5) 4%,rgba(255, 165, 0, 0.2));<!--
βˆ’
-->text-align:right; padding:.2em .8em;"{{!}}{{3DText{{!}}text='''Kingdom'''}}
+
-->text-align:right; padding:.2em .8em;"<!--
βˆ’
!style="background-color: #{{ColorAtys{{!}}type=bg}}; background-image: linear-gradient(to right,#{{ColorAtys{{!}}type=dark}} 1%,#{{ColorAtys{{!}}type=light}} 2%,#{{ColorAtys{{!}}type=bg}});<!--
+
-->| {{3DText|text='''Kingdom'''}}
 +
!style="background-color: #{{ColorAtys|type=bg}}; background-image: linear-gradient(to right,#{{ColorAtys|type=dark}} 1%,#{{ColorAtys|type=light}} 2%,#{{ColorAtys|type=bg}});<!--
 
-->background-image: linear-gradient(to right, rgba(255, 165, 0, 0.2),rgba(255, 165, 0, 0.5));<!--
 
-->background-image: linear-gradient(to right, rgba(255, 165, 0, 0.2),rgba(255, 165, 0, 0.5));<!--
βˆ’
-->text-align:left; padding:.2em .4em;"{{!}} {{{king}}}
+
-->text-align:left; padding:.2em .4em;"<!--
βˆ’
|}}
+
-->| {{{king}}}
βˆ’
|-------------------------style="background: {{#var:colour}};"
+
|-------------------------style="background: {{#var:colour}};" <!--Category (species...)-->
 
!style="background-color: rgba(255, 165, 0, 0.5); background-image: linear-gradient(to left,#900 1%,rgba(255, 165, 0, 0.5) 4%,rgba(255, 165, 0, 0.2));<!--
 
!style="background-color: rgba(255, 165, 0, 0.5); background-image: linear-gradient(to left,#900 1%,rgba(255, 165, 0, 0.5) 4%,rgba(255, 165, 0, 0.2));<!--
βˆ’
-->text-align:right; padding:.2em .8em;"| {{3DText|text='''Type'''}}
+
-->text-align:right; padding:.2em .8em;"<!--
 +
-->| {{3DText|text='''Category'''}}
 
!style="background-color: #{{ColorAtys|type=bg}}; background-image: linear-gradient(to right,#{{ColorAtys|type=dark}} 1%,#{{ColorAtys|type=light}} 2%,#{{ColorAtys|type=bg}});<!--
 
!style="background-color: #{{ColorAtys|type=bg}}; background-image: linear-gradient(to right,#{{ColorAtys|type=dark}} 1%,#{{ColorAtys|type=light}} 2%,#{{ColorAtys|type=bg}});<!--
 
-->background-image: linear-gradient(to right, rgba(255, 165, 0, 0.2),rgba(255, 165, 0, 0.5));<!--
 
-->background-image: linear-gradient(to right, rgba(255, 165, 0, 0.2),rgba(255, 165, 0, 0.5));<!--
βˆ’
-->text-align:left; padding:.2em .4em;"| {{{type}}}
+
-->text-align:left; padding:.2em .4em;"<!--
βˆ’
|-------------------------style="background: {{#var:colour}};"
+
-->| {{{type}}}
βˆ’
{{#if:{{{spe_cies|}}}|
+
|-------------------------style="background: {{#var:colour}};" <!--Where-->
βˆ’
{{!}}-------------------------style="background: {{#var:colour}};"
 
 
!style="background-color: rgba(255, 165, 0, 0.5); background-image: linear-gradient(to left,#900 1%,rgba(255, 165, 0, 0.5) 4%,rgba(255, 165, 0, 0.2));<!--
 
!style="background-color: rgba(255, 165, 0, 0.5); background-image: linear-gradient(to left,#900 1%,rgba(255, 165, 0, 0.5) 4%,rgba(255, 165, 0, 0.2));<!--
βˆ’
-->text-align:right; padding:.2em .8em;"{{!}} {{3DText{{!}}text='''Species'''}}
+
-->text-align:right; padding:.2em .8em;"<!--
βˆ’
!style="background-color: #{{ColorAtys{{!}}type=bg}}; background-image: linear-gradient(to right,#{{ColorAtys{{!}}type=dark}} 1%,#{{ColorAtys{{!}}type=light}} 2%,#{{ColorAtys{{!}}type=bg}});<!--
+
-->| {{3DText|text='''Main&nbsp;Ecosystem(s)'''}}
βˆ’
-->background-image: linear-gradient(to right, rgba(255, 165, 0, 0.2),rgba(255, 165, 0, 0.5));<!--
 
βˆ’
-->text-align:left; padding:.2em .4em;"{{!}} {{{species}}}
 
βˆ’
|}}
 
βˆ’
|-------------------------style="background: {{#var:colour}};"
 
βˆ’
!style="background-color: rgba(255, 165, 0, 0.5); background-image: linear-gradient(to left,#900 1%,rgba(255, 165, 0, 0.5) 4%,rgba(255, 165, 0, 0.2));<!--
 
βˆ’
-->text-align:right; padding:.2em .8em;"| {{3DText|text='''Main&nbsp;Ecosystem(s)'''}}
 
 
!style="background-color: #{{ColorAtys|type=bg}}; background-image: linear-gradient(to right,#{{ColorAtys|type=dark}} 1%,#{{ColorAtys|type=light}} 2%,#{{ColorAtys|type=bg}});<!--
 
!style="background-color: #{{ColorAtys|type=bg}}; background-image: linear-gradient(to right,#{{ColorAtys|type=dark}} 1%,#{{ColorAtys|type=light}} 2%,#{{ColorAtys|type=bg}});<!--
 
-->background-image: linear-gradient(to right, rgba(255, 165, 0, 0.2),rgba(255, 165, 0, 0.5));<!--
 
-->background-image: linear-gradient(to right, rgba(255, 165, 0, 0.2),rgba(255, 165, 0, 0.5));<!--
βˆ’
-->text-align:left; padding:.2em .4em;"| {{{locale}}}
+
-->text-align:left; padding:.2em .4em;"<!--
βˆ’
|-------------------------style="background: {{#var:colour}};"
+
-->| {{{locale}}}
 +
|-------------------------style="background: {{#var:colour}};" <!--Aggro-->
 
!style="background-color: rgba(255, 165, 0, 0.5); background-image: linear-gradient(to left,#900 1%,rgba(255, 165, 0, 0.5) 4%,rgba(255, 165, 0, 0.2));<!--
 
!style="background-color: rgba(255, 165, 0, 0.5); background-image: linear-gradient(to left,#900 1%,rgba(255, 165, 0, 0.5) 4%,rgba(255, 165, 0, 0.2));<!--
βˆ’
-->text-align:right; padding:.2em .8em;"| {{3DText|text='''Aggressive'''}}
+
-->text-align:right; padding:.2em .8em;"<!--
 +
-->| {{3DText|text='''Aggressive'''}}
 
!style="background-color: #{{ColorAtys|type=bg}}; background-image: linear-gradient(to right,#{{ColorAtys|type=dark}} 1%,#{{ColorAtys|type=light}} 2%,#{{ColorAtys|type=bg}});<!--
 
!style="background-color: #{{ColorAtys|type=bg}}; background-image: linear-gradient(to right,#{{ColorAtys|type=dark}} 1%,#{{ColorAtys|type=light}} 2%,#{{ColorAtys|type=bg}});<!--
 
-->background-image: linear-gradient(to right, rgba(255, 165, 0, 0.2),rgba(255, 165, 0, 0.5));<!--
 
-->background-image: linear-gradient(to right, rgba(255, 165, 0, 0.2),rgba(255, 165, 0, 0.5));<!--
βˆ’
-->text-align:left; padding:.2em .4em;"| {{{aggro}}}
+
-->text-align:left; padding:.2em .4em;"<!--
βˆ’
|-------------------------style="background: {{#var:colour}};"
+
-->| {{{aggro}}}
 +
|-------------------------style="background: {{#var:colour}};" <!--Damage-->
 
!style="background-color: rgba(255, 165, 0, 0.5); background-image: linear-gradient(to left,#900 1%,rgba(255, 165, 0, 0.5) 4%,rgba(255, 165, 0, 0.2));<!--
 
!style="background-color: rgba(255, 165, 0, 0.5); background-image: linear-gradient(to left,#900 1%,rgba(255, 165, 0, 0.5) 4%,rgba(255, 165, 0, 0.2));<!--
βˆ’
-->text-align:right; padding:.2em .8em;"| {{3DText|text='''Damage&nbsp;Type'''}}
+
-->text-align:right; padding:.2em .8em;"<!--
 +
-->| {{3DText|text='''{{#var:ojo}} type'''}}
 
!style="background-color: #{{ColorAtys|type=bg}}; background-image: linear-gradient(to right,#{{ColorAtys|type=dark}} 1%,#{{ColorAtys|type=light}} 2%,#{{ColorAtys|type=bg}});<!--
 
!style="background-color: #{{ColorAtys|type=bg}}; background-image: linear-gradient(to right,#{{ColorAtys|type=dark}} 1%,#{{ColorAtys|type=light}} 2%,#{{ColorAtys|type=bg}});<!--
 
-->background-image: linear-gradient(to right, rgba(255, 165, 0, 0.2),rgba(255, 165, 0, 0.5));<!--
 
-->background-image: linear-gradient(to right, rgba(255, 165, 0, 0.2),rgba(255, 165, 0, 0.5));<!--
βˆ’
-->text-align:left; padding:.2em .4em;"| {{{damage}}}
+
-->text-align:left; padding:.2em .4em;"<!--
 +
-->| {{#ifeq: {{lc:{{{aggro|}}} }} | si | {{{damage|unknown}}} | {{#if: {{{damage|}}} |{{{damage}}} |none}} }}  
 
|}<!--
 
|}<!--
  
Line 78: Line 78:
 
|king=<Creature kingdom>
 
|king=<Creature kingdom>
 
|type=<Creature Type>
 
|type=<Creature Type>
βˆ’
|species=<Creature species>
 
 
|locale=<Regions found in>
 
|locale=<Regions found in>
 
|aggro=<Yes/No>
 
|aggro=<Yes/No>
Line 94: Line 93:
 
|king=Animals
 
|king=Animals
 
|type=Omnivore
 
|type=Omnivore
βˆ’
|species=Crustacean
 
 
|locale=Everywhere
 
|locale=Everywhere
 
|aggro=Yes
 
|aggro=Yes
 
|damage=Snappy
 
|damage=Snappy
 +
|}}
 +
{{MobInfoBox
 +
|image=Batao_winter.jpg
 +
|name=Batao
 +
|king=Plants
 +
|type=[[:CategorΓ­a:Trees|Trees]]
 +
|locale=[[jungle]]
 +
|aggro=No
 
|}}
 
|}}
 
{{Clear}}
 
{{Clear}}

Revision as of 14:05, 27 August 2019

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

Reference text ( Maintained text, used as reference ) :
Notes: (Zorroargh, 2019-08-27)

Taxonomic Amber
MobInfoBox
[[Image:{{{image}}}|300px]]
Kingdom {{{king}}}
Category {{{type}}}
Main Ecosystem(s) {{{locale}}}
Aggressive {{{aggro}}}
Counterattack type none

Description

{{MobInfoBox
|image=<Filename>
|name={{PAGENAME}} 
|king=<Creature kingdom>
|type=<Creature Type>
|locale=<Regions found in>
|aggro=<Yes/No>
|damage=<damage(s) of (counter)attack>>
|}}

Note: Leave {{PAGENAME}} in place unless page name differs from mob name.

Example

Taxonomic Amber
Fluffy Bunnies
Clopper.jpg
Kingdom Animals
Category {{{species}}}
Main Ecosystem(s) Everywhere
Attack type Snappy
Taxonomic Amber
Batao
Batao winter.jpg
Kingdom Plants
Category {{{species}}}
Main Ecosystem(s) jungle


Also See