Template:Condition type: Difference between revisions
Jump to navigation
Jump to search
(categorize) |
HiddenDragon (talk | contribs) mNo edit summary |
||
(6 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
<includeonly>{{Icon|Condition Type Icon.png|{{{size|30}}} }}{{#lvardef:name|{{#switch: | <includeonly><span class="bg3wiki-condition-type">{{#arraydefine:types|{{{1|}}}|,}}{{Icon|Condition Type Icon.png|{{{size|30}}} }}{{#arrayprint:types|, |@@|{{#lvardef:name|{{#switch:@@ | ||
| curse = Cursed | | curse = Cursed | ||
| cursed = Cursed | | cursed = Cursed | ||
Line 16: | Line 16: | ||
| blind = Blinded | | blind = Blinded | ||
| blinded = Blinded | | blinded = Blinded | ||
| #default = | | maimed = Maimed | ||
}}}} [[{{#lvar:name}} ( | | #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. | ||
Line 27: | Line 29: | ||
* {{Condition Type|frightened}} | * {{Condition Type|frightened}} | ||
* {{Condition Type|incapacitated}} | * {{Condition Type|incapacitated}} | ||
* {{Condition Type|maimed}} | |||
* {{Condition Type|poisoned}} | * {{Condition Type|poisoned}} | ||
* {{Condition Type|polymorphed}} | * {{Condition Type|polymorphed}} | ||
Line 34: | Line 37: | ||
The optional parameter {{c|size}} specifies the size of the icon, which defaults to 40px. | The optional parameter {{c|size}} specifies the size of the icon, which defaults to 40px. | ||
The parameter {{c|alias}} replaces the displayed text. | |||
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 48: | Line 57: | ||
"poisoned", | "poisoned", | ||
"cursed", | "cursed", | ||
"polymorphed", | |||
"charmed", | |||
"frightened", | |||
"incapacitated", | |||
"prone", | |||
"unconscious", | |||
"blinded" | |||
], | ], | ||
"required": true | "required": true | ||
Line 62: | Line 71: | ||
"type": "number", | "type": "number", | ||
"default": "40" | "default": "40" | ||
}, | |||
"alias": { | |||
"description": "Will replace the displayed link text.", | |||
"type": "string" | |||
} | } | ||
}, | }, | ||
Line 69: | Line 82: | ||
[[Category:Condition templates]]</noinclude> | [[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 |