Difference between revisions of "Template:Tooltip"
From NEStalgia
m |
m |
||
(38 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | <div class="tooltip-content"> | + | <div class="tooltip-content" style="display: inline-block; vertical-align:top;"> |
− | {| cellspacing="0" cellpadding="0" style="background-color:#141414; border: 2px solid #141414;" | + | {| cellspacing="0" cellpadding="0" style="background-color:#141414; border: 2px solid #141414; margin-right:-4px;" |
|- | |- | ||
| | | | ||
Line 6: | Line 6: | ||
|- | |- | ||
| | | | ||
− | {| cellspacing="0" cellpadding="0" style="padding:5px; background-color:#141414; border-radius:5px; color:#fafafa; width: | + | {| cellspacing="0" cellpadding="0" style="padding:0px 5px; background-color:#141414; border-radius:5px; color:#fafafa; width:215px;" |
|- | |- | ||
− | |valign=top | + | |valign=top| |
− | + | {{#ifeq:{{{1|}}}|ability|<small>{{Color|B|Ability}} </small>|}}'''{{{Name|Name}}}'''{{#if:{{{Cost|}}}|<span style="float: right;"><small>{{Color|B|Cost}} </small>'''{{#ifeq:{{{Cost Unit|}}}|Will|<span style="font-size:22px; vertical-align:-1px; line-height:10%;">{{#switch:{{{Cost|}}}|1=●|2=●●|3=●●●|4=●●●●|5=●●●●●|#default=INVALID}}</span>|{{{Cost}}} {{{Cost Unit}}}}}'''</span>|}}<br /> | |
− | |ability | + | <div style="padding-left:5px;">'''{{{Effect|Effect}}}'''</div> |
− | <small | + | {{#if:{{{Damage|}}}|<small>{{Color|B|Damage}} </small>'''{{{Damage}}}'''|}}<span style="float: right;">{{#if:{{{Rate|}}}{{{Self Dmg|}}}|{{#if:{{{Power|}}}|<small>{{Color|B|Power}} </small>'''{{{Power}}}'''|}}|}}{{#if:{{{Plus Cap|}}}|<small>{{Color|B|+{{{Plus Cap Type}}} Cap}} </small>'''{{{Plus Cap}}}'''|}}{{#if:{{{Threshold|}}}|<small>{{Color|B|Threshold}} </small>'''{{{Threshold}}}'''|}}{{#if:{{{RG-CR Steal|}}}|<small>{{Color|B|RG-CR Steal}} </small>'''{{{RG-CR Steal}}}'''|}}</span>{{#if:{{{Damage|}}}{{{Plus Cap|}}}{{{Threshold|}}}{{{RG-CR Steal|}}}{{#if:{{{Rate|}}}{{{Self Dmg|}}}|{{{Power|}}}|}}|<br style="clear:both;"/>|}} |
− | '''{{{Effect|Effect}}}''' | + | {{#if:{{{Target|}}}|<small>{{Color|B|Target}} </small>'''{{{Target}}}'''|}}<span style="float: right;">{{#if:{{{Rate|}}}|<small>{{Color|B|Rate}} </small>'''{{{Rate}}}'''|}}{{#if:{{{Self Dmg|}}}|<small>{{Color|B|Self Dmg}} </small>'''{{{Self Dmg}}}'''|}}{{#if:{{{MP Steal|}}}|<small>{{Color|B|MP Steal}} </small>'''{{{MP Steal}}}'''|}}{{#if:{{{Total HP|}}}|<small>{{Color|B|Total HP}} </small>'''{{{Total HP}}}'''|}}{{#if:{{{Rate|}}}{{{Self Dmg|}}}||{{#if:{{{Power|}}}|<small>{{Color|B|Power}} </small>'''{{{Power}}}'''|}}}}</span> |
− | {{ | + | {{#if:{{{Prereq Level|}}}{{{Prereq Skill|}}}|{{!}}- |
− | {{ | + | {{!}}<hr />Prerequisite: <span style="float:right;">Level: {{{Prereq Level}}}</span>{{#if:{{{Prereq Skill|}}}|<br /><small style="padding-left:5px;">{{{Prereq Skill}}}</small>|}}|}} |
− | < | ||
− | |||
− | | | ||
− | |||
− | | | ||
− | <hr />< | ||
|} | |} | ||
|} | |} | ||
|} | |} | ||
− | </div> | + | </div><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 33: | Line 25: | ||
|Name= | |Name= | ||
|Cost= | |Cost= | ||
+ | |Cost Unit= | ||
|Effect= | |Effect= | ||
|Damage= | |Damage= | ||
|Target= | |Target= | ||
+ | |Plus Cap= | ||
+ | |Plus Cap Type= | ||
+ | |Threshold= | ||
|Power= | |Power= | ||
− | | | + | |Rate= |
− | }}</nowiki> | + | |Total HP= |
+ | |Self Dmg= | ||
+ | |RG-CR Steal= | ||
+ | |MP Steal= | ||
+ | |Prereq Level= | ||
+ | |Prereq Skill= | ||
+ | }}</nowiki><br /><br /> | ||
+ | -"Target" is either: "Self", "One Ally", "All allies", "One Foe" or "All Foes". | ||
+ | -"Cost Unit" is only relevant (and is required) if "Cost" is specified. It should be either "MP", "Will", "HP", "CR", or "RG". "Will" makes the cost (between 1 and 5) display with dots. | ||
+ | -"Plus Cap Type" is only relevant (and is required) if "Plus Cap" is specified. Should be "Heal", "Fire", "Ice", "Storm" or "????". | ||
+ | -"Cost", "Damage", "Plus Cap", "Threshold", "Power", "Rate", "Total HP", "Self Dmg", "RG-CR Steal", "MP Steal", "Prereq Level" and "Prereq Skill" are optional. | ||
'''Usage for a passive:'''<nowiki> | '''Usage for a passive:'''<nowiki> | ||
− | {{Tooltip| | + | {{Tooltip| |
− | | | + | |Name= |
− | | | + | |Effect= |
− | }}</nowiki> | + | |Prereq Level= |
+ | |Prereq Skill= | ||
+ | }}</nowiki><br /><br /> | ||
+ | -"Prereq Level" and "Prereq Skill" are optional. | ||
</noinclude> | </noinclude> |
Latest revision as of 14:08, 28 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= |Cost Unit= |Effect= |Damage= |Target= |Plus Cap= |Plus Cap Type= |Threshold= |Power= |Rate= |Total HP= |Self Dmg= |RG-CR Steal= |MP Steal= |Prereq Level= |Prereq Skill= }}
-"Target" is either: "Self", "One Ally", "All allies", "One Foe" or "All Foes". -"Cost Unit" is only relevant (and is required) if "Cost" is specified. It should be either "MP", "Will", "HP", "CR", or "RG". "Will" makes the cost (between 1 and 5) display with dots. -"Plus Cap Type" is only relevant (and is required) if "Plus Cap" is specified. Should be "Heal", "Fire", "Ice", "Storm" or "????". -"Cost", "Damage", "Plus Cap", "Threshold", "Power", "Rate", "Total HP", "Self Dmg", "RG-CR Steal", "MP Steal", "Prereq Level" and "Prereq Skill" are optional.
Usage for a passive: {{Tooltip| |Name= |Effect= |Prereq Level= |Prereq Skill= }}
-"Prereq Level" and "Prereq Skill" are optional.