Template:Area inline: Difference between revisions
Jump to navigation
Jump to search
HiddenDragon (talk | contribs) mNo edit summary |
HiddenDragon (talk | contribs) mNo edit summary |
||
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<includeonly>{{ | <includeonly>{{#cargo_query: tables = areas | ||
Similar to [[Template:Area]], but exclusively supports inline usage. | | 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}}}|{{{2|{{{1}}}}}}]][[Category:Pages with unknown areas]] | |||
}}</includeonly><noinclude>{{documentation|content= | |||
Similar to [[Template:Area full]], but exclusively supports inline usage. | |||
Example: <code><nowiki>{{Area|Acid (surface)}}</nowiki></code> | Example: <code><nowiki>{{Area|Acid (surface)}}</nowiki></code> | ||
Line 16: | Line 26: | ||
== See also == | == See also == | ||
* {{t link|area}} | * {{t link|area}} | ||
* {{t link|area full}} | |||
== Template data == | == Template data == |
Latest revision as of 22:02, 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 |