Template:Area full: Difference between revisions

From Baldur's Gate 3 Wiki
Jump to navigation Jump to search
mNo edit summary
No edit summary
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<includeonly><onlyinclude>{{#cargo_query: tables = areas
<includeonly><onlyinclude>{{#cargo_query: tables = areas
| fields = _pageName=page, name, icon, description, type, dippable, condition_name = condition, condition2_name = condition2, CONCAT('{{{inline|}}}') = inline, CONCAT('{{#replace:{{{dc|}}}|'|"}}') = dc, CONCAT('{{#if:{{{w|}}}|{{{w}}}|25}}') = w,
| fields = _pageName=page, name, icon, description, type, dippable, condition_name = condition, condition2_name = condition2, CONCAT('{{{inline|}}}') = inline, CONCAT('{{{duration|}}}') = duration, CONCAT('{{{radius m|}}}') = radius m, CONCAT('{{{radius ft|}}}') = radius ft, CONCAT('{{#if:{{{w|}}}|{{{w}}}|25}}') = w,
| where = _pageName = "{{#replace:{{{1}}}|&#39;|\'}}"
| where = _pageName = "{{#replace:{{{1}}}|&#39;|\'}}"
| format = template
| format = template
Line 14: Line 14:
This template just runs the Cargo query.  For the formatting, see: [[Template:Area/Format]]
This template just runs the Cargo query.  For the formatting, see: [[Template:Area/Format]]


=== Base usage ===
Usage:
<pre>{{Area|Hellfire}}</pre>
<pre>{{Area|Hellfire}}</pre>
Result:
----
{{Area|Hellfire}}
{{Area|Hellfire}}
----
=== With duration/radius ===
Usage:
<pre>{{Area|Pacifying Spores (cloud)|duration=10|radius m=9|radius ft=30}}</pre>


<pre>{{Area|Pacifying Spores (cloud)}}</pre>
Result:
{{Area|Pacifying Spores (cloud)}}
----
{{Area|Pacifying Spores (cloud)|duration=10|radius m=9|radius ft=30}}
----


== Inline ==
=== Inline ===
 
Usage:
<pre>{{Area|Plant Growth (surface)|inline=true}}</pre>
<pre>{{Area|Plant Growth (surface)|inline=true}}</pre>
Result:
----
{{Area|Plant Growth (surface)|inline=true}}
{{Area|Plant Growth (surface)|inline=true}}
----
}}
}}
</noinclude>
</noinclude>

Revision as of 07:51, 4 May 2024

Template documentation

Use this to display an area. Examples follow.

This template just runs the Cargo query. For the formatting, see: Template:Area/Format

Base usage

Usage:

{{Area|Hellfire}}

Result:


Hellfire Hellfire


With duration/radius

Usage:

{{Area|Pacifying Spores (cloud)|duration=10|radius m=9|radius ft=30}}

Result:


Pacifying Spores Pacifying Spores


Inline

Usage:

{{Area|Plant Growth (surface)|inline=true}}

Result:


Plant Growth Plant Growth