6,366
editsAd placeholder
Template:Condition/Format: Difference between revisions
Jump to navigation
Jump to search
Add altname
(Inline use no longer bolds) |
(Add altname) |
||
Line 1: | Line 1: | ||
<includeonly>{{#lvardef:text|[[{{{name}}} (Condition)|{{{name}}}]]}}[[File:{{{icon}}}|frameless|{{#if:{{{inline|}}}|25px|30px}}|link=|{{{name}}}]] {{#if:{{{inline|}}}|{{#lvar:text}}|<strong>{{#lvar:text}}</strong>}} {{#if: {{{duration|}}}{{{save|}}} | <div> }}{{#if: {{{duration|}}} | | <includeonly>{{#lvardef:text|[[{{{name}}} (Condition)|{{#if:{{{altname|}}}|{{{altname}}}|{{{name}}} }}]]}}[[File:{{{icon}}}|frameless|{{#if:{{{inline|}}}|25px|30px}}|link=|{{{name}}}]] {{#if:{{{inline|}}}|{{#lvar:text}}|<strong>{{#lvar:text}}</strong>}} {{#if: {{{duration|}}}{{{save|}}} | <div> }}{{#if: {{{duration|}}} | | ||
{{InfoBlob| {{Duration|{{{duration}}}}} }} | {{InfoBlob| {{Duration|{{{duration}}}}} }} | ||
}} {{#if: {{{save|}}} | | }} {{#if: {{{save|}}} | | ||
Line 78: | Line 78: | ||
| inline = true | | inline = true | ||
}} | }} | ||
== Alternative display name == | |||
{{Condition/Format | |||
| name = Bleeding | |||
| icon = Bleeding Condition Icon.webp | |||
| effects = | |||
* Inflicts damage every turn. | |||
* Cured by healing. | |||
| altname = Oh no I'm bleeding | |||
}} | |||
== Template data == | |||
<templatedata> | |||
{ | |||
"params": { | |||
"name": { | |||
"description": "The name of the condition.", | |||
"type": "string" | |||
}, | |||
"icon": { | |||
"description": "The icon of the condition", | |||
"type": "wiki-file-name" | |||
}, | |||
"inline": { | |||
"description": "Whether the condition should be formatted inline", | |||
"type": "boolean" | |||
}, | |||
"duration": {}, | |||
"save": {}, | |||
"effects": {}, | |||
"altname": { | |||
"description": "An alternative display name for the condition link.", | |||
"type": "string" | |||
} | |||
} | |||
} | |||
</templatedata> |