Ad placeholder

Template:Area page: Difference between revisions

Jump to navigation Jump to search
Back to using condition names
(change type icon)
(Back to using condition names)
(19 intermediate revisions by 5 users not shown)
Line 1: Line 1:
<includeonly>{{main namespace only|{{PageSeo
<includeonly>{{main namespace only|{{PageSeo
|title = {{{name|{{PAGENAME}} }}}
|title = {{{name | {{#titleparts: {{PAGENAME}} }} }}}
|image = File:{{{image}}}
|image = {{#if:{{{controller icon|}}}|{{{controller icon}}}|{{#if:{{{image|}}}|{{{image}}}|{{{icon|}}}}}}}
|description = {{{name|{{PAGENAME}} }}} is {{{summary|a type of Area}}}
|description = {{{name|{{PAGENAME}} }}} is {{{summary|a type of Area}}}
}} }}<div style="min-height: 200px" class="bg3wiki-tooltip-box bg3wiki-tooltip-gradient-common">__NOTOC__
}} }}__NOTOC__<div style="min-height: 200px" class="bg3wiki-tooltip-box bg3wiki-tooltip-gradient-common"
{{#if:{{{image|}}}|[[File:{{{image}}}|180px|frameless|right]]}}
><!--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 }} }}
'''{{{name|{{PAGENAME}}}}}''' is {{{summary|a type of [[Area]].}}}{{#if:{{{difficult terrain|}}}|&nbsp;It is considered {{Difficult terrain}}.}}
{{#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]].}}}}}
 
{{#if:{{{description|}}}|
{{#if:{{{description|}}}|
== Description ==
<h2>Description</h2>
{{{description}}}
{{{description}}}
}}
}}
== Properties ==
<h2>Properties</h2>
<dl class="bg3wiki-property-list">
<dl class="bg3wiki-property-list">
{{#if:{{{type|}}}|<dd>{{SmallIcon|Potions Icon.png}} Type: [[{{{type}}}]]</dd>}}
{{#if:{{{type|}}}|<dd>{{SmallIcon|Condition Type Icon.png}} Type: [[Area#{{ucfirst:{{{type}}}}}|{{ucfirst:{{{type}}}}}]]</dd>}}
{{#if:{{{difficult terrain|}}}|<dd>{{Difficult terrain}}</dd> }}
{{#if: {{{dippable|}}} | <dd>{{Dippable}}</dd> }}
{{#if:{{{condition1|}}}|<dd>{{#if:{{{condition1 no save|}}}|Inflicts {{cond|{{{condition1}}} }} while in area.|May inflict {{cond|{{{condition1}}} }} }}</dd> }}
{{#if:{{{condition2|}}}|<dd>{{#if:{{{condition2 no save|}}}|Inflicts {{cond|{{{condition2}}} }} while in area.|May inflict {{cond|{{{condition2}}} }} }}</dd> }}
</dl>
</dl>
</div>
</div>
{{#if: {{{condition1|}}}{{{condition2|}}} |
{{#if: {{{condition|}}} |
 
<h2> Condition: {{{condition}}} </h2>


<h2> Conditions </h2>
{{#if: {{{condition1|}}}|
<div class="bg3wiki-tooltip-box bg3wiki-tooltip-gradient-common">
<div class="bg3wiki-tooltip-box bg3wiki-tooltip-gradient-common">
{{Condition | {{{condition1}}}
{{Condition | {{{condition}}}
| save = {{{condition save|}}}
| dc = {{{condition dc|}}}
}}
}}
{{Main namespace only|{{Inflicts|{{{condition1|}}}|SAI }} }}
{{Main namespace only|{{Inflicts|{{{condition|}}}|area }} }}
</div>
</div>
}}
 
{{#if: {{{condition2|}}}|
}} {{#if: {{{condition2|}}} |
<div class="bg3wiki-tooltip-box">
 
<h2> Condition: {{{condition2}}} </h2>
 
<div class="bg3wiki-tooltip-box bg3wiki-tooltip-gradient-common">
{{Condition | {{{condition2}}}
{{Condition | {{{condition2}}}
| save = {{{condition2 save|}}}
| dc = {{{condition2 dc|}}}
}}
}}
{{Main namespace only|{{Inflicts|{{{condition2|}}}|SAI }} }}
{{Main namespace only|{{Inflicts|{{{condition2|}}}|area }} }}
</div>
</div>
}}
 
}}
}}
{{#if:{{{created by items|}}}{{{created by spells|}}}|
{{#if:{{{created by items|}}}{{{created by spells|}}}|
Line 44: Line 51:
{{#invoke: ParseList | main | {{{created by items}}} | useTemplate = MdRarityItem | type = htmlList }}
{{#invoke: ParseList | main | {{{created by items}}} | useTemplate = MdRarityItem | type = htmlList }}
}}{{#if: {{{created by spells|}}} |  
}}{{#if: {{{created by spells|}}} |  
 
{{blank}}
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|}}}|
Line 51: Line 58:
<h2>Interactions</h2>
<h2>Interactions</h2>
{{{interactions}}}
{{{interactions}}}
}}{{main namespace only|
{{#switch:{{{type|}}}
|surface = [[Category:Surfaces]
|cloud = [[Category:Clouds]]
|summoned = [[Category:Summoned areas]]
}}
[[Category:Areas]]
}}
}}
{{#if: {{{notes|}}} |
{{#if: {{{notes|}}} |
Line 63: Line 63:
<h2> Notes </h2>
<h2> Notes </h2>


<div class="bg3wiki-tooltip-box">
{{{notes}}}
{{{notes}}}
</div>
}}
</includeonly><noinclude>{{documentation|content=
Template that generates an entire page for areas. Use [[Template:Area]] for displaying on a page.


Copy-ready: <pre>
{{Area page
|name=
|image=
|summary=
|description=
|type=<!--surface,cloud,or omit-->
|difficult terrain=
|condition1=
|condition1 no save=
|condition2=
|condition2 no save=
|created by items=
|created by spells=
|interactions=
|notes=
}}
}}
</pre>
{{main namespace only|
 
{{#switch:{{{type|}}}
== Grease ==
|surface = [[Category:Surfaces]]
{{Area page
|cloud = [[Category:Clouds]]
|name=Grease
|summoned = [[Category:Summoned areas]]
|image=Surface Grease Image.png
|type=surface
|difficult terrain=true
|summary=a slippery surface that has a chance to knock a creature {{cond|Prone}}.
|condition1=Prone
|created by items = Grease Bottle
|created by spells = Grease
|interactions =
* Turns into [[Fire (surface)]] when touched by fire.
}}
}}
== Hunger of Hadar ==
[[Category:Areas]]{{#cargo_store: _table = areas
{{Area page
| name = {{{name | {{#titleparts: {{PAGENAME}} }} }}}
|name=Hunger of Hadar
| image = {{{image|}}}
|difficult terrain=true
| controller_icon = {{#lvar:controllericon}}
|summary=a dark cloud that {{cond|Blinded|Blinds}} and damages creatures within.
| icon = {{#lvar:icon}}
|description=A sphere of cold blackness, teeming with unknown horrors.
| description = {{{description|}}}
 
| type = {{{type|surface}}}
 
| dippable = {{IfEmpty | {{{dippable|}}} | no }}
Creatures starting their turn in the area take {{DamageInfo|2d6|Cold}}. Creatures ending their turn in the area possibly take {{DamageInfo|2d6|Acid}}.
| condition_name = {{{condition|}}}
 
| condition_save = {{{condition save|}}}
 
| condition_dc = {{{condition dc|}}}
The area is [[Difficult Terrain]], and creatures within are [[Blinded]].
| condition2_name = {{{condition2|}}}
|condition1=Blinded
| condition2_save = {{{condition2 save|}}}
|condition1 no save=true
| condition2_dc = {{{condition2 dc|}}}
|condition2=Hunger of Hadar
|condition2 no save=true
}}
 
==Template data==
<templatedata>
{
"params": {
"image": {
"description": "A file without the File: prefix. ",
"type": "wiki-file-name",
"suggested": true
},
"name": {
"description": "The name of the area. Defaults to the page name.",
"suggested": true
},
"summary": {
"description": "A short summary of the area. Not the in-game description.",
"type": "content",
"suggested": true
},
"difficult terrain": {
"description": "If specified, marks the area as Difficult Terrain.",
"type": "boolean"
},
"description": {
"description": "The in-game description of the area, if it exists.",
"type": "content",
"suggested": true
},
"type": {
"description": "If the area has the cloud or surface property.",
"type": "string",
"suggestedvalues": [
"cloud",
"surface"
]
},
"condition1": {
"description": "The first condition inflicted by this area",
"type": "wiki-page-name"
},
"condition1 no save": {
"description": "If specified, notes that the condition is applied while in area",
"type": "boolean"
},
"condition2": {
"description": "The second condition inflicted by this area",
"type": "wiki-page-name"
},
"condition2 no save": {
"description": "If specified, notes that the condition is applied while in area"
},
"created by items": {
"description": "List of items that create this area. Be sure to separate multiple items with a comma.",
"example": "Acid Vial, Arrow of Acid",
"type": "content"
},
"created by spells": {
"description": "List of spells that create this area. Be sure to separate multiple spells with a comma.",
"example": "Melf's Acid Arrow, Chromatic Orb: Acid",
"type": "content"
},
"interactions": {
"description": "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."
},
"notes": {
"description": "Any extra or related information about the spell. Please use * for bullet points.",
"type": "content"
}
},
"paramOrder": [
"name",
"image",
"summary",
"difficult terrain",
"description",
"type",
"condition1",
"condition1 no save",
"condition2",
"condition2 no save",
"created by items",
"created by spells",
"interactions",
"notes"
],
"description": "Generates an entire page for representing areas.",
"format": "block"
}
</templatedata>
 
}}
}}
[[Category:Page generating templates]]</noinclude>
}}</includeonly><noinclude>{{documentation}}{{#cargo_declare: _table = areas
| name = String (unique, mandatory)
| image = File
| controller_icon = File
| icon = File
| description = Wikitext
| type = String (allowed values = surface, cloud, summoned)
| dippable = Boolean
| condition_name = String
| condition_save = String
| condition_dc = String
| condition2_name = String
| condition2_save = String
| condition2_dc = String
}}</noinclude>

Navigation menu