Template:Condition: Difference between revisions

Jump to navigation Jump to search
(Add inline use case)
(rename skip effect -> inline)
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, CONCAT('{{{save|}}}') = save, CONCAT('{{{duration|}}}') = duration, CONCAT('{{{skip effect|}}}') = skip effect
| fields = name, icon, effects, CONCAT('{{{save|}}}') = save, CONCAT('{{{duration|}}}') = duration, CONCAT('{{{inline|}}}') = skip effect
| where = name = '{{#replace: {{{1}}} | ' | '' }}'
| where = name = '{{#replace: {{{1}}} | ' | '' }}'
| format = template
| format = template
Line 85: Line 85:
</pre>
</pre>


Result: blabla {{Condition | Bleeding | skip effect = true }} blabla
Result: blabla {{Condition | Bleeding | inline = true }} blabla


</noinclude>
</noinclude>