Template:Condition/Format: Difference between revisions
Jump to navigation
Jump to search
(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> |
Revision as of 14:42, 2 October 2023
Meant to be used with a Cargo query. Preview:
Single effect description
Bleeding Duration: 3 turns Constitution saving throw
Inflicts damage every turn.
Duration only
Bleeding Duration: 3 turns
Inflicts damage every turn.
Save only
Bleeding Inflicts damage every turn.Effect listing
Bleeding Duration: 3 turns Constitution saving throw
- Inflicts damage every turn.
- Cured by healing.
Duration only
Bleeding Duration: 3 turns
- Inflicts damage every turn.
- Cured by healing.
Save only
Bleeding- Inflicts damage every turn.
- Cured by healing.
Icon and name only
Alternative display name
- Inflicts damage every turn.
- Cured by healing.
Template data
No description.
Parameter | Description | Type | Status | |
---|---|---|---|---|
name | name | The name of the condition. | String | optional |
icon | icon | The icon of the condition | File | optional |
inline | inline | Whether the condition should be formatted inline | Boolean | optional |
duration | duration | no description | Unknown | optional |
save | save | no description | Unknown | optional |
effects | effects | no description | Unknown | optional |
altname | altname | An alternative display name for the condition link. | String | optional |