Template:Traits/doc: Difference between revisions

From Archaelund Wiki
(Created page with "== Description == This template generates various output formats from raw trait input. == Usage == <pre> {{Traits|<trait input>|<format>}} </pre> Make sure that <trait input>...")
 
No edit summary
Line 31: Line 31:
{{Traits/icons|<trait index>}}
{{Traits/icons|<trait index>}}
</pre>
</pre>
Abbreviated names can be produced for each trait by using specific double indices:
<table class="wikitable>
<tr><th>Index</th><th>Name</th></tr>
<tr><td>11</td><td>{{Traits/names|11}}</td></tr>
<tr><td>22</td><td>{{Traits/names|22}}</td></tr>
<tr><td>33</td><td>{{Traits/names|33}}</td></tr>
<tr><td>44</td><td>{{Traits/names|44}}</td></tr>
<tr><td>55</td><td>{{Traits/names|55}}</td></tr>
<tr><td>66</td><td>{{Traits/names|66}}</td></tr>
<tr><td>77</td><td>{{Traits/names|77}}</td></tr>
</table>

Revision as of 12:10, 13 September 2020

Description

This template generates various output formats from raw trait input.

Usage

{{Traits|<trait input>|<format>}}

Make sure that <trait input> is formatted correctly according to the rules given below, otherwise error messages may be generated.

Format options

FormatDescriptionInputExample output
BonusDisplays trait symbols and the corresponding bonus values.vector of 7 comma-separated numbers, representing trait bonus values (e.g. "2,0,1,0,0,-1,0")STR 2 END 1 INT -1

In the above-mentioned vector of 7 comma-separated numbers, each position/index corresponds to a specific trait. See the subsequent list for details.

Trait names and icons

IndexNameIcon
1StrengthFile:Strength.png
2DexterityFile:Dexterity.png
3EnduranceFile:Endurance.png
4AwarenessFile:Awareness.png
5PersonalityFile:Personality.png
6IntellectFile:Intellect.png
7Self-ControlFile:Self-discipline.png

To extract the individual trait names and corresponding icons use the following syntaxes:

{{Traits/names|<trait index>}}
{{Traits/icons|<trait index>}}

Abbreviated names can be produced for each trait by using specific double indices:

IndexName
11STR
22DEX
33END
44AWA
55PER
66INT
77SLF