Template:Area inline: Difference between revisions
Jump to navigation
Jump to search
HiddenDragon (talk | contribs) (Created page with "<includeonly>{{Area|{{{1}}}|inline=t|altname={{{2|}}} |w={{{w|}}}}}</includeonly><noinclude>{{documentation|content= Similar to Template:Area, but exclusively supports inline usage. Example: <code><nowiki>{{Area|Acid (surface)}}</nowiki></code> Result: {{Area|Acid (surface)}} If provided, the second parameter changes the display name of the condition. Example: <code><nowiki>{{Area|Fire (surface)|Fiery}}</nowiki></code> Result: {{Area|Fire (surface)|Fiery}} Ca...") |
HiddenDragon (talk | contribs) mNo edit summary |
||
(5 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> | ||
Result: {{Area|Acid (surface)}} | Result: {{Area inline|Acid (surface)}} | ||
If provided, the second parameter changes the display name of the condition. | If provided, the second parameter changes the display name of the condition. | ||
Line 10: | Line 20: | ||
Example: <code><nowiki>{{Area|Fire (surface)|Fiery}}</nowiki></code> | Example: <code><nowiki>{{Area|Fire (surface)|Fiery}}</nowiki></code> | ||
Result: {{Area|Fire (surface)|Fiery}} | Result: {{Area inline|Fire (surface)|Fiery}} | ||
[[Category:Condition templates]] | [[Category:Condition templates]] | ||
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 |