Template:Condition inline: Difference between revisions
Jump to navigation
Jump to search
HiddenDragon (talk | contribs) (Can now specify the width of the icon) |
HiddenDragon (talk | contribs) mNo edit summary |
||
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, CONCAT(' | | fields = _pageName=page, name, icon, CONCAT('true') = inline, CONCAT('{{#replace:{{{2|}}}|'|\'}}') = altname, CONCAT('{{{w|25}}}') = w | ||
| where = _pageName = "{{#replace:{{{1}}}|'|\'}} (Condition)" | | where = _pageName = "{{#replace:{{{1}}}|'|\'}} (Condition)" | ||
| format = template | | format = template |
Revision as of 18:36, 15 May 2024
Template documentation
Shortcut
- {{cond}}
Similar to Template:Condition, but exclusively supports inline usage.
Example: {{Cond|Radiating Orb}}
Result:
If provided, the second parameter changes the display name of the condition.
Example: {{Cond|Radiating Orb|Glowing}}
Result:
Specifying 'w' changes the width of the icon
Example: {{Cond|Radiating Orb|w=40}}
Result:
See also
- {{condition}}
- {{condition list}}
Template data
No description.
Parameter | Description | Type | Status | |
---|---|---|---|---|
condition name | 1 | no description | String | required |
altname | 2 | Alternative display name | String | optional |