Difference between revisions of "Passive Talent info"

m (set branch property)
(categorization)
Line 1: Line 1:
 
<includeonly><div class="infobox-right"><!--
 
<includeonly><div class="infobox-right"><!--
DEFINE VARIABLE
+
DEFINITIONS
 
-->{{#vardefine:name|<!-- define talent name
 
-->{{#vardefine:name|<!-- define talent name
 
-->{{#if:{{{name|}}}<!-- if pre-defined name exists
 
-->{{#if:{{{name|}}}<!-- if pre-defined name exists
 
-->|{{sc|{{{name}}}}}<!-- use that name
 
-->|{{sc|{{{name}}}}}<!-- use that name
 
-->|{{PAGENAME}}}}}}<!-- else use page name
 
-->|{{PAGENAME}}}}}}<!-- else use page name
 +
 +
-->{{#vardefine:branch|{{ucfirst:{{lc:{{{branch|}}}}}}}}}<!-- case-corrected branch
 +
 +
-->{{#if:{{{name|}}}<!-- if a name parameter is not given
 +
-->||{{#if:{{{branch|}}}|<!-- if a branch parameter is given
 +
-->|[[Category:{{#var:branch}} Passive Talents]]<!-- set category according to branch
 +
-->|[[Category:Passive Talents]]<!-- else set generic category
 +
-->}}}}<!--
 +
 
TABLE
 
TABLE
 
-->
 
-->
Line 20: Line 29:
 
|-
 
|-
 
! colspan="2" style="background-color:#24222a" | <center>{{#var:name}}</center><!-- name -->
 
! colspan="2" style="background-color:#24222a" | <center>{{#var:name}}</center><!-- name -->
{{#if:{{{branch|}}}|{{InfoboxRow|'''Branch'''|{{ucfirst:{{lc:[[{{{branch}}}]]}}}}}}}}
+
{{#if:{{{branch|}}}|{{InfoboxRow|'''Branch'''|[[{{#var:branch}}]]}}}}
 
{{#if:{{{tier|}}}|{{InfoboxRow|'''Tier'''|{{uc:{{{tier}}}}}}}}}
 
{{#if:{{{tier|}}}|{{InfoboxRow|'''Tier'''|{{uc:{{{tier}}}}}}}}}
 
|}</div><!--
 
|}</div><!--
Line 26: Line 35:
 
-->{{#if:{{{tooltip|}}}|{{quotation|{{{tooltip}}}|game}}}}{{#if:{{{description|}}}|{{{description}}}{{#set:Has description={{{description}}}}}}}<!--
 
-->{{#if:{{{tooltip|}}}|{{quotation|{{{tooltip}}}|game}}}}{{#if:{{{description|}}}|{{{description}}}{{#set:Has description={{{description}}}}}}}<!--
 
SET PROPERTIES
 
SET PROPERTIES
-->{{#if:{{{branch|}}}|{{#set:Has branch={{ucfirst:{{lc:branch}}}}}}}}</includeonly><noinclude>{{{{PAGENAME}}/Documentation}}</noinclude>
+
-->{{#if:{{{branch|}}}|{{#set:Has branch={{#var:branch}}}}}}</includeonly><noinclude>{{{{PAGENAME}}/Documentation}}</noinclude>

Revision as of 20:14, 16 May 2024

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.
Optional.
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.pngorder: The order of the passive talent within a tier.
Optional.
Notes: Used to match the talent's position with the in-game interface.
Arrow.pngtier: The passive talent's tier in the talent tree.
Optional.
Notes: In Roman numerals.