Template:Job trait unlock: Difference between revisions

From HorizonXI Wiki
m (space)
m (cargo: data type)
 
(9 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>
<includeonly>
<tr>
<tr>
<td>{{{level}}}{{{level note|}}}</td>
<td data-sort-value="{{{level}}}">{{{level}}}{{#if:{{{level note|}}}|&#32;{{{level note}}}}}</td>
<td>[[{{{trait}}}|{{{trait}}}{{#if:{{{rank|}}}|&nbsp;{{{rank}}}}}]]{{#if:{{{trait note|}}}|&#20;{{{trait note}}}}}</td>
<td data-sort-value="{{{trait}}} {{{tier|I}}}">[[{{{trait}}}|{{{trait}}}{{#if:{{{tier|}}}|&nbsp;{{{tier}}}}}]]{{#if:{{{trait note|}}}|&#32;{{{trait note}}}}}</td>
</tr>
</tr>
{{#ifeq:{{NAMESPACENUMBER}}|0|
{{#ifeq:{{NAMESPACENUMBER}}|0|
{{#cargo_store:
{{#cargo_store:
_table = JobTraitUnlocks
_table = JobTraitUnlocks
| Job = {{{job|}}}
| Job = {{{job|{{PAGENAME}}}}}
| Level = {{{level|}}}
| Level = {{{level|}}}
| Trait = {{{trait|}}}
| Trait = {{{trait|}}}
| Rank = {{{rank|}}}
| Tier = {{#switch:{{{tier}}}|II=2|III=3|IV=4|V=5|VI=6}}
}}
}}
}}</includeonly><noinclude>{{#cargo_declare:
}}</includeonly><noinclude>{{#cargo_declare:
_table = JobTraitUnlocks
_table = JobTraitUnlocks
| Job = List (/) of Page (allowed values = Warrior, Monk, Thief, White Mage, Black Mage, Red Mage, Paladin, Dark Knight, Beastmaster, Bard, Ranger, Summoner, Samurai, Ninja, Dragoon)
| Job = Page
| Level = Integer
| Level = Integer
| Trait = Page
| Trait = Page
| Rank = String (allowed values = I, II, III, IV, V, VI)
| Tier = Integer
}}
}}
{{Documentation}}</noinclude>
{{Documentation}}</noinclude>

Latest revision as of 03:35, 19 September 2025

This template defines the table "JobTraitUnlocks". View table.

Template documentation
Note: portions of the template sample may not be visible without values provided.
View or edit this documentation. (About template documentation)
Editors can experiment in this template's sandbox and test case pages.

Displays a table row showing a level and a trait. Also populates the JobTraitUnlocks table, to sync data between job pages and trait pages.

Usage

{| class="horizon-table jobs-table sortable" style="text-align: center;"
|-
! scope="col" style="width: 25%;" |Level
! scope="col" style="width: 75%;" |Trait
{{job trait unlock |level=15 |trait=Resist Virus }}
{{job trait unlock |level=35 |trait=Resist Virus |tier=II }}
|}
Level Trait
15 Resist Virus
35 Resist Virus II

External Links