Template:Condition/Format: Difference between revisions

Template page
(Add type and examples.)
(Show conditions of conditions)
 
(28 intermediate revisions by 6 users not shown)
Line 1: Line 1:
<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|}}} |
<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}}}}} }}
<p>{{InfoBlob | {{Duration | {{{duration}}} }} }}</p>
}} {{#if: {{{save|}}} |
}}{{#if: {{{save|}}} |
{{InfoBlob| {{SavingThrow|{{{save}}}}} }}
<p>{{InfoBlob | {{SavingThrow | {{{save}}} | dc = {{{dc|}}} }} }}</p>
}}{{#if: {{{duration|}}}{{{save|}}} | </div> }} {{#if:{{{inline|}}}||{{{effects}}}{{#if:{{{type|}}}|{{clear}}
}}
* {{Condition/Type|{{{type}}} }} }} }}</includeonly><noinclude>
<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 10: Line 39:


{{Condition/Format
{{Condition/Format
| page = Bleeding (Condition)
| name = Bleeding
| name = Bleeding
| icon = Bleeding Condition Icon.webp
| icon = Bleeding Condition Icon.webp
Line 20: Line 50:


{{Condition/Format
{{Condition/Format
| page = Bleeding (Condition)
| name = Bleeding
| name = Bleeding
| icon = Bleeding Condition Icon.webp
| icon = Bleeding Condition Icon.webp
Line 29: Line 60:


{{Condition/Format
{{Condition/Format
| page = Bleeding (Condition)
| name = Bleeding
| name = Bleeding
| icon = Bleeding Condition Icon.webp
| icon = Bleeding Condition Icon.webp
Line 38: Line 70:


{{Condition/Format
{{Condition/Format
| page = Bleeding (Condition)
| name = Bleeding
| name = Bleeding
| icon = Bleeding Condition Icon.webp
| icon = Bleeding Condition Icon.webp
Line 50: Line 83:


{{Condition/Format
{{Condition/Format
| page = Bleeding (Condition)
| name = Bleeding
| name = Bleeding
| icon = Bleeding Condition Icon.webp
| icon = Bleeding Condition Icon.webp
Line 61: 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 69: Line 105:
}}
}}


== Icon and name only ==
== 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 78: 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 91: 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
| effects =
| effects =
* Oof owie ouch
* Oof owie ouch
| type = disease
| types = diseased
}}
 
== Condition with multiple types ==
 
{{Condition/Format
| page = Bleeding (Condition)
| name = Bleeding
| icon = Bleeding Condition Icon.webp
| effects =
* Oof owie ouch
| types = diseased,prone
}}
}}


== 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
| name = Bleeding
| icon = Bleeding Condition Icon.webp
| icon = Bleeding Condition Icon.webp
| inline = true
| inline = true
| type = disease
| types = diseased
}}
}}. Blablabla.
 
Should not wrap.
 
<div style="width:10px">{{Condition/Format
| page = Bleeding (Condition)
| name = Bleeding
| icon = Bleeding Condition Icon.webp
| inline = true
| types = diseased
}}</div>


[[Category:Condition templates]]
== Template data ==
== Template data ==
<templatedata>
<templatedata>
Line 134: Line 219:
}
}
</templatedata>
</templatedata>
</noinclude>

Latest revision as of 19:49, 13 May 2024

Meant to be used with a Cargo query. Preview:

Single effect description

Bleeding Bleeding

Duration: 3 turns

Constitution saving throw

Inflicts damage every turn.

Duration only

Bleeding Bleeding

Duration: 3 turns

Inflicts damage every turn.

Save only

Bleeding Bleeding

Constitution saving throw

Inflicts damage every turn.

Effect listing

Bleeding Bleeding

Duration: 3 turns

Constitution saving throw

  • Inflicts damage every turn.
  • Cured by healing.

Duration only

Bleeding Bleeding

Duration: 3 turns

  • Inflicts damage every turn.
  • Cured by healing.

Save only

Bleeding Bleeding

DC 16  Constitution saving throw

  • Inflicts damage every turn.
  • Cured by healing.

Name and icon only, inline

Bleeding Bleeding

Name, icon, effects only

Bleeding Bleeding

Bleeds you out.

Name, icon, effects, types

Bleeding Bleeding

Bleeds you out.

Alternative display name

Oh no I'm bleeding Oh no I'm bleeding
  • Inflicts damage every turn.
  • Cured by healing.

Condition with a type

Bleeding Bleeding
  • Oof owie ouch

Condition with multiple types

Bleeding Bleeding
  • Oof owie ouch

Inline condition with a type

Should not show the type.

Bleeding Bleeding. Blablabla.

Should not wrap.

Template data

No description.

Template parameters

ParameterDescriptionTypeStatus
namename

The name of the condition.

Stringoptional
iconicon

The icon of the condition

Fileoptional
inlineinline

Whether the condition should be formatted inline

Booleanoptional
durationduration

no description

Unknownoptional
savesave

no description

Unknownoptional
effectseffects

no description

Unknownoptional
altnamealtname

An alternative display name for the condition link.

Stringoptional