Template:Condition: Difference between revisions
Jump to navigation
Jump to search
blabla
(Add inline use case) |
(rename skip effect -> inline) |
||
Line 1: | Line 1: | ||
<includeonly><onlyinclude>{{#if:{{{border|}}}|<div style="padding-bottom: 1em"><div class="bg3wiki-tooltip-box">||}}{{#cargo_query: tables = conditions | <includeonly><onlyinclude>{{#if:{{{border|}}}|<div style="padding-bottom: 1em"><div class="bg3wiki-tooltip-box">||}}{{#cargo_query: tables = conditions | ||
| fields = name, icon, effects, CONCAT('{{{save|}}}') = save, CONCAT('{{{duration|}}}') = duration, CONCAT('{{{ | | fields = name, icon, effects, CONCAT('{{{save|}}}') = save, CONCAT('{{{duration|}}}') = duration, CONCAT('{{{inline|}}}') = skip effect | ||
| where = name = '{{#replace: {{{1}}} | ' | '' }}' | | where = name = '{{#replace: {{{1}}} | ' | '' }}' | ||
| format = template | | format = template | ||
Line 85: | Line 85: | ||
</pre> | </pre> | ||
Result: blabla {{Condition | Bleeding | | Result: blabla {{Condition | Bleeding | inline = true }} blabla | ||
</noinclude> | </noinclude> |
Revision as of 20:15, 27 September 2023
Use this to display a condition. Examples follow.
This template just runs the Cargo query. For the formatting, see: Template:Condition/Format
Base usage
Usage:
{{Condition | Bleeding }}
Result:
- Creature takes 2Slashing damage at the start of each turn and has Disadvantage on Constitution Saving throws.
- Removed by healing.
With duration
Usage:
{{Condition | Bleeding | duration = 2 }}
Result:
Duration: 2 turns
- Creature takes 2Slashing damage at the start of each turn and has Disadvantage on Constitution Saving throws.
- Removed by healing.
With saving throw
Usage:
{{Condition | Bleeding | save = CON }}
Result:
- Creature takes 2Slashing damage at the start of each turn and has Disadvantage on Constitution Saving throws.
- Removed by healing.
With duration and saving throw
Usage:
{{Condition | Bleeding | save = CON | duration = 2 }}
Result:
Duration: 2 turns
- Creature takes 2Slashing damage at the start of each turn and has Disadvantage on Constitution Saving throws.
- Removed by healing.
With a border
Use border = 1 to add a border.
{{Condition | Bleeding | save = CON | duration = 2 | border = 1}}
Result:
Duration: 2 turns
- Creature takes 2Slashing damage at the start of each turn and has Disadvantage on Constitution Saving throws.
- Removed by healing.
Inline-friendly
Usage:
{{Condition | Bleeding | skip effect = true }}Result: blabla
- Creature takes 2Slashing damage at the start of each turn and has Disadvantage on Constitution Saving throws.
- Removed by healing.