Template:Condition inline: Difference between revisions
Jump to navigation
Jump to search
HarveyPekar (talk | contribs) mNo edit summary Tag: Manual revert |
HiddenDragon (talk | contribs) (Simpler cargo query for inline template that only really needs name/icon) |
||
Line 1: | Line 1: | ||
<includeonly>{{ | <includeonly>{{#cargo_query: tables = conditions | ||
| fields = _pageName=page, name, icon, CONCAT('true') = inline, CONCAT('{{#replace:{{{2|}}}|'|\'}}') = altname | |||
| where = _pageName = "{{#replace:{{{1}}}|'|\'}} (Condition)" | |||
| format = template | |||
| template = Condition/Format | |||
| named args = yes | |||
| limit = 1 | |||
| order by = _ID | |||
| more results text= | |||
| default = [[{{{1}}} (Condition)|{{{2|{{{1}}}}}}]]{{Main namespace only|[[Category:Pages with unknown conditions]]}} | |||
}}</includeonly><noinclude>{{documentation|content={{shortcut|cond}} | |||
Similar to [[Template:Condition]], but exclusively supports inline usage. | Similar to [[Template:Condition]], but exclusively supports inline usage. | ||
Revision as of 20:58, 13 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:
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 |