Template:Area inline: Difference between revisions
Jump to navigation
Jump to search
HiddenDragon (talk | contribs) mNo edit summary |
HiddenDragon (talk | contribs) (Reduced cargo query for inline template) |
||
Line 1: | Line 1: | ||
<includeonly>{{ | <includeonly>{{#cargo_query: tables = areas | ||
| fields = _pageName=page, name, icon, CONCAT('true') = inline, CONCAT('{{#replace:{{{2|}}}|'|\'}}') = altname, CONCAT('{{#if:{{{w|}}}|{{{w}}}|25}}') = w, | |||
| where = _pageName = "{{#replace:{{{1}}}|'|\'}}" | |||
| format = template | |||
| template = Area/Format | |||
| named args = yes | |||
| limit = 1 | |||
| order by = _ID | |||
| more results text= | |||
| default = [[{{{1}}}]][[Category:Pages with unknown areas]] | |||
}}</includeonly><noinclude>{{documentation|content= | |||
Similar to [[Template:Area full]], but exclusively supports inline usage. | Similar to [[Template:Area full]], but exclusively supports inline usage. | ||
Revision as of 21:01, 13 May 2024
Template documentation
Similar to Template:Area full, but exclusively supports inline usage.
Example: {{Area|Acid (surface)}}
Result: Acid
If provided, the second parameter changes the display name of the condition.
Example: {{Area|Fire (surface)|Fiery}}
Result: Fiery
See also
Template data
No description.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Area name | 1 | no description | String | required |
altname | 2 | Alternative display name | String | optional |