Template:Condition: Difference between revisions
Jump to navigation
Jump to search
HiddenDragon (talk | contribs) mNo edit summary Tag: Manual revert |
HiddenDragon (talk | contribs) (Search by the page name instead of name) Tag: Reverted |
||
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|}}}|'|"}}') = altname, CONCAT('{{#replace:{{{dc|}}}|'|"}}') = dc | | fields = name, icon, effects, types, CONCAT('{{{save|}}}') = save, CONCAT('{{{duration|}}}') = duration, CONCAT('{{{inline|}}}') = inline, CONCAT('{{#replace:{{{altname|}}}|'|"}}') = altname, CONCAT('{{#replace:{{{dc|}}}|'|"}}') = dc | ||
| where = | | where = _pageName = "{{#replace:{{{1}}}|'|\'}}" | ||
| format = template | | format = template | ||
| template = Condition/Format | | template = Condition/Format |
Revision as of 22:52, 15 November 2023
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:
No results
With duration
Usage:
{{Condition | Bleeding | duration = 2 }}
Result:
No results
With saving throw
Usage:
{{Condition | Bleeding | save = CON }}
Result:
No results
With duration and saving throw
Usage:
{{Condition | Bleeding | save = CON | duration = 2 | dc = 15 }}
Result:
No results
With a border
Use border = 1 to add a border.
{{Condition | Bleeding | save = CON | duration = 2 | border = 1}}
Result:
No results
Inline-friendly
Usage:
{{Condition | Bleeding | inline = true }}
Result: blabla No results blabla
Alternative display name
{{Condition | Bleeding | save = CON | altname=oh no i'm bleeding | duration = 2 }}
Result: No results
Also displays types
No results