Template:Offense/doc: Difference between revisions
From Archaelund Wiki
No edit summary |
No edit summary |
||
| Line 12: | Line 12: | ||
<tr><th>Format</th><th>Description</th><th>Input</th><th>Example output</th></tr> | <tr><th>Format</th><th>Description</th><th>Input</th><th>Example output</th></tr> | ||
<tr><td>1...7</td><td>Extracts the value of the ith entry (i = 1...7) in the offense property input.</td><td>vector of 7 comma-separated numbers, representing offense values (e.g. "3,8,0,2,1,50,10")</td><td>{{Offense|3,8,0,0,0,50,10|1}}</td></tr> | <tr><td>1...7</td><td>Extracts the value of the ith entry (i = 1...7) in the offense property input.</td><td>vector of 7 comma-separated numbers, representing offense values (e.g. "3,8,0,2,1,50,10")</td><td>{{Offense|3,8,0,0,0,50,10|1}}</td></tr> | ||
<tr><td>d1...d7</td><td>Extracts the value of the ith entry (i = 1...7) in the offense property input and formats it as a bonus/malus using [[Template:Difference]].</td><td>vector of 7 comma-separated numbers, representing offense values (e.g. "3,8,0,2,1,50,10")</td><td>{{Offense|3,8,0,0,0,50,10|d1}}</td></tr> | |||
<tr><td>Damage</td><td>Displays consolidated damage information, including element icons.</td><td>vector of 7 comma-separated numbers, representing offense values (e.g. "3,8,0,2,1,50,10")</td><td>{{Offense|3,8,0,2,1,50,10|Damage}}</td></tr> | <tr><td>Damage</td><td>Displays consolidated damage information, including element icons.</td><td>vector of 7 comma-separated numbers, representing offense values (e.g. "3,8,0,2,1,50,10")</td><td>{{Offense|3,8,0,2,1,50,10|Damage}}</td></tr> | ||
</table> | </table> | ||
Revision as of 08:57, 20 March 2022
Description
This template generates various output formats from raw offense property input.
Usage
{{Offense|<offense property input>|<format>}}
Make sure that <offense 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...7 | Extracts the value of the ith entry (i = 1...7) in the offense property input. | vector of 7 comma-separated numbers, representing offense values (e.g. "3,8,0,2,1,50,10") | 3 |
| d1...d7 | Extracts the value of the ith entry (i = 1...7) in the offense property input and formats it as a bonus/malus using Template:Difference. | vector of 7 comma-separated numbers, representing offense values (e.g. "3,8,0,2,1,50,10") | +3 |
| Damage | Displays consolidated damage information, including element icons. | vector of 7 comma-separated numbers, representing offense values (e.g. "3,8,0,2,1,50,10") | 3−8 + 2−1 |
In the above-mentioned vector of 7 comma-separated numbers, each position/index corresponds to a specific offense property. See the subsequent list for details.
Offense property names
| Index | Name |
|---|---|
| 1 | Min. Damage |
| 2 | Max. Damage |
| 3 | Damage Type |
| 4 | Min. Extra Damage |
| 5 | Max. Extra Damage |
| 6 | Extra Damage Type |
| 7 | Accuracy |
To extract the individual offense property names use the following syntax:
{{Offense/names|<offense property index>}}
Abbreviated names can be produced for each offense property by using specific double indices:
| Index | Name |
|---|---|
| 11 | Damage |
| 22 | Damage |
| 33 | Damage |
| 44 | Damage |
| 55 | Damage |
| 66 | Damage |
| 77 | Acc. |