Difference between revisions of "Template:Tooltip"

From NEStalgia
Jump to: navigation, search
m
Line 1: Line 1:
<div class="tooltip-content" style="display: inline-block;">
+
<includeonly><div class="tooltip-content" style="display: inline-block;">
 
{| cellspacing="0" cellpadding="0" style="background-color:#141414; border: 2px solid #141414;"
 
{| cellspacing="0" cellpadding="0" style="background-color:#141414; border: 2px solid #141414;"
 
|-
 
|-
Line 8: Line 8:
 
{| cellspacing="0" cellpadding="0" style="padding:5px; background-color:#141414; border-radius:5px; color:#fafafa; width:250px;"
 
{| cellspacing="0" cellpadding="0" style="padding:5px; background-color:#141414; border-radius:5px; color:#fafafa; width:250px;"
 
|-  
 
|-  
|valign=top height=69px|{{#switch: {{{1|ability}}}
+
|valign=top height=69px|
 
+
{{#ifeq:{{{1|}}}|ability|<small style="color:#64c8fa;">Ability </small>|}}'''{{{Name|Name}}}'''{{#if:{{{Cost|}}}|<span style="float: right;"><small style="color:#64c8fa;">Cost </small>'''{{{Cost|Cost}}}'''</span>|}}<br />
|ability=
+
<span style="padding-left:5px;">'''{{{Effect|Effect}}}'''</span>
<small style="color:#64c8fa;">Ability </small>'''{{{Name|Name}}}'''<span style="float: right;"><small style="color:#64c8fa;">Cost </small>'''{{{Cost|Cost}}}'''</span><br />
 
'''{{{Effect|Effect}}}'''
 
 
{{!}}-
 
{{!}}-
 
{{!}}{{#if:{{{Damage|}}}|<small style="color:#64c8fa;">Damage </small>'''{{{Damage}}}'''|}}<br />
 
{{!}}{{#if:{{{Damage|}}}|<small style="color:#64c8fa;">Damage </small>'''{{{Damage}}}'''|}}<br />
<small style="color:#64c8fa;">Target </small>'''{{{Target|Target}}}'''<span style="float: right;">{{#if:{{{Power|}}}|<small style="color:#64c8fa;">Power </small>'''{{{Power}}}'''|}}</span>
+
{{#if:{{{Target|}}}|<small style="color:#64c8fa;">Target </small>'''{{{Target}}}'''|}}&nbsp;{{#if:{{{Power|}}}|<span style="float: right;"><small style="color:#64c8fa;">Power </small>'''{{{Power}}}'''</span>|}}
 
+
{{#if:{{{Prerequisite|}}}|<hr /><small style="color:#64c8fa;">Prerequisite: </small><small>{{{Prerequisite|Prerequisite}}}</small>|}}
|passive=[Passive code to come]
 
 
 
|#default=[Error:Unspecified or invalid tooltip type]}}
 
<hr /><small style="color:#64c8fa;">Prerequisite: </small><small>{{{Prerequisite|Prerequisite}}}</small>
 
 
|}
 
|}
 
|}
 
|}
 
|}
 
|}
</div>
+
</div></includeonly><noinclude>
 
 
<noinclude>
 
 
==Documentation==
 
==Documentation==
 
This template is used to display game-style tooltips for abilities and passive skills. -UNDER CONSTRUCTION-
 
This template is used to display game-style tooltips for abilities and passive skills. -UNDER CONSTRUCTION-
Line 41: Line 33:
  
 
  '''Usage for a passive:'''<nowiki>
 
  '''Usage for a passive:'''<nowiki>
{{Tooltip|passive
+
{{Tooltip|
|Param1= [unsupported yet]
+
|Name=
|Param2= [unsupported yet]
+
|Effect=
 +
|Prerequisite=
 
}}</nowiki>
 
}}</nowiki>
 
</noinclude>
 
</noinclude>

Revision as of 16:49, 26 April 2014

Documentation

This template is used to display game-style tooltips for abilities and passive skills. -UNDER CONSTRUCTION-

Usage for an ability:
{{Tooltip|ability
|Name=
|Cost=
|Effect=
|Damage=
|Target=
|Power=
|Prerequisite=
}}
Usage for a passive:
{{Tooltip|
|Name=
|Effect=
|Prerequisite=
}}