Template:Condition type: Difference between revisions
Jump to navigation
Jump to search
(add alias) |
m (add a wrapping span) |
||
Line 1: | Line 1: | ||
<includeonly>{{Icon|Condition Type Icon.png|{{{size|30}}} }}{{#lvardef:name|{{#switch:{{{1}}} | <includeonly><span class="bg3wiki-condition-type">{{Icon|Condition Type Icon.png|{{{size|30}}} }}{{#lvardef:name|{{#switch:{{{1}}} | ||
| curse = Cursed | | curse = Cursed | ||
| cursed = Cursed | | cursed = Cursed | ||
Line 18: | Line 18: | ||
| maimed = Maimed | | maimed = Maimed | ||
| #default = {{{1}}} | | #default = {{{1}}} | ||
}}}} [[{{#lvar:name}} (Condition Type)|{{#if:{{{alias|}}}|{{{alias}}}|{{#lvar:name}} }}]]</includeonly><noinclude> | }}}} [[{{#lvar:name}} (Condition Type)|{{#if:{{{alias|}}}|{{{alias}}}|{{#lvar:name}} }}]]</span></includeonly><noinclude> | ||
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. | ||
Revision as of 15:41, 27 November 2023
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
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 |