Template:Condition/Format: Difference between revisions
Jump to navigation
Jump to search
HiddenDragon (talk | contribs) (Add support for optional 'dc' field, only used along with the 'save' field) |
No edit summary |
||
(13 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
<includeonly> | <includeonly>{{#lvardef:text|[[{{{page}}}|{{#if:{{{altname|}}}|{{{altname}}}|{{{name}}} }}]]}}<span | ||
{{InfoBlob| {{Duration|{{{duration}}}}} }} | class="bg3wiki-condition" | ||
}} {{#if: {{{save|}}} | | {{#if:{{{inline|}}}|style="white-space: nowrap"}} | ||
{{InfoBlob| {{SavingThrow|{{{save}}}|dc={{{dc|}}}}} }} | >[[File:{{{icon}}}|frameless|{{#if:{{{inline|}}}|{{{w|25}}}px|30px}}|link=|{{{name}}}]] {{#if: {{{inline|}}} | ||
}}{{#if: {{{ | | {{#lvar:text}} | ||
| <strong>{{#lvar:text}}</strong> | |||
}}{{#if: {{{duration|}}} | | |||
<p>{{InfoBlob | {{Duration | {{{duration}}} }} }}</p> | |||
}}{{#if: {{{save|}}} | | |||
<p>{{InfoBlob | {{SavingThrow | {{{save}}} | dc = {{{dc|}}} }} }}</p> | |||
}}{{#if: {{{inline|}}} | | | |||
<div> | |||
{{{effects}}} | |||
</div> | |||
{{#if: {{{types|}}} | | |||
<div>{{Condition Type | {{{types|}}} }}</div> | |||
}} | |||
}}</span></includeonly><noinclude> | |||
Meant to be used with a Cargo query. Preview: | Meant to be used with a Cargo query. Preview: | ||
Line 11: | Line 22: | ||
{{Condition/Format | {{Condition/Format | ||
| page = Bleeding (Condition) | |||
| name = Bleeding | | name = Bleeding | ||
| icon = Bleeding Condition Icon.webp | | icon = Bleeding Condition Icon.webp | ||
Line 21: | Line 33: | ||
{{Condition/Format | {{Condition/Format | ||
| page = Bleeding (Condition) | |||
| name = Bleeding | | name = Bleeding | ||
| icon = Bleeding Condition Icon.webp | | icon = Bleeding Condition Icon.webp | ||
Line 30: | Line 43: | ||
{{Condition/Format | {{Condition/Format | ||
| page = Bleeding (Condition) | |||
| name = Bleeding | | name = Bleeding | ||
| icon = Bleeding Condition Icon.webp | | icon = Bleeding Condition Icon.webp | ||
Line 39: | Line 53: | ||
{{Condition/Format | {{Condition/Format | ||
| page = Bleeding (Condition) | |||
| name = Bleeding | | name = Bleeding | ||
| icon = Bleeding Condition Icon.webp | | icon = Bleeding Condition Icon.webp | ||
Line 51: | Line 66: | ||
{{Condition/Format | {{Condition/Format | ||
| page = Bleeding (Condition) | |||
| name = Bleeding | | name = Bleeding | ||
| icon = Bleeding Condition Icon.webp | | icon = Bleeding Condition Icon.webp | ||
Line 62: | Line 78: | ||
{{Condition/Format | {{Condition/Format | ||
| page = Bleeding (Condition) | |||
| name = Bleeding | | name = Bleeding | ||
| icon = Bleeding Condition Icon.webp | | icon = Bleeding Condition Icon.webp | ||
Line 71: | Line 88: | ||
}} | }} | ||
== | == Name and icon only, inline == | ||
{{Condition/Format | {{Condition/Format | ||
| page = Bleeding (Condition) | |||
| name = Bleeding | | name = Bleeding | ||
| icon = Bleeding Condition Icon.webp | | icon = Bleeding Condition Icon.webp | ||
Line 80: | Line 98: | ||
* Cured by healing. | * Cured by healing. | ||
| inline = true | | inline = true | ||
}} | |||
== Name, icon, effects only == | |||
{{Condition/Format | |||
| page = Bleeding (Condition) | |||
| name = Bleeding | |||
| icon = Bleeding Condition Icon.webp | |||
| effects = Bleeds you out. | |||
}} | |||
== Name, icon, effects, types == | |||
{{Condition/Format | |||
| page = Bleeding (Condition) | |||
| name = Bleeding | |||
| icon = Bleeding Condition Icon.webp | |||
| effects = Bleeds you out. | |||
| types = Diseased | |||
}} | }} | ||
== Alternative display name == | == Alternative display name == | ||
{{Condition/Format | {{Condition/Format | ||
| page = Bleeding (Condition) | |||
| name = Bleeding | | name = Bleeding | ||
| icon = Bleeding Condition Icon.webp | | icon = Bleeding Condition Icon.webp | ||
Line 93: | Line 132: | ||
== Condition with a type == | == Condition with a type == | ||
{{Condition/Format | {{Condition/Format | ||
| page = Bleeding (Condition) | |||
| name = Bleeding | | name = Bleeding | ||
| icon = Bleeding Condition Icon.webp | | icon = Bleeding Condition Icon.webp | ||
Line 102: | Line 143: | ||
== Condition with multiple types == | == Condition with multiple types == | ||
{{Condition/Format | {{Condition/Format | ||
| page = Bleeding (Condition) | |||
| name = Bleeding | | name = Bleeding | ||
| icon = Bleeding Condition Icon.webp | | icon = Bleeding Condition Icon.webp | ||
Line 111: | Line 154: | ||
== Inline condition with a type == | == Inline condition with a type == | ||
Should not show the type. | Should not show the type. | ||
{{Condition/Format | {{Condition/Format | ||
| page = Bleeding (Condition) | |||
| name = Bleeding | |||
| icon = Bleeding Condition Icon.webp | |||
| inline = true | |||
| types = diseased | |||
}}. Blablabla. | |||
Should not wrap. | |||
<div style="width:10px">{{Condition/Format | |||
| page = Bleeding (Condition) | |||
| name = Bleeding | | name = Bleeding | ||
| icon = Bleeding Condition Icon.webp | | icon = Bleeding Condition Icon.webp | ||
| inline = true | | inline = true | ||
| types = diseased | | types = diseased | ||
}} | }}</div> | ||
[[Category:Condition templates]] | [[Category:Condition templates]] |
Revision as of 11:04, 15 April 2024
Meant to be used with a Cargo query. Preview:
Single effect description
BleedingDuration: 3 turns
Inflicts damage every turn.
Duration only
BleedingDuration: 3 turns
Inflicts damage every turn.
Save only
BleedingInflicts damage every turn.
Effect listing
BleedingDuration: 3 turns
- Inflicts damage every turn.
- Cured by healing.
Duration only
BleedingDuration: 3 turns
- Inflicts damage every turn.
- Cured by healing.
Save only
BleedingDC 16 Constitution saving throw
- Inflicts damage every turn.
- Cured by healing.
Name and icon only, inline
Name, icon, effects only
BleedingBleeds you out.
Name, icon, effects, types
BleedingBleeds you out.
Alternative display name
Oh no I'm bleeding- Inflicts damage every turn.
- Cured by healing.
Condition with a type
Bleeding- Oof owie ouch
Condition with multiple types
Bleeding- Oof owie ouch
Inline condition with a type
Should not show the type.
Bleeding. Blablabla.
Should not wrap.
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 |