Template:Area inline: Difference between revisions
Jump to navigation
Jump to search
HiddenDragon (talk | contribs) mNo edit summary |
(Updated documentation) |
||
Line 11: | Line 11: | ||
}}</includeonly><noinclude>{{documentation|content= | }}</includeonly><noinclude>{{documentation|content= | ||
Similar to [[Template:Area full]], but exclusively supports inline usage. | Similar to [[Template:Area full]], but exclusively supports inline usage. | ||
If provided, the second parameter changes the display name of the condition. | If provided, the second parameter changes the display name of the condition. | ||
== Examples == | |||
{{Template demo | |||
| style = table | |||
| <nowiki>{{Area|Acid (surface)}}</nowiki> | |||
| <nowiki>{{Area|Fire (surface)|Fiery}}</nowiki> | |||
}} | |||
== See also == | == See also == | ||
* {{t link|area full}} | * {{t link|area full}} | ||
== Template data == | == Template data == | ||
<templatedata> | <templatedata> | ||
{ | { | ||
"description": "Display compact/inline information for a surface or area.", | |||
"format": "inline", | |||
"params": { | "params": { | ||
"1": { | "1": { | ||
"label": "Area name", | "label": "Area name", | ||
"type": " | "description": "The name of the surface. This should correspond with the page name for that surface.", | ||
"type": "wiki-page-name", | |||
"required": true | "required": true | ||
}, | }, | ||
"2": { | "2": { | ||
"label": "altname", | "label": "altname", | ||
"description": "Alternative display name", | "description": "Alternative display name.", | ||
"type": "string" | "type": "string" | ||
} | } | ||
Line 46: | Line 44: | ||
"format": "inline" | "format": "inline" | ||
} | } | ||
</templatedata>}}</noinclude> | </templatedata>}} | ||
[[Category:Templates]] | |||
[[Category:Condition templates]] | |||
</noinclude> |
Revision as of 20:19, 21 July 2024
Template documentation
Similar to Template:Area full, but exclusively supports inline usage.
If provided, the second parameter changes the display name of the condition.
Examples
Markup | Renders as |
---|---|
{{Area|Acid (surface)}} | Acid |
{{Area|Fire (surface)|Fiery}} | Fiery |
See also
- {{area full}}
Template data
Display compact/inline information for a surface or area.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Area name | 1 | The name of the surface. This should correspond with the page name for that surface. | Page name | required |
altname | 2 | Alternative display name. | String | optional |