Template:Condition: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
<includeonly><div style="padding-bottom: 1em"><div class="bg3wiki-tooltip-box">{{#cargo_query: tables = conditions | <includeonly>{{#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 | | fields = name, icon, effects, CONCAT('{{{save|}}}') = save, CONCAT('{{{duration|}}}') = duration | ||
| where = name = '{{#replace: {{{1}}} | ' | '' }}' | | where = name = '{{#replace: {{{1}}} | ' | '' }}' | ||
Line 5: | Line 5: | ||
| template = Condition/Format | | template = Condition/Format | ||
| named args = yes | | named args = yes | ||
}}</div></div></includeonly><noinclude> | }}{{#if:{{{border|1}}}|</div></div>||}}</includeonly><noinclude> | ||
Use this to display a condition. Examples follow. | Use this to display a condition. Examples follow. | ||
Line 54: | Line 54: | ||
---- | ---- | ||
{{Condition | Bleeding | save = CON | duration = 2 }} | {{Condition | Bleeding | save = CON | duration = 2 }} | ||
---- | |||
Use {{InfoBlob|<nowiki>border = 1</nowiki>}} to add a border. | |||
<pre> | |||
{{Condition | Bleeding | save = CON | duration = 2 | border = 1}} | |||
</pre> | |||
Result: | |||
---- | |||
{{Condition | Bleeding | save = CON | duration = 2 | border = 1}} | |||
---- | ---- | ||
</noinclude> | </noinclude> |
Revision as of 09:42, 17 September 2023
Use this to display a condition. Examples follow.
This template just runs the Cargo query. For the formatting, see: Template:Condition/Format
Usage:
{{Condition | Bleeding }}
Result:
- Creature takes 2Slashing damage at the start of each turn and has Disadvantage on Constitution Saving throws.
- Removed by healing.
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.
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.
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.
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.