Template:Condition inline: Difference between revisions

Jump to navigation Jump to search
(Simpler cargo query for inline template that only really needs name/icon)
(Can now specify the width of the icon)
Line 1: Line 1:
<includeonly>{{#cargo_query: tables = conditions
<includeonly>{{#cargo_query: tables = conditions
| fields = _pageName=page, name, icon, CONCAT('true') = inline, CONCAT('{{#replace:{{{2|}}}|'|\'}}') = altname
| fields = _pageName=page, name, icon, CONCAT('true') = inline, CONCAT('{{#replace:{{{2|}}}|'|\'}}') = altname, CONCAT('{{#replace:{{{w|25}}}|'|\'}}') = w
| where = _pageName = "{{#replace:{{{1}}}|&#39;|\'}} (Condition)"
| where = _pageName = "{{#replace:{{{1}}}|&#39;|\'}} (Condition)"
| format = template
| format = template
Line 21: Line 21:


Result: {{Cond|Radiating Orb|Glowing}}
Result: {{Cond|Radiating Orb|Glowing}}
Specifying 'w' changes the width of the icon
Example: <code><nowiki>{{Cond|Radiating Orb|w=40}}</nowiki></code>
Result: {{Cond|Radiating Orb|w=40}}


[[Category:Condition templates]]
[[Category:Condition templates]]