Difference between revisions of "Template:SpellInfoBox"

From EncyclopAtys

Jump to: navigation, search
(Created page with '{{#vardefine:colour|6A9703}}<!-- -->{| class="infobox" |- !align="centre" colspan="2" style="background: #{{#var:colour}}; padding: 2px;"| <font color="white">{{#if: {{{name|}}} …')
 
m
Line 4: Line 4:
 
!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>
 
|-
 
|-
! colspan="2" | {{#if: {{{image|}}} | [[Image:{{{image}}}|300px|{{PAGENAME}}]] }}
+
! colspan="2" | {{#if: {{{image|}}} | [[Image:{{{image}}}|300px|{{tooltip}}|{{PAGENAME}}]] }}
 
|-
 
|-
 
!align="centre" colspan="2" style="background: #{{#var:colour}}; padding: 11px;" |
 
!align="centre" colspan="2" style="background: #{{#var:colour}}; padding: 11px;" |
Line 36: Line 36:
 
===Non optional parameters===
 
===Non optional parameters===
 
;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
  
 
;skill
 
;skill
:specifies the skill tree to which the spell belongs to
+
: Specifies the skill tree to which the spell belongs to
  
 
;lvl
 
;lvl
:specifies the level at which the spell is encountered
+
: Specifies the level at which the spell is encountered
  
 
===Optional parameters===
 
===Optional parameters===
 
;type
 
;type
: Specifies the spell type, i.e. celestial, atysian or primal.
+
: 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==
 
==Example==

Revision as of 19:25, 6 October 2010

SpellInfoBox
Domain: {{{domain}}}
Skill: {{{skill}}}
Level requirement: {{{lvl}}}

Description

Usage

{{SpellInfoBox
|domain=
|skill=
|lvl=
|}}

Non optional parameters

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
SpellInfoBox
Domain Desert
Skill Elemental
Level requirement 125