Template:Area full/Format: Difference between revisions

From bg3.wiki
Jump to navigation Jump to search
m (Add condition boxes)
(Add support for spell save dc override)
 
(12 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly>{{#lvardef:text|[[{{{page|{{{name}}}}}}|{{{name}}}]]}}<span
<includeonly>{{#lvardef:text|[[{{{page}}}|{{#if:{{{altname|}}}|{{{altname}}}|{{{name}}} }}]]}}<span
class="bg3wiki-condition"
class="bg3wiki-condition"
{{#if:{{{inline|}}}|style="white-space: nowrap"}}
{{#if:{{{inline|}}}|style="white-space: nowrap"}}
Line 7: Line 7:
}}{{#if: {{{duration|}}} |
}}{{#if: {{{duration|}}} |
<p>{{InfoBlob | {{Duration | {{{duration}}} }} }}</p>
<p>{{InfoBlob | {{Duration | {{{duration}}} }} }}</p>
}}{{#if: {{{radius m|}}}{{{radius ft|}}} |
}}{{#if: {{{range m|}}}{{{range ft|}}} |
<p>{{InfoBlob | {{AOE | Radius | m = {{{radius m}}} | ft = {{{radius ft}}} }} }}</p>
<p>{{InfoBlob | {{AOE | {{{shape}}} | m = {{{range m}}} | ft = {{{range ft}}} }} }}</p>
}}{{#if: {{{inline|}}} | |
}}{{#if: {{{inline|}}} | |
<div>
<div>
Line 16: Line 16:
<dl class="bg3wiki-property-list">
<dl class="bg3wiki-property-list">
{{#if:{{{type|}}}|<dd>{{SmallIcon|Condition Type Icon.png}} Type: [[Area#{{ucfirst:{{{type}}}}}|{{ucfirst:{{{type}}}}}]]</dd>}}
{{#if:{{{type|}}}|<dd>{{SmallIcon|Condition Type Icon.png}} Type: [[Area#{{ucfirst:{{{type}}}}}|{{ucfirst:{{{type}}}}}]]</dd>}}
{{#if:{{{dippable|}}}|<dd>{{Dippable}}</dd>}}
{{#ifeq: {{lc:{{{dippable|}}}}}|yes|<dd>{{Dippable}}</dd>}}
</dl>}}
</dl>}}
{{#if: {{{condition|}}} |
{{#if: {{{condition|}}} |


<h2> Condition: {{{condition}}} </h2>
<h3> Condition: {{{condition}}} </h3>


<div class="bg3wiki-tooltip-box bg3wiki-tooltip-gradient-common">
<div class="bg3wiki-tooltip-box bg3wiki-tooltip-gradient-common">
{{Condition | {{{condition}}}
{{Condition | {{{condition}}}
| save = {{{condition save|}}}
| save = {{{condition save|}}}
| dc = {{{condition dc|}}}
| dc = {{#if: {{{spell save dc override|}}} | caster | {{{condition dc|}}} }}
| duration = {{{condition duration|}}}
| duration = {{{condition duration|}}}
}}
}}
{{Main namespace only|{{Inflicts|{{{condition|}}}|sai }} }}
</div>
</div>


}} {{#if: {{{condition 2|}}} |
<h2> Condition: {{{condition 2}}} </h2>
<div class="bg3wiki-tooltip-box bg3wiki-tooltip-gradient-common">
{{Condition | {{{condition 2}}}
| save = {{{condition 2 save|}}}
| dc = {{{condition 2 dc|}}}
| duration = {{{condition 2 duration|}}}
}}
{{Main namespace only|{{Inflicts|{{{condition2|}}}|sai }} }}
</div>
[[Category:Spells with renamed condition 2 property]]
}} {{#if: {{{condition2|}}} |
}} {{#if: {{{condition2|}}} |


<h2> Condition: {{{condition2}}} </h2>
<h3> Condition: {{{condition2}}} </h3>


<div class="bg3wiki-tooltip-box bg3wiki-tooltip-gradient-common">
<div class="bg3wiki-tooltip-box bg3wiki-tooltip-gradient-common">
{{Condition | {{{condition2}}}
{{Condition | {{{condition2}}}
| save = {{{condition2 save|}}}
| save = {{{condition2 save|}}}
| dc = {{{condition2 dc|}}}
| dc = {{#if: {{{spell save dc override|}}} | caster | {{{condition2 dc|}}} }}
| duration = {{{condition2 duration|}}}
| duration = {{{condition2 duration|}}}
}}
}}
{{Main namespace only|{{Inflicts|{{{condition2|}}}|sai }} }}
</div>
</div>


}}
}} }}</span></includeonly><noinclude>{{documentation|content=
 
Display formatted information for [[Area]]s. This template is meant to be used with a Cargo query called by [[Template:Area full]].
}}</span></includeonly><noinclude>
__NOTOC__
Meant to be used with a Cargo query. Preview:
== Examples ==
 
{{Template demo
== Example ==
| style = list
 
| <nowiki>
{{Area/Format
{{Area full/Format
| page = Fire (surface)
| page = Fire (surface)
| name = Fire
| name = Fire
Line 71: Line 55:
| icon = Fire surface Icon.webp
| icon = Fire surface Icon.webp
| type = surface
| type = surface
| radius m = 9
| shape = Radius
| radius ft = 30
| range m = 9
| range ft = 30
| duration = 10
| duration = 10
| dippable = yes
| dippable = yes
Line 78: Line 63:
| save = CON
| save = CON
}}
}}
</nowiki>


== Multiple Conditions ==
| <nowiki>
 
{{Area full/Format
{{Area/Format
| page = Electrified Steam (cloud)
| page = Electrified Steam (cloud)
| name = Electrified Steam
| name = Electrified Steam
Line 90: Line 75:
| condition2 = Wet
| condition2 = Wet
}}
}}
</nowiki>


== With Condition Save ==
| <nowiki>
 
{{Area full/Format
 
{{Area/Format
| page = Drow Poison Cloud
| page = Drow Poison Cloud
| name = Drow Poison Cloud
| name = Drow Poison Cloud
Line 103: Line 87:
| condition save = CON
| condition save = CON
| condition dc = 13
| condition dc = 13
}}
</nowiki>
}}
}}


Line 108: Line 94:
<templatedata>
<templatedata>
{
{
    "description": "Display formatted information for an area or surface.",
    "format": "block",
"params": {
"params": {
"name": {
"name": {
"description": "The name of the condition.",
"description": "The name of the area.",
"type": "string"
"type": "string"
},
},
"icon": {
"icon": {
"description": "The icon of the condition",
"description": "The icon of the area",
"type": "wiki-file-name"
"type": "wiki-file-name"
},
},
"inline": {
"inline": {
"description": "Whether the condition should be formatted inline",
"description": "Whether the area should be formatted inline",
"type": "boolean"
"type": "boolean"
},
},
"duration": {},
"duration": {
"save": {},
"description": "How long this area lasts, in turns",
"effects": {},
"type": "string"
},
        "shape": {
"description": "How to define the size of the area",
"type": "string"
},
        "range m": {
"description": "The size of the area in meters",
"type": "string"
},
        "range ft": {
"description": "The size of the area in feet",
"type": "string"
},
"type": {
"description": "cloud, surface, or area",
"type": "string"
},
"description": {
"description": "The description of the area",
"type": "string"
},
"altname": {
"altname": {
"description": "An alternative display name for the condition link.",
"description": "An alternative display name for the condition link.",
Line 130: Line 139:
}
}
}
}
</templatedata>
</templatedata>}}
[[Category:Templates]]
</noinclude>
</noinclude>

Latest revision as of 17:11, 22 November 2024

Template documentation

Display formatted information for Areas. This template is meant to be used with a Cargo query called by Template:Area full.

Examples

Markup
{{Area full/Format
| page = Fire (surface)
| name = Fire
| description = Deals {{DamageText|1d4|Fire}} damage per turn.
| icon = Fire surface Icon.webp
| type = surface
| shape = Radius
| range m = 9
| range ft = 30
| duration = 10
| dippable = yes
| condition = Burning
| save = CON
}}
Renders as
Fire Fire

Duration: 10 turns

AoE: 9 m / 30 ft (Radius)

Deals 1d4Damage TypesFire damage per turn.

Type: Surface
Dippable Dippable

Condition: Burning

Burning Burning
  • Takes 1d4Damage TypesFire damage per turn.
  • Can be removed with the Help Help action, using a Healing Potion or gaining Wet Wet.
  • Immune from if Wet Wet.
  • Dip Dip action can be used on Burning characters and/or objects.
Markup
{{Area full/Format
| page = Electrified Steam (cloud)
| name = Electrified Steam
| icon = Electrified Steam cloud Icon.webp
| description = Deals {{DamageText|1d4|Lightning}} damage per turn.
| type = cloud
| condition = Electrocuted
| condition2 = Wet
}}
Renders as
Electrified Steam Electrified Steam

Deals 1d4Damage TypesLightning damage per turn.

Type: Cloud

Condition: Electrocuted

Electrocuted Electrocuted
  • Takes 1d4Damage TypesLightning damage at the start of each turn.

Condition: Wet

Wet Wet
Markup
{{Area full/Format
| page = Drow Poison Cloud
| name = Drow Poison Cloud
| icon = Poison Cloud cloud Icon.webp
| description = Chance to set Poisoned.
| type = cloud
| condition = Stricken with Drow Poison
| condition save = CON
| condition dc = 13
}}
Renders as
Drow Poison Cloud Drow Poison Cloud

Chance to set Poisoned.

Type: Cloud

Condition: Stricken with Drow Poison

Stricken with Drow Poison Stricken with Drow Poison

DC 13  Constitution saving throw

Template data

Display formatted information for an area or surface.

Template parameters

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
namename

The name of the area.

Stringoptional
iconicon

The icon of the area

Fileoptional
inlineinline

Whether the area should be formatted inline

Booleanoptional
durationduration

How long this area lasts, in turns

Stringoptional
shapeshape

How to define the size of the area

Stringoptional
range mrange m

The size of the area in meters

Stringoptional
range ftrange ft

The size of the area in feet

Stringoptional
typetype

cloud, surface, or area

Stringoptional
descriptiondescription

The description of the area

Stringoptional
altnamealtname

An alternative display name for the condition link.

Stringoptional