41,857
edits
m
no edit summary
No edit summary |
HiddenDragon (talk | contribs) mNo edit summary |
||
(34 intermediate revisions by 5 users not shown) | |||
Line 1: | Line 1: | ||
<includeonly>{{#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 | | fields = _pageName=page, name, icon, effects, types, CONCAT('{{{save|}}}') = save, CONCAT('{{{duration|}}}') = duration, CONCAT('{{{inline|}}}') = inline, CONCAT('{{#replace:{{{altname|}}}|'|\'}}') = altname, CONCAT('{{#replace:{{{dc|}}}|'|"}}') = dc, CONCAT('{{#if:{{{w|}}}|{{{w}}}|25}}') = w, | ||
| | | where = _pageName = "{{#replace:{{{1}}}|'|\'}} (Condition)" | ||
| format = template | | format = template | ||
| template = Condition/Format | | template = Condition/Format | ||
| named args = yes | | named args = yes | ||
}}</includeonly><noinclude> | | limit = 1 | ||
| order by = _ID | |||
| more results text= | |||
| default = [[{{{1}}} (Condition)|{{{1}}}]][[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. | ||
This template just runs the Cargo query. For the formatting, see: [[Template:Condition/Format]] | This template just runs the Cargo query. For the formatting, see: [[Template:Condition/Format]] | ||
=== Base usage === | |||
Usage: | Usage: | ||
Line 22: | Line 26: | ||
{{Condition | Bleeding }} | {{Condition | Bleeding }} | ||
---- | ---- | ||
=== With duration === | |||
Usage: | Usage: | ||
Line 33: | Line 39: | ||
{{Condition | Bleeding | duration = 2 }} | {{Condition | Bleeding | duration = 2 }} | ||
---- | ---- | ||
=== With saving throw === | |||
Usage: | Usage: | ||
Line 44: | Line 52: | ||
{{Condition | Bleeding | save = CON }} | {{Condition | Bleeding | save = CON }} | ||
---- | ---- | ||
=== With duration and saving throw === | |||
Usage: | Usage: | ||
<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 }} | ||
---- | ---- | ||
=== With a border === | |||
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}} | |||
---- | |||
=== Inline-friendly === | |||
Usage: | |||
<pre> | |||
{{Condition | Bleeding | inline = true }} | |||
</pre> | |||
Result: blabla {{Condition | Bleeding | inline = true }} blabla | |||
=== Alternative display name === | |||
<pre> | |||
{{Condition | Bleeding | save = CON | altname=oh no i'm bleeding | duration = 2 }} | |||
</pre> | |||
Result: | |||
{{Condition | Bleeding | save = CON | altname=oh no i'm bleeding | duration = 2 }} | |||
== Also displays types == | |||
{{Condition | Feverish }} | |||
}} | |||
[[Category:Condition templates]] | |||
</noinclude> | </noinclude> |