Template:Condition: Difference between revisions
Jump to navigation
Jump to search
(Multiple type support) |
HiddenDragon (talk | contribs) No edit summary |
||
(29 intermediate revisions by 4 users not shown) | |||
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, types, CONCAT('{{{save|}}}') = save, CONCAT('{{{duration|}}}') = duration, CONCAT('{{{inline|}}}') = inline, CONCAT('{{#replace:{{{altname|}}}|'|"}}') = | | fields = _pageName=page, name, icon, effects, types, CONCAT('{{{save|}}}') = save, CONCAT('{{{duration|}}}') = duration, CONCAT('{{{inline|}}}') = inline, CONCAT('{{#replace:{{{altname|}}}|'|\'}}') = altname, CONCAT('{{#replace:{{{radius m|}}}|'|\'}}') = radius m, CONCAT('{{#replace:{{{dc|}}}|'|"}}') = dc, CONCAT('{{#if:{{{w|}}}|{{{w}}}|25}}') = w, | ||
| where = | | where = _pageName = "{{#replace:{{{1}}}|'|\'}} (Condition)" | ||
| format = template | | format = template | ||
| template = Condition/Format | | template = Condition/Format | ||
Line 8: | Line 8: | ||
| order by = _ID | | order by = _ID | ||
| more results text= | | more results text= | ||
}}{{#if:{{{border|}}}|</div></div>||}}</onlyinclude></includeonly><noinclude> | | default = [[{{{1}}} (Condition)|{{{1}}}]]{{Main namespace only|[[Category:Pages with unknown conditions]]}} | ||
}}{{#if:{{{border|}}}|</div></div>||}}</onlyinclude></includeonly><noinclude>{{documentation|content= | |||
Use this to display a condition. Examples follow. | Use this to display a condition. Examples follow. | ||
Line 50: | Line 51: | ||
---- | ---- | ||
{{Condition | Bleeding | save = CON }} | {{Condition | Bleeding | save = CON }} | ||
---- | |||
=== With radius === | |||
Usage: | |||
<pre> | |||
{{Condition | Bleeding | radius m = 3 }} | |||
</pre> | |||
Result: | |||
---- | |||
{{Condition | Bleeding | radius m = 3 }} | |||
---- | ---- | ||
Line 57: | Line 71: | ||
<pre> | <pre> | ||
{{Condition | Bleeding | save = CON | duration = 2 }} | {{Condition | Bleeding | save = CON | duration = 2 | dc = 15 }} | ||
</pre> | </pre> | ||
Result: | Result: | ||
---- | ---- | ||
{{Condition | Bleeding | save = CON | duration = 2 }} | {{Condition | Bleeding | save = CON | duration = 2 | dc = 15 }} | ||
---- | ---- | ||
Line 97: | Line 111: | ||
== Also displays types == | == Also displays types == | ||
{{Condition | Feverish }} | {{Condition | Feverish }} | ||
}} | |||
[[Category:Condition templates]] | |||
</noinclude> | </noinclude> |
Latest revision as of 07:21, 6 June 2024
Template documentation
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 radius
Usage:
{{Condition | Bleeding | radius m = 3 }}
Result:
Radius: 3 m / 10 ft
- 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 | dc = 15 }}
Result:
Duration: 2 turns
DC 15 Constitution saving throw
- 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 | inline = true }}
Result: blabla blabla
Alternative display name
{{Condition | Bleeding | save = CON | altname=oh no i'm 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.
Also displays types
- Increasingly feverish. Disadvantage on Ability checks and Saving throws using Strength.
- When the duration ends, make a DC 15 Constitution saving throw. Failing will inflict the condition .
- Duration: 25 turns