Difference between revisions of "Template:Place"
From sureai
m (Remove extra {) |
(Remove "clearable", make Dungeon & Marked booleans) |
||
Line 1: | Line 1: | ||
<includeonly>{{#if: {{{image|}}}|[[File:{{{image}}}|300x300px|border|left|{{{name|{{PAGENAME}}}}}]]|}} | <includeonly>{{#if: {{{image|}}}|[[File:{{{image}}}|300x300px|border|left|{{{name|{{PAGENAME}}}}}]]|}} | ||
<!-- Main Container --> | <!-- Main Container --> | ||
− | <div style = "float: right; clear: right; width: 25%; margin: 5px 5px 10px 20px; display: flex; flex-flow: column nowrap; align-items: stretch;"> | + | <div style = "float: right; clear: right; width: 25%; min-width: 300px; margin: 5px 5px 10px 20px; display: flex; flex-flow: column nowrap; align-items: stretch;"> |
<!-- Main Title --> | <!-- Main Title --> | ||
<div style = "background: RGB(147, 56, 56); border-radius: 5px; | <div style = "background: RGB(147, 56, 56); border-radius: 5px; | ||
Line 9: | Line 9: | ||
</div> | </div> | ||
<!-- End Main Title --> | <!-- End Main Title --> | ||
− | |||
<!-- Zones & Marked --> | <!-- Zones & Marked --> | ||
<div style = "display: flex; flex-flow: row nowrap; align-items: center; margin: .1em 0; "> | <div style = "display: flex; flex-flow: row nowrap; align-items: center; margin: .1em 0; "> | ||
<div style = "order: 0; flex: 1; font-weight: bold; text-align: right; margin-right: 1em; cursor: help;" | <div style = "order: 0; flex: 1; font-weight: bold; text-align: right; margin-right: 1em; cursor: help;" | ||
title="Does this place appear on the world map?">Marked</div> | title="Does this place appear on the world map?">Marked</div> | ||
− | <div style = "order: 1; flex: 1; text-align: left;">{{{marked| | + | <div style = "order: 1; flex: 1; text-align: left;">{{#if: {{{marked|}}}|Yes|No}}</div> |
<div style = "order: 2; flex: 1; font-weight: bold; text-align: right; margin-right: 1em; ">Zones</div> | <div style = "order: 2; flex: 1; font-weight: bold; text-align: right; margin-right: 1em; ">Zones</div> | ||
<div style = "order: 3; flex: 1; text-align: left;">{{{zones|1}}}</div> | <div style = "order: 3; flex: 1; text-align: left;">{{{zones|1}}}</div> | ||
</div> | </div> | ||
<!-- End Zones & Marked --> | <!-- End Zones & Marked --> | ||
− | + | <!-- Dungeon & Region --> | |
− | <!-- Dungeon & | + | |
<div style = "display: flex; flex-flow: row nowrap; align-items: center; margin: .1em 0; "> | <div style = "display: flex; flex-flow: row nowrap; align-items: center; margin: .1em 0; "> | ||
<div style = "order: 0; flex: 1; font-weight: bold; text-align: right; margin-right: 1em; ">Dungeon</div> | <div style = "order: 0; flex: 1; font-weight: bold; text-align: right; margin-right: 1em; ">Dungeon</div> | ||
− | <div style = "order: 1; flex: 1; text-align: left;">{{{dungeon| | + | <div style = "order: 1; flex: 1; text-align: left;">{{#if: {{{dungeon|}}}|Yes|No}}</div> |
− | <div style = "order: 2; flex: 1; font-weight: bold; text-align: right; margin-right: 1em; "> | + | <div style = "order: 2; flex: 1; font-weight: bold; text-align: right; margin-right: 1em; ">Region</div> |
− | <div style = "order: 3; flex: 1; text-align: left;">{{{ | + | <div style = "order: 3; flex: 1; text-align: left;">{{{region|''(Unknown)''}}}</div> |
</div> | </div> | ||
− | <!-- End Dungeon & | + | <!-- End Dungeon & Region --> |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
{{#if: {{{occupants|}}}| | {{#if: {{{occupants|}}}| | ||
<!-- Occupants Title --> | <!-- Occupants Title --> | ||
Line 44: | Line 34: | ||
</div> | </div> | ||
<!-- End Occupants Title --> | <!-- End Occupants Title --> | ||
− | |||
<!-- Occupants Content --> | <!-- Occupants Content --> | ||
<div style = "text-align: center; "> | <div style = "text-align: center; "> | ||
Line 50: | Line 39: | ||
</div> | </div> | ||
<!-- End Occupants Content --> | <!-- End Occupants Content --> | ||
− | |}} | + | |}}{{#if: {{{location|}}}| |
− | {{#if: {{{location|}}}| | + | |
<!-- Location Title --> | <!-- Location Title --> | ||
<div style = "background: RGB(73, 73, 59); border-radius: 5px; | <div style = "background: RGB(73, 73, 59); border-radius: 5px; | ||
Line 59: | Line 47: | ||
</div> | </div> | ||
<!-- End Location Title --> | <!-- End Location Title --> | ||
− | |||
<!-- Location Content --> | <!-- Location Content --> | ||
<div style = "text-align: center; "> | <div style = "text-align: center; "> | ||
Line 65: | Line 52: | ||
</div> | </div> | ||
<!-- End Location Content --> | <!-- End Location Content --> | ||
− | |}} | + | |}}{{#if: {{{cells|}}}| |
− | {{#if: {{{cells|}}}| | + | |
<!-- Cells Title --> | <!-- Cells Title --> | ||
<div style = "background: RGB(73, 73, 59); border-radius: 5px; | <div style = "background: RGB(73, 73, 59); border-radius: 5px; | ||
Line 74: | Line 60: | ||
</div> | </div> | ||
<!-- End Cells Title --> | <!-- End Cells Title --> | ||
− | |||
<!-- Cells Content --> | <!-- Cells Content --> | ||
<div style = "text-align: center; font-family: monospace; "> | <div style = "text-align: center; font-family: monospace; "> | ||
Line 81: | Line 66: | ||
<!-- End Cells Content --> | <!-- End Cells Content --> | ||
|}} | |}} | ||
− | |||
</div> | </div> | ||
<!-- End Main Container --> | <!-- End Main Container --> | ||
+ | {{#if: {{{nocategory|}}}||[[Category:Places]]{{#if: {{{dungeon|}}}|[[Category:Places-Dungeons]]|}}{{#if: {{NAMESPACE}}|[[Category:{{NAMESPACE}}-Places]]{{#if: {{{dungeon|}}}|[[Category:{{NAMESPACE}}-Places-Dungeons]]|}}|}}}} | ||
</includeonly><noinclude> | </includeonly><noinclude> | ||
== Parameters == | == Parameters == | ||
Line 90: | Line 75: | ||
* '''icon:''' The map marker icon of this place. See [[:Category:Enderal-Map Markers]] for a list of available markers. Hidden if empty. | * '''icon:''' The map marker icon of this place. See [[:Category:Enderal-Map Markers]] for a list of available markers. Hidden if empty. | ||
* '''image:''' An image representing the place, without the initial <code>File:</code>. Hidden if empty. | * '''image:''' An image representing the place, without the initial <code>File:</code>. Hidden if empty. | ||
− | * '''marked:''' | + | * '''marked:''' If non-empty, indicates that this place is marked on the map. |
* '''zones:''' How many zones this area has. Defaults to ''1''. | * '''zones:''' How many zones this area has. Defaults to ''1''. | ||
− | * '''dungeon:''' | + | * '''dungeon:''' If non-empty, indicates that this place is a dungeon. |
− | + | ||
* '''region:''' This place's Region. Defaults to ''(Unknown)''. | * '''region:''' This place's Region. Defaults to ''(Unknown)''. | ||
** '''location:''' More details on this place's location, such as reference points. Hidden if empty. | ** '''location:''' More details on this place's location, such as reference points. Hidden if empty. | ||
* '''occupants:''' NPCs and/or Creatures that can be found in this location. Hidden if empty. | * '''occupants:''' NPCs and/or Creatures that can be found in this location. Hidden if empty. | ||
* '''cells:''' The Creation Kit/Console names of the cells of this place. Hidden if empty. | * '''cells:''' The Creation Kit/Console names of the cells of this place. Hidden if empty. | ||
+ | * ''nocategory:'' If present, doesn't add the page to any categories. Don't use this unless you're just giving an example of how to use the template (such as below) | ||
== Examples == | == Examples == | ||
Line 105: | Line 90: | ||
|icon = Cave | |icon = Cave | ||
|image = EN-Places-Brownrock_Cave3.jpg | |image = EN-Places-Brownrock_Cave3.jpg | ||
− | |marked = | + | |marked = You bet |
|zones = 3 | |zones = 3 | ||
− | |dungeon = | + | |dungeon = Of course! |
− | + | ||
|region = [[Enderal:The Heartlands|]] | |region = [[Enderal:The Heartlands|]] | ||
|location = | |location = | ||
To the south of [[Enderal:Ark|]] <br /> | To the south of [[Enderal:Ark|]] <br /> | ||
To the east of [[Enderal:Wildmage Camp|]] | To the east of [[Enderal:Wildmage Camp|]] | ||
− | |occupants = [[Enderal:Entropy Mage|]], [[Enderal:Moss Crawler|]], [[Enderal:Mud Elemental]] | + | |occupants = [[Enderal:Entropy Mage|]], [[Enderal:Moss Crawler|]], [[Enderal:Mud Elemental|]] |
|cells = DarkCaveEntrance, DarkCaveSection01, DarkCaveSection02, DarkCaveBossSection | |cells = DarkCaveEntrance, DarkCaveSection01, DarkCaveSection02, DarkCaveBossSection | ||
}} | }} | ||
</pre> | </pre> | ||
− | |||
{{Place | {{Place | ||
|name = Dark Cave | |name = Dark Cave | ||
|icon = Cave | |icon = Cave | ||
|image = EN-Places-Brownrock_Cave3.jpg | |image = EN-Places-Brownrock_Cave3.jpg | ||
− | |marked = | + | |marked = You bet |
|zones = 3 | |zones = 3 | ||
− | |dungeon = | + | |dungeon = Of course! |
− | + | ||
|region = [[Enderal:The Heartlands|The Heartlands]] | |region = [[Enderal:The Heartlands|The Heartlands]] | ||
|location = | |location = | ||
To the south of [[Enderal:Ark|Ark]] <br /> | To the south of [[Enderal:Ark|Ark]] <br /> | ||
To the east of [[Enderal:Wildmage Camp|Wildmage Camp]] | To the east of [[Enderal:Wildmage Camp|Wildmage Camp]] | ||
− | |occupants = [[Enderal:Entropy Mage|Entropy Mage]], [[Enderal:Moss Crawler|Moss Crawler]], [[Enderal:Mud Elemental]] | + | |occupants = [[Enderal:Entropy Mage|Entropy Mage]], [[Enderal:Moss Crawler|Moss Crawler]], [[Enderal:Mud Elemental|Mud Elemental]] |
|cells = DarkCaveEntrance, DarkCaveSection01, DarkCaveSection02, DarkCaveBossSection | |cells = DarkCaveEntrance, DarkCaveSection01, DarkCaveSection02, DarkCaveBossSection | ||
}} | }} | ||
+ | |||
+ | <pre style = "clear: both; "> | ||
+ | {{Place | ||
+ | |name = Boring Cave | ||
+ | |region = [[Enderal:The Heartlands|]] | ||
+ | |cells = BoringCave001 | ||
+ | }} | ||
+ | </pre> | ||
+ | {{Place | ||
+ | |name = Boring Cave | ||
+ | |region = [[Enderal:The Heartlands|The Heartlands]] | ||
+ | |cells = BoringCave001 | ||
+ | }} | ||
+ | |||
+ | <pre style = "clear: both; "> | ||
+ | {{Place}} | ||
+ | </pre> | ||
+ | {{Place|nocategory}} | ||
[[Category:Templates|Templates]] | [[Category:Templates|Templates]] | ||
</noinclude> | </noinclude> |
Revision as of 17:44, 30 June 2017
Parameters
All parameters are optional.
- name: The place's name. If empty, uses the current page's name.
- icon: The map marker icon of this place. See Category:Enderal-Map Markers for a list of available markers. Hidden if empty.
- image: An image representing the place, without the initial
File:
. Hidden if empty. - marked: If non-empty, indicates that this place is marked on the map.
- zones: How many zones this area has. Defaults to 1.
- dungeon: If non-empty, indicates that this place is a dungeon.
- region: This place's Region. Defaults to (Unknown).
- location: More details on this place's location, such as reference points. Hidden if empty.
- occupants: NPCs and/or Creatures that can be found in this location. Hidden if empty.
- cells: The Creation Kit/Console names of the cells of this place. Hidden if empty.
- nocategory: If present, doesn't add the page to any categories. Don't use this unless you're just giving an example of how to use the template (such as below)
Examples
{{Place |name = Dark Cave |icon = Cave |image = EN-Places-Brownrock_Cave3.jpg |marked = You bet |zones = 3 |dungeon = Of course! |region = [[Enderal:The Heartlands|]] |location = To the south of [[Enderal:Ark|]] <br /> To the east of [[Enderal:Wildmage Camp|]] |occupants = [[Enderal:Entropy Mage|]], [[Enderal:Moss Crawler|]], [[Enderal:Mud Elemental|]] |cells = DarkCaveEntrance, DarkCaveSection01, DarkCaveSection02, DarkCaveBossSection }}
Dark Cave
Marked
Yes
Zones
3
Occupants
Location
To the south of Ark
To the east of Wildmage Camp
Console Cells
DarkCaveEntrance, DarkCaveSection01, DarkCaveSection02, DarkCaveBossSection
{{Place |name = Boring Cave |region = [[Enderal:The Heartlands|]] |cells = BoringCave001 }}
{{Place}}
Place
Marked
No
Zones
0
Dungeon
No
Region
(Unknown)