Ad placeholder

Template:Condition: Difference between revisions

Jump to navigation Jump to search
Add altname
(Fix wrong documentation for inline)
(Add altname)
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('{{{inline|}}}') = inline
| fields = name, icon, effects, CONCAT('{{{save|}}}') = save, CONCAT('{{{duration|}}}') = duration, CONCAT('{{{inline|}}}') = inline, CONCAT('{{#replace:{{{altname|}}}|'|"}}') = altname
| where = name = '{{#replace: {{{1}}} | ' | '' }}'
| where = name = '{{#replace: {{{1}}} | ' | '' }}'
| format = template
| format = template
Line 86: Line 86:


Result: blabla {{Condition | Bleeding | inline = true }} blabla
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 }}


</noinclude>
</noinclude>

Navigation menu