Difference between revisions of "Template:SpellInfoBox"

From EncyclopAtys

Jump to: navigation, search
m
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
βˆ’
{{#vardefine:colour|6A9703}}<!--
+
<includeonly>{{#vardefine:colour|006}}<!--
βˆ’
-->{| 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=Spell Ambar}}
 
|-
 
|-
βˆ’
!align="centre" colspan="2" style="background: #{{#var:colour}}; padding: 2px;"| <font color="white">{{#if: {{{name|}}} | {{{name}}} | {{PAGENAME}} }}</font>
+
|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);<!--
βˆ’
! colspan="2" | {{#if: {{{image|}}} | [[Image:{{{image}}}|250px|{{#if: {{{tooltip|}}} | {{{tooltip}}} | {{PAGENAME}} }}]] }}
+
-->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; <!--
βˆ’
!align="centre" colspan="2" style="background: #{{#var:colour}}; padding: 11px;" |
+
-->{{#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/>
βˆ’
|
+
|-                                 <!--Image-->
βˆ’
|-
+
|colspan="2" <!--
βˆ’
{{#if: {{{type|}}} | ! align="centre" style="background: #{{#var:colour}}; width:50%;" {{!}} <font color="white">'''Spell Type:'''</font>
+
-->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);<!--
βˆ’
! align="center" {{!}} {{{type}}}
+
-->text-align:left; padding:0em; "<!--
 +
-->|{{#if: {{{image|}}}| [[Image:{{{image}}}|frameless|center|250px|{{#if: {{{tooltip|}}} | {{{tooltip}}} | {{PAGENAME}} }}]]}}
 +
|-                                 <!--Spell Type-->
 +
{{#if: {{{type|}}} | !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:#bfd" {{!}} '''Spell&nbsp;Type'''
 +
!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; " <!--
 +
-->{{!}} {{{type}}}
 +
{{!}}- | }}
 +
|-                                <!--Domain-->
 +
{{#if: {{{domain|}}} | !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:#bfd" {{!}} '''Domain'''
 +
!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; " <!--
 +
-->{{!}} {{{domain}}}
 +
{{!}}- | }}
 +
|-                                 <!--Skill-->
 +
{{#if: {{{skill|}}} | !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:#bfd" {{!}} '''Skill'''
 +
!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; " <!--
 +
-->{{!}} {{{skill}}}
 +
{{!}}- | }}
 +
|-                                <!--Level requirement-->
 +
{{#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:#bfd" {{!}} '''Level&nbsp;requirement'''
 +
!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}}}
 
{{!}}- | }}
 
{{!}}- | }}
βˆ’
! align="centre" style="background: #{{#var:colour}}; width:50%;" | <font color="white">'''Domain:'''</font>
+
|}</includeonly><!--
βˆ’
! align="center" | {{{domain}}}
 
βˆ’
|-
 
βˆ’
! align="centre" style="background: #{{#var:colour}}; width:50%;" | <font color="white">'''Skill:'''</font>
 
βˆ’
! align="center" | {{{skill}}}
 
βˆ’
|-
 
βˆ’
! align="centre" style="background: #{{#var:colour}}; width:50%;" | <font color="white">'''Level requirement:'''</font>
 
βˆ’
! align="center" | {{{lvl}}}
 
βˆ’
|}<!--
 
  
βˆ’
--><noinclude>{{clear}} __NOTOC__
+
--><noinclude>
 +
{{Trad
 +
|DE=Template:SpellInfoBox
 +
|EN=Template:SpellInfoBox
 +
|ES=Template:SpellInfoBox
 +
|FR=Template:SpellInfoBox
 +
|RU=Template:SpellInfoBox
 +
}}
 
==Description==
 
==Description==
 
===Usage===
 
===Usage===
 
<pre>
 
<pre>
 
{{SpellInfoBox
 
{{SpellInfoBox
 +
|name=
 
|image=
 
|image=
 
|tooltip=
 
|tooltip=
Line 38: Line 73:
  
 
===Non optional parameters===
 
===Non optional parameters===
 +
;name
 +
: '''needed if the page is transcluded!'''
 +
 
;domain
 
;domain
 
: Specifies the domain a spell belongs to, i.e. Desert, Forest, Jungle, Lakes or Prime Roots
 
: Specifies the domain a spell belongs to, i.e. Desert, Forest, Jungle, Lakes or Prime Roots
Line 57: Line 95:
 
{{SpellInfoBox
 
{{SpellInfoBox
 
|image=Phoenix-fire.jpg
 
|image=Phoenix-fire.jpg
 +
|tooltip=Phoenix fire
 +
|type=Offensive
 
|domain=Desert
 
|domain=Desert
 
|skill=Elemental
 
|skill=Elemental

Latest revision as of 14:05, 24 April 2022

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

Reference text ( Maintained text, used as reference ) :
Notes: (Zorroargh, 2022-04-24)

Description

Usage

{{SpellInfoBox
|name=
|image=
|tooltip=
|type=
|domain=
|skill=
|lvl=
|}}

Non optional parameters

name
needed if the page is transcluded!
domain
Specifies the domain a spell belongs to, i.e. Desert, Forest, Jungle, Lakes or Prime Roots
skill
Specifies the skill tree to which the spell belongs to
lvl
Specifies the level at which the spell is encountered

Optional parameters

type
Specifies the spell type, i.e. celestial, atysian or primal
tooltip
Sets a tooltip that shows when a user hovers his cursor over the infobox's image

Example

Spell Ambar
SpellInfoBox
Phoenix fire
Spell Type Offensive
Domain Desert
Skill Elemental
Level requirement 125