Template:Defense/doc: Difference between revisions
From Archaelund Wiki
(Created page with "== Description == This template generates various output formats from raw defense property input. == Usage == <pre> {{Defense|<defense property input>|<format>}} </pre> Make...") |
No edit summary |
||
| Line 15: | Line 15: | ||
In the above-mentioned vector of 2 comma-separated numbers, each position/index corresponds to a specific defense property. See the subsequent list for details. | In the above-mentioned vector of 2 comma-separated numbers, each position/index corresponds to a specific defense property. See the subsequent list for details. | ||
== | == Defense property names == | ||
<table class="wikitable> | <table class="wikitable> | ||
<tr><th>Index</th><th>Name</th></tr> | <tr><th>Index</th><th>Name</th></tr> | ||
Revision as of 11:47, 27 September 2020
Description
This template generates various output formats from raw defense property input.
Usage
{{Defense|<defense property input>|<format>}}
Make sure that <defense property input> is formatted correctly according to the rules given below, otherwise error messages may be generated.
Format options
| Format | Description | Input | Example output |
|---|---|---|---|
| 1...2 | Extracts the value of the ith entry (i = 1...2) in the defense property input. | vector of 7 comma-separated numbers, representing defense values (e.g. "2,15") | 2 |
In the above-mentioned vector of 2 comma-separated numbers, each position/index corresponds to a specific defense property. See the subsequent list for details.
Defense property names
| Index | Name |
|---|---|
| 1 | Armor |
| 2 | Avoidance |
To extract the individual defense property names use the following syntax:
{{Defense/names|<defense property index>}}
Abbreviated names can be produced for each defense property by using specific double indices:
| Index | Name |
|---|---|
| 11 | Arm. |
| 22 | Avoid. |