Difference between revisions of "Passive Talent info"

m (different talent name)
m (name variable)
Line 1: Line 1:
<includeonly><div class="infobox-right">
+
<includeonly><div class="infobox-right"><!--
 +
DEFINE VARIABLE
 +
-->{{#vardefine:name|<!-- define talent name
 +
-->{{#if:{{{name}}}<!-- if pre-defined name exists
 +
-->|{{sc|{{{name}}}}}<!-- use that name
 +
-->|{{PAGENAME}}}}}}<!-- else use page name
 +
TABLE
 +
-->
 
{| class="wikitable" style="width: 100%;"
 
{| class="wikitable" style="width: 100%;"
 
|-
 
|-
Line 12: Line 19:
 
--></center>
 
--></center>
 
|-
 
|-
! colspan="2" style="background-color:#24222a" | <center>{{{name|{{PAGENAME}}}}}</center><!-- name -->
+
! colspan="2" style="background-color:#24222a" | <center>{{#var:name}}</center><!-- name -->
 
|-
 
|-
 
| class="skill-infobox-row-heading" | '''[[Stat]]''' || class="skill-infobox-row-data" | {{stat|{{sc|{{{stat}}}}}}}
 
| class="skill-infobox-row-heading" | '''[[Stat]]''' || class="skill-infobox-row-data" | {{stat|{{sc|{{{stat}}}}}}}
Line 20: Line 27:
 
|}</div><!--
 
|}</div><!--
 
SET PROPERTIES
 
SET PROPERTIES
-->{{{description}}}{{#set:Has talent name={{{name|{{PAGENAME}}}}}}}{{#set:Has stat={{sc|{{{stat}}}}}}}{{#set:Has stat value={{{value}}}}}</includeonly><noinclude>{{{{PAGENAME}}/Documentation}}</noinclude>
+
-->{{{description}}}{{#set:Has talent name={{#var:name}}}}{{#set:Has stat={{sc|{{{stat}}}}}}}{{#set:Has stat value={{{value}}}}}</includeonly><noinclude>{{{{PAGENAME}}/Documentation}}</noinclude>

Revision as of 21:33, 11 August 2023

Description

Displays an information page about a talent.

Usage

{{Passive Talent info|<icon=icon>|<name=name>|<description=description>|<stat=stat>|<value=value>}}

Parameters

Arrow.pngicon: An icon of the passive talent.
Optional. Defaults to '{{PAGENAME}}.png'.
Notes: Only use if the icon name differs from the name of the page.
Arrow.pngname: The name of the talent.
Optional. Defaults to '{{PAGENAME}}'.
Arrow.pngdescription: A description of the talent.
Required.
Arrow.pngtooltip: The tooltip text that appears upon hovering over the passive talent.
Optional.
Arrow.pngbranch: The branch that the passive talent is in.
Optional.
Arrow.pngtier: The passive talent's tier in the talent tree.
Optional.
Notes: In roman numerals.