6,364
editsremove no icon, implement multiple display
(add maimed) |
(remove no icon, implement multiple display) |
||
(4 intermediate revisions by the same 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 17: | Line 17: | ||
| blinded = Blinded | | blinded = Blinded | ||
| maimed = Maimed | | maimed = Maimed | ||
| #default = | | #default = @@ | ||
}}}} [[{{#lvar:name}} (Condition Type)|{{#lvar:name}}]]</includeonly><noinclude> | }}}} [[{{#lvar:name}} (Condition Type)|{{#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 36: | 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 50: | Line 57: | ||
"poisoned", | "poisoned", | ||
"cursed", | "cursed", | ||
"polymorphed", | |||
"charmed", | |||
"frightened", | |||
"incapacitated", | |||
"prone", | |||
"unconscious", | |||
"blinded" | |||
], | ], | ||
"required": true | "required": true | ||
Line 64: | Line 71: | ||
"type": "number", | "type": "number", | ||
"default": "40" | "default": "40" | ||
}, | |||
"alias": { | |||
"description": "Will replace the displayed link text.", | |||
"type": "string" | |||
} | } | ||
}, | }, | ||
Line 71: | Line 82: | ||
[[Category:Condition templates]]</noinclude> | [[Category:Condition templates]]}}</noinclude> |