Template:Area full/Format: Difference between revisions
Jump to navigation
Jump to search
HiddenDragon (talk | contribs) (Created page with "<includeonly>{{#lvardef:text|[[{{{page|{{{name}}}}}}|{{{name}}}]]}}<span class="bg3wiki-condition" {{#if:{{{inline|}}}|style="white-space: nowrap"}}> [[File:{{{icon}}}|frameless|{{#if:{{{inline|}}}|{{{w|25}}}px|30px}}|link=|{{{name}}}]] {{#if: {{{inline|}}} | {{#lvar:text}} | <strong>{{#lvar:text}}</strong> }}{{#if: {{{inline|}}} | | <div> {{{description}}} </div> <dl class="bg3wiki-property-list"> {{#if:{{{type|}}}|<dd>{{SmallIcon|Condition Type Icon.png}} Type: ...") |
HiddenDragon (talk | contribs) mNo edit summary |
||
(15 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
<includeonly>{{#lvardef:text|[[{{{page|{{{ | <includeonly>{{#lvardef:text|[[{{{page}}}|{{#if:{{{altname|}}}|{{{altname}}}|{{{name}}} }}]]}}<span | ||
[[File:{{{icon}}}|frameless|{{#if:{{{inline|}}}|{{{w|25}}}px|30px}}|link=|{{{name}}}]] {{#if: {{{inline|}}} | class="bg3wiki-condition" | ||
{{#if:{{{inline|}}}|style="white-space: nowrap"}} | |||
>[[File:{{{icon}}}|frameless|{{#if:{{{inline|}}}|{{{w|25}}}px|30px}}|link=|{{{name}}}]] {{#if: {{{inline|}}} | |||
| {{#lvar:text}} | | {{#lvar:text}} | ||
| <strong>{{#lvar:text}}</strong> | | <strong>{{#lvar:text}}</strong> | ||
}}{{#if: {{{duration|}}} | | |||
<p>{{InfoBlob | {{Duration | {{{duration}}} }} }}</p> | |||
}}{{#if: {{{range m|}}}{{{range ft|}}} | | |||
<p>{{InfoBlob | {{AOE | {{{shape}}} | m = {{{range m}}} | ft = {{{range ft}}} }} }}</p> | |||
}}{{#if: {{{inline|}}} | | | }}{{#if: {{{inline|}}} | | | ||
<div> | <div> | ||
{{{description}}} | {{{description}}} | ||
</div> | </div> | ||
{{#if: {{{type|}}}{{{dippable|}}} | | |||
<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>}} | ||
</dl> | {{#ifeq: {{lc:{{{dippable|}}}}}|yes|<dd>{{Dippable}}</dd>}} | ||
</dl>}} | |||
{{#if: {{{condition|}}} | | |||
<h3> Condition: {{{condition}}} </h3> | |||
<div class="bg3wiki-tooltip-box bg3wiki-tooltip-gradient-common"> | |||
{{Condition | {{{condition}}} | |||
| save = {{{condition save|}}} | |||
| dc = {{{condition dc|}}} | |||
| duration = {{{condition duration|}}} | |||
}} | }} | ||
{{#if: | </div> | ||
}} {{#if: {{{condition2|}}} | | |||
<h3> Condition: {{{condition2}}} </h3> | |||
<div class="bg3wiki-tooltip-box bg3wiki-tooltip-gradient-common"> | |||
{{Condition | {{{condition2}}} | |||
| save = {{{condition2 save|}}} | |||
| dc = {{{condition2 dc|}}} | |||
| duration = {{{condition2 duration|}}} | |||
}} | }} | ||
</ | </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]]. | |||
{{Area/Format | __NOTOC__ | ||
== Examples == | |||
{{Template demo | |||
| style = list | |||
| <nowiki> | |||
{{Area full/Format | |||
| page = Fire (surface) | | page = Fire (surface) | ||
| name = Fire | | name = Fire | ||
Line 29: | Line 55: | ||
| icon = Fire surface Icon.webp | | icon = Fire surface Icon.webp | ||
| type = surface | | type = surface | ||
| shape = Radius | |||
| range m = 9 | |||
| range ft = 30 | |||
| duration = 10 | |||
| dippable = yes | |||
| condition = Burning | | condition = Burning | ||
| save = CON | | save = CON | ||
}} | }} | ||
</nowiki> | |||
| <nowiki> | |||
{{Area full/Format | |||
{{Area/Format | |||
| page = Electrified Steam (cloud) | | page = Electrified Steam (cloud) | ||
| name = Electrified Steam | | name = Electrified Steam | ||
Line 44: | Line 75: | ||
| condition2 = Wet | | condition2 = Wet | ||
}} | }} | ||
</nowiki> | |||
| <nowiki> | |||
{{Area full/Format | |||
{{Area/Format | |||
| page = Drow Poison Cloud | | page = Drow Poison Cloud | ||
| name = Drow Poison Cloud | | name = Drow Poison Cloud | ||
Line 57: | Line 87: | ||
| condition save = CON | | condition save = CON | ||
| condition dc = 13 | | condition dc = 13 | ||
}} | |||
</nowiki> | |||
}} | }} | ||
Line 62: | Line 94: | ||
<templatedata> | <templatedata> | ||
{ | { | ||
"description": "Display formatted information for an area or surface.", | |||
"format": "block", | |||
"params": { | "params": { | ||
"name": { | "name": { | ||
"description": "The name of the | "description": "The name of the area.", | ||
"type": "string" | "type": "string" | ||
}, | }, | ||
"icon": { | "icon": { | ||
"description": "The icon of the | "description": "The icon of the area", | ||
"type": "wiki-file-name" | "type": "wiki-file-name" | ||
}, | }, | ||
"inline": { | "inline": { | ||
"description": "Whether the | "description": "Whether the area should be formatted inline", | ||
"type": "boolean" | "type": "boolean" | ||
}, | }, | ||
"duration": {}, | "duration": { | ||
" | "description": "How long this area lasts, in turns", | ||
" | "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 84: | Line 139: | ||
} | } | ||
} | } | ||
</templatedata> | </templatedata>}} | ||
[[Category:Templates]] | |||
</noinclude> | </noinclude> |
Latest revision as of 21:38, 14 August 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
Fire
{{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
Duration: 10 turns
AoE: 9 m / 30 ft (Radius)
Condition: Burning
- Takes 1d4Fire damage per turn.
- Can be removed with the Healing Potion or gaining . action, using a
- Immune from if .
- action can be used on Burning characters and/or objects.
Markup
Electrified Steam
{{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
- Type: Cloud
Condition: Electrocuted
Condition: Wet
Markup
Drow Poison Cloud
{{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
Chance to set Poisoned.
- Type: Cloud
Condition: Stricken with Drow Poison
DC 13 Constitution saving throw
- Affected entity is and has fallen .
- Lasts until affected entity has made a successful Constitution saving throw or takes damage.
Template data
Display formatted information for an area or surface.
Parameter | Description | Type | Status | |
---|---|---|---|---|
name | name | The name of the area. | String | optional |
icon | icon | The icon of the area | File | optional |
inline | inline | Whether the area should be formatted inline | Boolean | optional |
duration | duration | How long this area lasts, in turns | String | optional |
shape | shape | How to define the size of the area | String | optional |
range m | range m | The size of the area in meters | String | optional |
range ft | range ft | The size of the area in feet | String | optional |
type | type | cloud, surface, or area | String | optional |
description | description | The description of the area | String | optional |
altname | altname | An alternative display name for the condition link. | String | optional |