Template:Area inline: Difference between revisions

From bg3.wiki
Jump to navigation Jump to search
(Updated documentation)
mNo edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<includeonly>{{#cargo_query: tables = areas
<includeonly>{{#cargo_query: tables = areas
| fields = _pageName=page, name, icon, CONCAT('true') = inline, CONCAT('{{#replace:{{{2|}}}|'|\'}}') = altname, CONCAT('{{#if:{{{w|}}}|{{{w}}}|25}}') = w,
| fields = _pageName=page, name, icon, CONCAT('true') = inline, CONCAT('{{#replace:{{{2|}}}|'|\'}}') = altname, CONCAT('{{#if:{{{w|}}}|{{{w}}}|25}}') = w,
| where = _pageName = "{{#replace:{{{1}}}|&#39;|\'}}"
| where = name = "{{#replace:{{{1}}}|&#39;|\'}}" OR _pageName = "{{#replace:{{{1}}}|&#39;|\'}}"
| format = template
| format = template
| template = Area/Format
| template = Area/Format
Line 17: Line 17:
{{Template demo
{{Template demo
| style = table
| style = table
| <nowiki>{{Area|Acid (surface)}}</nowiki>
| <nowiki>{{Area|Acid}}</nowiki>
| <nowiki>{{Area|Fire (surface)|Fiery}}</nowiki>
| <nowiki>{{Area|Fire|Fiery}}</nowiki>
}}
}}



Latest revision as of 22:03, 24 October 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}}
Acid Acid
{{Area|Fire|Fiery}}
Fire Fiery

See also

Template data

Display compact/inline information for a surface or area.

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Area name1

The name of the surface. This should correspond with the page name for that surface.

Page namerequired
altname2

Alternative display name.

Stringoptional