Difference between revisions of "Passive Talent info"

m (set properties)
m
 
(33 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly><div class="infobox-right">
+
<includeonly><div class="infobox-right"><!--
 +
DEFINITIONS
 +
-->{{#vardefine:name|<!-- define talent name
 +
-->{{#if:{{{name|}}}<!-- if pre-defined name exists
 +
-->|{{sc|{{{name}}}}}<!-- use that name
 +
-->|{{PAGENAME}}}}}}<!-- else use page name
 +
 
 +
-->{{#vardefine:branch|{{ucfirst:{{lc:{{{branch|}}}}}}}}}<!-- case-corrected branch
 +
 
 +
-->{{#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
 +
-->
 
{| class="wikitable" style="width: 100%;"
 
{| class="wikitable" style="width: 100%;"
 
|-
 
|-
Line 9: Line 24:
 
-->{{#ifexist:{{#var:defaultIcon}}<!-- if default icon exists
 
-->{{#ifexist:{{#var:defaultIcon}}<!-- if default icon exists
 
-->|[[{{#var:defaultIcon}}|85px]]<!-- use default icon
 
-->|[[{{#var:defaultIcon}}|85px]]<!-- use default icon
-->|[[{{#var:defaultIcon}}|Upload the talent icon.]]}}}}<!-- else prompt for icon upload
+
-->|[[{{#var:defaultIcon}}|Upload talent icon.]]}}}}<!-- else prompt for icon upload
 
--></center>
 
--></center>
 
|-
 
|-
! colspan="2" style="background-color:#24222a" | <center>{{{name|{{PAGENAME}}}}}</center><!-- name -->
+
! colspan="2" style="background-color:#24222a" | <center>{{#var:name}}</center><!-- name -->
|-
+
{{#if:{{{branch|}}}|{{InfoboxRow|'''Branch'''|[[{{#var:branch}}]]}}}}
| class="skill-infobox-row-heading" | '''[[Stat]]''' || class="skill-infobox-row-data" | {{stat|{{sc|{{{stat}}}}}}}
+
{{#if:{{{tier|}}}|{{InfoboxRow|'''Tier'''|{{uc:{{{tier}}}}}}}}}
|-
 
| class="skill-infobox-row-heading" | '''Change''' || class="skill-infobox-row-data" | {{{value}}}
 
|-
 
 
|}</div><!--
 
|}</div><!--
 +
DESCRIPTION
 +
-->{{#if:{{{tooltip|}}}|{{quotation|{{{tooltip}}}|game|popup=yes}}}}{{#if:{{{description|}}}|{{{description}}}}}<!--
 
SET PROPERTIES
 
SET PROPERTIES
-->{{{description}}}{{#set:Has talent name={{PAGENAME}}}}{{#set:Has stat={{sc|{{{stat}}}}}}}{{#set:Has stat value={{{value}}}}}</includeonly><noinclude>{{{{PAGENAME}}/Documentation}}</noinclude>
+
-->{{#if:{{{branch|}}}|{{#set:Has branch={{#var:branch}}}}}}<!-- set 'Has branch' 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:{{{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
 +
--></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.