Template:Condition type: Difference between revisions
Jump to navigation
Jump to search
(Fix links to account for page moves) |
HiddenDragon (talk | contribs) mNo edit summary |
||
(12 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
<includeonly>{{Icon|Condition Type Icon.png|{{{size|30}}} }}{{# | <includeonly><span class="bg3wiki-condition-type">{{#arraydefine:types|{{{1|}}}|,}}{{Icon|Condition Type Icon.png|{{{size|30}}} }}{{#arrayprint:types|, |@@|{{#lvardef:name|{{#switch:@@ | ||
| curse = | | curse = Cursed | ||
| disease = | | cursed = Cursed | ||
| poison = | | disease = Diseased | ||
| | | diseased = Diseased | ||
}}</includeonly><noinclude> | | poison = Poisoned | ||
| poisoned = Poisoned | |||
| polymorphed = Polymorphed | |||
| charm = Charmed | |||
| charmed = Charmed | |||
| frightened = Frightened | |||
| incapacitated = Incapacitated | |||
| proned = Prone | |||
| prone = Prone | |||
| unconscious = Unconscious | |||
| blind = Blinded | |||
| blinded = Blinded | |||
| maimed = Maimed | |||
| #default = @@ | |||
}}}} [[{{#lvar:name}} (status group)|{{#if:{{{alias|}}}|{{{alias}}}|{{#lvar:name}} }}]] | |||
}}</span></includeonly><noinclude>{{documentation|content= | |||
Displays the condition icon plus a link to Curse, Disease, or Poison according to the provided type parameter. | Displays the condition icon plus a link to Curse, Disease, or Poison according to the provided type parameter. | ||
{{Condition | {{div col}} | ||
* {{Condition Type|blinded}} | |||
* {{Condition Type|charmed}} | |||
* {{Condition Type|cursed}} | |||
* {{Condition Type|diseased}} | |||
* {{Condition Type|frightened}} | |||
* {{Condition Type|incapacitated}} | |||
* {{Condition Type|maimed}} | |||
* {{Condition Type|poisoned}} | |||
* {{Condition Type|polymorphed}} | |||
* {{Condition Type|prone}} | |||
* {{Condition Type|unconscious}} | |||
{{div col end}} | |||
{{ | The optional parameter {{c|size}} specifies the size of the icon, which defaults to 40px. | ||
{{ | The parameter {{c|alias}} replaces the displayed text. | ||
{{Condition/Type| | E.g. <code><nowiki>{{Condition Type|maimed|alias=maiming}}</nowiki></code>: {{Condition Type|maimed|alias=Maiming}} | ||
Can also display multiple, comma-separated condition types: {{Condition type|prone,unconscious}}. Note that in this case, alias will not work as expected. | |||
== Template data == | == Template data == | ||
Line 27: | Line 54: | ||
"type": "string", | "type": "string", | ||
"suggestedvalues": [ | "suggestedvalues": [ | ||
" | "diseased", | ||
" | "poisoned", | ||
" | "cursed", | ||
"polymorphed", | |||
"charmed", | |||
"frightened", | |||
"incapacitated", | |||
"prone", | |||
"unconscious", | |||
"blinded" | |||
], | ], | ||
"required": true | "required": true | ||
Line 38: | Line 71: | ||
"type": "number", | "type": "number", | ||
"default": "40" | "default": "40" | ||
}, | |||
"alias": { | |||
"description": "Will replace the displayed link text.", | |||
"type": "string" | |||
} | } | ||
}, | }, | ||
Line 45: | Line 82: | ||
[[Category: | [[Category:Condition templates]]}}</noinclude> |
Latest revision as of 18:29, 30 August 2024
Template documentation
Displays the condition icon plus a link to Curse, Disease, or Poison according to the provided type parameter.
The optional parameter size
specifies the size of the icon, which defaults to 40px.
The parameter alias
replaces the displayed text.
E.g. {{Condition Type|maimed|alias=maiming}}
: Maiming
Can also display multiple, comma-separated condition types: Prone, Unconscious. Note that in this case, alias will not work as expected.
Template data
No description.
Parameter | Description | Type | Status | |
---|---|---|---|---|
type | 1 | The type of condition.
| String | required |
size | size | The size of the icon
| Number | optional |
alias | alias | Will replace the displayed link text. | String | optional |