6,364
editsremove no icon, implement multiple display
m (pipe the link) |
(remove no icon, implement multiple display) |
||
(21 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<includeonly>{{Icon|Condition Type Icon.png|size | <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 | ||
}}</includeonly><noinclude> | | diseased = Diseased | ||
| 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}} (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. | ||
{{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. | ||
[[Category: | 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 == | |||
<templatedata> | |||
{ | |||
"params": { | |||
"1": { | |||
"label": "type", | |||
"description": "The type of condition.", | |||
"type": "string", | |||
"suggestedvalues": [ | |||
"diseased", | |||
"poisoned", | |||
"cursed", | |||
"polymorphed", | |||
"charmed", | |||
"frightened", | |||
"incapacitated", | |||
"prone", | |||
"unconscious", | |||
"blinded" | |||
], | |||
"required": true | |||
}, | |||
"size": { | |||
"description": "The size of the icon", | |||
"type": "number", | |||
"default": "40" | |||
}, | |||
"alias": { | |||
"description": "Will replace the displayed link text.", | |||
"type": "string" | |||
} | |||
}, | |||
"format": "inline" | |||
} | |||
</templatedata> | |||
[[Category:Condition templates]]}}</noinclude> |