Difference between revisions of "Template:SpellInfoBox"
From EncyclopAtys
CeNobiteElf (talk | contribs) m |
|||
(2 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
β | {{#vardefine:colour| | + | <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}} | ||
|- | |- | ||
β | + | |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; <!-- |
β | !align=" | + | -->{{#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: {{{ | + | -->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|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 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 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}}} | ||
{{!}}- | }} | {{!}}- | }} | ||
β | + | |}</includeonly><!-- | |
β | |||
β | | | ||
β | |||
β | |||
β | |||
β | |||
β | |||
β | |||
β | --><noinclude>{{ | + | --><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
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 | |
Spell Type | Offensive |
---|---|
Domain | Desert |
Skill | Elemental |
Level requirement | 125 |