Difference between revisions of "Passive Talent info"

m
m
 
(3 intermediate revisions by the same user not shown)
Line 8: Line 8:
 
-->{{#vardefine:branch|{{ucfirst:{{lc:{{{branch|}}}}}}}}}<!-- case-corrected branch
 
-->{{#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
-->||{{#if:{{{branch|}}}<!-- if a branch parameter is given
 
 
-->|[[Category:{{#var:branch}} Passive Talents]]<!-- set category according to branch
 
-->|[[Category:{{#var:branch}} Passive Talents]]<!-- set category according to branch
 
-->|[[Category:Passive Talents]]<!-- else set generic category
 
-->|[[Category:Passive Talents]]<!-- else set generic category
-->}}}}<!--
+
-->}}<!--
  
 
TABLE
 
TABLE
Line 33: Line 32:
 
|}</div><!--
 
|}</div><!--
 
DESCRIPTION
 
DESCRIPTION
-->{{#if:{{{tooltip|}}}|{{quotation|{{{tooltip}}}|game}}}}{{#if:{{{description|}}}|{{{description}}}}}<!--
+
-->{{#if:{{{tooltip|}}}|{{quotation|{{{tooltip}}}|game|popup=yes}}}}{{#if:{{{description|}}}|{{{description}}}}}<!--
 
SET PROPERTIES
 
SET PROPERTIES
-->{{#if:{{{name|}}}{{NAMESPACE}}|<!-- if there is a name parameter or namespace don't set any properties
+
-->{{#if:{{{branch|}}}|{{#set:Has branch={{#var:branch}}}}}}<!-- set 'Has branch' property
-->|{{#if:{{{branch|}}}|{{#set:Has branch={{#var:branch}}}}}}<!-- set 'Has branch' property
+
-->{{#if:{{{order|}}}|{{#set:Has talent order={{{order}}}}}}}<!-- set 'Has talent order' property
-->{{#if:{{{order|}}}|{{#set:Has talent order={{{order}}}}}}}}}<!-- set 'Has talent order' property
 
 
-->{{#if:{{{tier|}}}|{{#set:Has tier={{uc:{{{tier}}}}}}}}}<!-- set 'Has tier' property
 
-->{{#if:{{{tier|}}}|{{#set:Has tier={{uc:{{{tier}}}}}}}}}<!-- set 'Has tier' property
-->{{#if:{{{description|}}}|{{#set:Has description={{#var:description}}}}<!-- set 'Has description' property
+
-->{{#if:{{{description|}}}|{{#set:Has description={{#var:description}}}}}}<!-- set 'Has description' property
-->{{#if:{{{icon|{{#var:defaultIcon}}}}}|{{#set:Has icon={{{icon|{{#explode:{{#var:defaultIcon}}|:|1}}}}}}}<!-- set 'Has icon' property
+
-->{{#if:{{{icon|{{#var:defaultIcon}}}}}|{{#set:Has icon={{{icon|{{#explode:{{#var:defaultIcon}}|:|1}}}}}}}}}<!-- set 'Has icon' property
-->}}</includeonly><noinclude>{{{{PAGENAME}}/Documentation}}</noinclude>
+
--></includeonly><noinclude>{{{{PAGENAME}}/Documentation}}</noinclude>

Latest revision as of 20:48, 15 June 2024

Description[edit]

Displays an information page about a talent.

Usage[edit]

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

Parameters[edit]

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.