Template:Area page: Difference between revisions
HiddenDragon (talk | contribs) mNo edit summary |
HiddenDragon (talk | contribs) m (Eliminate extra spacing) |
||
(6 intermediate revisions by 2 users not shown) | |||
Line 6: | Line 6: | ||
><!--Extract name and icon from the page title-->{{#lvardef: name | {{{name | {{#explode: {{#titleparts: {{PAGENAME}} }} | ( | 0 }} }}} }}{{#lvardef: icon | {{#if: {{{icon|}}} | {{{icon}}} | {{#explode: {{#titleparts: {{PAGENAME}} }} | ( | 0 }} Icon.webp }} }}{{#lvardef: controllericon | {{#if: {{{controller icon|}}} | {{{controller icon}}} | {{#explode: {{#titleparts: {{PAGENAME}} }} | ( | 0 }} Controller Icon.webp }} }} | ><!--Extract name and icon from the page title-->{{#lvardef: name | {{{name | {{#explode: {{#titleparts: {{PAGENAME}} }} | ( | 0 }} }}} }}{{#lvardef: icon | {{#if: {{{icon|}}} | {{{icon}}} | {{#explode: {{#titleparts: {{PAGENAME}} }} | ( | 0 }} Icon.webp }} }}{{#lvardef: controllericon | {{#if: {{{controller icon|}}} | {{{controller icon}}} | {{#explode: {{#titleparts: {{PAGENAME}} }} | ( | 0 }} Controller Icon.webp }} }} | ||
{{#if: {{{image|}}} | [[File:{{{image}}}|frameless|right|alt={{PAGENAME}} image]] | {{#if:{{{controller icon|}}} | [[File:{{{controller icon}}}|frameless|right|alt={{PAGENAME}} controller icon]] | {{#if:{{{icon|}}} | [[File:{{{icon}}}|frameless|right|alt={{PAGENAME}} icon]] | }} }} }} | {{#if: {{{image|}}} | [[File:{{{image}}}|frameless|right|alt={{PAGENAME}} image]] | {{#if:{{{controller icon|}}} | [[File:{{{controller icon}}}|frameless|right|alt={{PAGENAME}} controller icon]] | {{#if:{{{icon|}}} | [[File:{{{icon}}}|frameless|right|alt={{PAGENAME}} icon]] | }} }} }} | ||
'''{{{name | {{#titleparts: {{PAGENAME}} }} }}}''' is {{{summary|{{#switch:{{lc:{{{type|}}}}}|surface=a [[surface]]|cloud=a [[cloud]].|summoned=a [[summonable area]]|an [[area]].}}}}} | '''{{{name | {{#titleparts: {{PAGENAME}} }} }}}''' is {{{summary|{{#switch:{{lc:{{{type|}}}}}|surface=a [[surface]]|cloud=a [[cloud]].|summoned=a [[summonable area]]|an [[area]].}}}}} | ||
Line 16: | Line 15: | ||
<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:{{{ | {{#if: {{{dippable|}}} | <dd>{{Dippable}}</dd> }} | ||
</dl> | </dl> | ||
</div> | </div> | ||
Line 27: | Line 26: | ||
| save = {{{condition save|}}} | | save = {{{condition save|}}} | ||
| dc = {{{condition dc|}}} | | dc = {{{condition dc|}}} | ||
| duration = {{{condition duration|}}} | |||
}} | }} | ||
{{Main namespace only|{{Inflicts|{{{condition|}}}|area }} }} | {{Main namespace only|{{Inflicts|{{{condition|}}}|area|type=area|save={{{condition save|}}}|dc={{{condition dc|}}}|duration={{{condition duration|}}}}} }} | ||
</div> | </div> | ||
}} {{#if: {{{condition2|}}} | | }} {{#if: {{{condition2|}}} | | ||
Line 39: | Line 38: | ||
| save = {{{condition2 save|}}} | | save = {{{condition2 save|}}} | ||
| dc = {{{condition2 dc|}}} | | dc = {{{condition2 dc|}}} | ||
| duration = {{{condition2 duration|}}} | |||
}} | }} | ||
{{Main namespace only|{{Inflicts|{{{condition2|}}}|area }} }} | {{Main namespace only|{{Inflicts|{{{condition2|}}}|area|type=area|save={{{condition save|}}}|dc={{{condition dc|}}}|duration={{{condition2 duration|}}}}} }} | ||
</div> | </div> | ||
}} {{#if:{{{created by items|}}}{{{created by spells|}}}| | |||
}} | |||
{{#if:{{{created by items|}}}{{{created by spells|}}}| | |||
<h2>Creation</h2> | <h2>Creation</h2> | ||
Line 55: | Line 53: | ||
Spells and actions: | Spells and actions: | ||
{{#invoke: ParseList | main | {{{created by spells}}} | useTemplate = MdSAI | type = htmlList }} | {{#invoke: ParseList | main | {{{created by spells}}} | useTemplate = MdSAI | type = htmlList }} | ||
}}}}{{#if:{{{interactions|}}}| | }}}} {{#if:{{{interactions|}}}| | ||
{{blank}} | {{blank}} | ||
<h2>Interactions</h2> | <h2>Interactions</h2> | ||
{{{interactions}}} | {{{interactions}}} | ||
}} | }} {{#if: {{{notes|}}} | | ||
{{#if: {{{notes|}}} | | |||
<h2> Notes </h2> | <h2> Notes </h2> | ||
Line 66: | Line 63: | ||
{{{notes}}} | {{{notes}}} | ||
}} | }} {{main namespace only| | ||
{{main namespace only| | |||
{{#switch:{{{type|}}} | {{#switch:{{{type|}}} | ||
|surface = [[Category:Surfaces]] | |surface = [[Category:Surfaces]] | ||
Line 80: | Line 76: | ||
| description = {{{description|}}} | | description = {{{description|}}} | ||
| type = {{{type|surface}}} | | type = {{{type|surface}}} | ||
| | | dippable = {{IfEmpty | {{{dippable|}}} | no }} | ||
| | | condition_name = {{{condition|}}} | ||
| condition_save = {{{condition save|}}} | | condition_save = {{{condition save|}}} | ||
| condition_dc = {{{condition dc|}}} | | condition_dc = {{{condition dc|}}} | ||
| | | condition2_name = {{{condition2|}}} | ||
| condition2_save = {{{condition2 save|}}} | | condition2_save = {{{condition2 save|}}} | ||
| condition2_dc = {{{condition2 dc|}}} | | condition2_dc = {{{condition2 dc|}}} | ||
Line 95: | Line 91: | ||
| description = Wikitext | | description = Wikitext | ||
| type = String (allowed values = surface, cloud, summoned) | | type = String (allowed values = surface, cloud, summoned) | ||
| | | dippable = Boolean | ||
| | | condition_name = String | ||
| condition_save = String | | condition_save = String | ||
| condition_dc = String | | condition_dc = String | ||
| | | condition2_name = String | ||
| condition2_save = String | | condition2_save = String | ||
| condition2_dc = String | | condition2_dc = String | ||
}}</noinclude> | }}</noinclude> |
Latest revision as of 23:56, 14 August 2024
Template that generates an entire page for areas. Use Template:Area for displaying on a page.
Copy-ready:{{Area page | name = | image = | controller icon = | icon = | summary = | description = | type = <!--surface,cloud,or omit--> | dippable = | movement multiplier = | condition = | condition save = | condition dc = | condition2 = | condition2 save = | condition2 dc = | created by items = | created by spells = | interactions = | notes = }}
Grease
Grease is a slippery surface that has a chance to knock a creature .
Properties
Creation
This area can be created by the following:
Items:
Spells and actions:
Interactions
- Turns into Fire (surface) when touched by fire.
Hunger of Hadar
Hunger of Hadar is an area created by . It creates an area of magical darkness that impedes movement and deals damage at the beginning and end of each turn.
Description
A sphere of cold blackness, teeming with unknown horrors.
Creatures starting their turn in the area take 2d6Cold damage. Creatures ending their turn in the area possibly take 2d6Acid damage.
The area is Difficult Terrain and creatures within are .
Properties
- Type: Summoned
Creation
This area can be created by the following:
Spells and actions:
Template data
Generates an entire page for representing areas.
Parameter | Description | Type | Status | |
---|---|---|---|---|
name | name | The name of the area. Defaults to the page name. | Unknown | suggested |
image | image | A 380x380 image without the File: prefix. | File | suggested |
controller icon | controller icon | A 144x144 image without the File: prefix. | File | suggested |
icon | icon | A 64x64 icon without the File: prefix. | File | suggested |
summary | summary | A short summary of the area. Not the in-game description. | Content | suggested |
description | description | The in-game description of the area, if it exists. | Content | suggested |
type | type | If the area has the cloud or surface property.
| String | suggested |
dippable | dippable | Whether or not this area (usually a surface) is dippable
| Boolean | suggested |
condition | condition | The full name of the condition (if any) that this area applies to its target/s. Leave blank if there is no condition.
| String | optional |
condition save | condition save | The save that the action's target must roll to avoid or reduce its effects. Can use short or long name, e.g: "STR" or "Strength"
| String | optional |
condition dc | condition dc | The optional fixed DC of the condition that targets have to pass to apply it
| Number | optional |
condition2 | condition2 | The full name of the condition (if any) that is applied if there is a second condition.
| String | optional |
condition2 save | condition2 save | The save that the action's target must roll to avoid or reduce the effects of the second condition. Can use short or long name, e.g: "STR" or "Strength"
| String | optional |
condition2 dc | condition2 dc | The optional fixed DC of the second condition that targets have to pass to apply it
| Number | optional |
created by items | created by items | List of items that create this area. Be sure to separate multiple items with a comma.
| Content | optional |
created by spells | created by spells | List of spells that create this area. Be sure to separate multiple spells with a comma.
| Content | optional |
interactions | interactions | A description of interactions that the area has that can turn it into something else. Note that this does NOT include being erased by other areas of the same surface/cloud type. | Unknown | optional |
notes | notes | Any extra or related information about the spell. Please use * for bullet points. | Content | optional |