Template:Condition/Format: Difference between revisions
Jump to navigation
Jump to search
(sorry sky! revert this if it breaks stuff) Tag: Reverted |
HiddenDragon (talk | contribs) (Show conditions of conditions) |
||
(24 intermediate revisions by 6 users not shown) | |||
Line 1: | Line 1: | ||
<includeonly>{{# | <includeonly>{{#if:{{{inline|}}}|<span class="bg3wiki-condition" style="white-space: nowrap">{{IconLink|{{{icon}}}|{{{page}}}|{{#if: {{{altname|}}} | {{{altname}}} | {{{name|{{{page}}}}}}}}|w={{{w|25}}}|h={{{w|25}}}}}</span>|<div class="bg3wiki-condition"><strong>{{IconLink|{{{icon}}}|{{{page}}}|{{#if: {{{altname|}}} | {{{altname}}} | {{{name|{{{page}}}}}}}}|w={{{w|30}}}|h={{{w|30}}}}}</strong>{{#if: {{{duration|}}} | | ||
{{InfoBlob| {{Duration|{{{duration}}}}} {{#if: {{{ | <p>{{InfoBlob | {{Duration | {{{duration}}} }} }}</p> | ||
}} {{#if: {{{ | }}{{#if: {{{save|}}} | | ||
{{ | <p>{{InfoBlob | {{SavingThrow | {{{save}}} | dc = {{{dc|}}} }} }}</p> | ||
}}{{#if: {{{ | }} | ||
{{ | <div> | ||
{{{effects}}} | |||
</div> | |||
{{#if: {{{types|}}} | | |||
<div>{{Condition Type | {{{types|}}} }}</div> | |||
}}{{#if: {{{condition|}}} | | |||
<h3> Condition: {{{condition}}} </h3> | |||
<div class="bg3wiki-tooltip-box bg3wiki-tooltip-gradient-common"> | |||
{{Condition | {{{condition}}} | |||
| save = {{{condition save|}}} | |||
| dc = {{{condition dc|}}} | |||
| duration = {{{condition duration|}}} | |||
}} | |||
</div> | |||
}} {{#if: {{{condition2|}}} | | |||
<h3> Condition: {{{condition2}}} </h3> | |||
<div class="bg3wiki-tooltip-box bg3wiki-tooltip-gradient-common"> | |||
{{Condition | {{{condition2}}} | |||
| save = {{{condition2 save|}}} | |||
| dc = {{{condition2 dc|}}} | |||
| duration = {{{condition2 duration|}}} | |||
}} | |||
</div> | |||
}}</div>}}</includeonly><noinclude> | |||
Meant to be used with a Cargo query. Preview: | Meant to be used with a Cargo query. Preview: | ||
Line 11: | Line 39: | ||
{{Condition/Format | {{Condition/Format | ||
| page = Bleeding (Condition) | |||
| name = Bleeding | | name = Bleeding | ||
| icon = Bleeding Condition Icon.webp | | icon = Bleeding Condition Icon.webp | ||
Line 21: | Line 50: | ||
{{Condition/Format | {{Condition/Format | ||
| page = Bleeding (Condition) | |||
| name = Bleeding | | name = Bleeding | ||
| icon = Bleeding Condition Icon.webp | | icon = Bleeding Condition Icon.webp | ||
| duration = 3 | | duration = 3 | ||
| effects = Inflicts damage every turn. | | effects = Inflicts damage every turn. | ||
}} | }} | ||
Line 39: | Line 60: | ||
{{Condition/Format | {{Condition/Format | ||
| page = Bleeding (Condition) | |||
| name = Bleeding | | name = Bleeding | ||
| icon = Bleeding Condition Icon.webp | | icon = Bleeding Condition Icon.webp | ||
Line 48: | Line 70: | ||
{{Condition/Format | {{Condition/Format | ||
| page = Bleeding (Condition) | |||
| name = Bleeding | | name = Bleeding | ||
| icon = Bleeding Condition Icon.webp | | icon = Bleeding Condition Icon.webp | ||
Line 60: | Line 83: | ||
{{Condition/Format | {{Condition/Format | ||
| page = Bleeding (Condition) | |||
| name = Bleeding | | name = Bleeding | ||
| icon = Bleeding Condition Icon.webp | | icon = Bleeding Condition Icon.webp | ||
Line 71: | Line 95: | ||
{{Condition/Format | {{Condition/Format | ||
| page = Bleeding (Condition) | |||
| name = Bleeding | | name = Bleeding | ||
| icon = Bleeding Condition Icon.webp | | icon = Bleeding Condition Icon.webp | ||
| save = CON | | save = CON | ||
| dc = 16 | |||
| effects = | | effects = | ||
* Inflicts damage every turn. | * Inflicts damage every turn. | ||
Line 79: | Line 105: | ||
}} | }} | ||
== | == 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 88: | Line 115: | ||
* 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 101: | Line 149: | ||
== 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 110: | Line 160: | ||
== 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 119: | Line 171: | ||
== 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]] | ||
Line 145: | Line 210: | ||
}, | }, | ||
"duration": {}, | "duration": {}, | ||
"save": {}, | "save": {}, | ||
"effects": {}, | "effects": {}, |
Latest revision as of 19:49, 13 May 2024
Meant to be used with a Cargo query. Preview:
Single effect description
Duration only
Duration: 3 turns
Inflicts damage every turn.
Save only
Inflicts damage every turn.
Effect listing
Duration only
Duration: 3 turns
- Inflicts damage every turn.
- Cured by healing.
Save only
DC 16 Constitution saving throw
- Inflicts damage every turn.
- Cured by healing.
Name and icon only, inline
Name, icon, effects only
Bleeds you out.
Name, icon, effects, types
Bleeds you out.
Alternative display name
- Inflicts damage every turn.
- Cured by healing.
Condition with a type
- Oof owie ouch
Condition with multiple types
Inline condition with a type
Should not show the type.
. 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 |