Template:Condition: Difference between revisions

Jump to navigation Jump to search
(Make category condition templates)
(Add support for optional DC field)
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
| fields = name, icon, effects, types, CONCAT('{{{save|}}}') = save, CONCAT('{{{duration|}}}') = duration, CONCAT('{{{inline|}}}') = inline, CONCAT('{{#replace:{{{altname|}}}|'|"}}') = altname, CONCAT('{{#replace:{{{dc|}}}|'|"}}') = dc
| where = name = '{{#replace: {{{1}}} | ' | '' }}'
| where = name = '{{#replace: {{{1}}} | ' | '' }}'
| format = template
| format = template
Line 57: Line 57:


<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 }}
----
----