Difference between revisions of "Template:Place"
From sureai
m (Only show link to interactive map if the place is marked) |
m (Handle big place names correctly) |
||
Line 7: | Line 7: | ||
margin-bottom: .5em; padding: .25em; ">{{#if: {{{icon|}}}|[[File:EN-Marker-{{{icon}}}.svg|40x40px|link=|{{{icon}}}]]|}} | margin-bottom: .5em; padding: .25em; ">{{#if: {{{icon|}}}|[[File:EN-Marker-{{{icon}}}.svg|40x40px|link=|{{{icon}}}]]|}} | ||
<div style = "flex: 1; display: flex; flex-flow: column nowrap; justify-content: center; align-items: center; "> | <div style = "flex: 1; display: flex; flex-flow: column nowrap; justify-content: center; align-items: center; "> | ||
− | <div style = "font-weight: bold; color: white; font-size: 1.5em; ">{{{name|{{PAGENAME}}}}}</div> | + | <div style = "font-weight: bold; color: white; font-size: 1.5em; text-align: center; ">{{{name|{{PAGENAME}}}}}</div> |
{{#if: {{{marked|}}}|<div>[http://map.enderal.sureai.net/#{{urlencode:{{{mapname|{{{name|{{PAGENAME}}}}}}}}|PATH}} View on map]</div>|}} | {{#if: {{{marked|}}}|<div>[http://map.enderal.sureai.net/#{{urlencode:{{{mapname|{{{name|{{PAGENAME}}}}}}}}|PATH}} View on map]</div>|}} | ||
</div> | </div> | ||
Line 172: | Line 172: | ||
<pre> | <pre> | ||
{{Place | {{Place | ||
− | |name = | + | |name = A cave with a very, very, very, VERY long name. |
|icon = Cave | |icon = Cave | ||
|image = EN-Places-Brownrock_Cave3.jpg | |image = EN-Places-Brownrock_Cave3.jpg | ||
Line 208: | Line 208: | ||
</pre> | </pre> | ||
{{Place | {{Place | ||
− | |name = | + | |name = A cave with a very, very, very, VERY long name. |
|icon = Cave | |icon = Cave | ||
|image = EN-Places-Brownrock_Cave3.jpg | |image = EN-Places-Brownrock_Cave3.jpg |
Revision as of 13:07, 2 August 2017
Parameters
All parameters are optional.
- name: The place's name. If empty, uses the current page's name.
- mapname: The place's name in the interactive map. If not present, uses the "name" parameter, if it's not empty, or the 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 0.
- 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.
- oretype#, orenum#: Where # ranges from 1 to 6, identifies the types of ore that exist in this location (oretype) and how many of that type exist (orenum)
- alchemy, enchanting, tanning, smelter, forge, grindstone, workbench, cooking, lumber: Defines the number of Alchemy Labs, Arcane Enchanters, Tanning Racks, Smelters, Forges, Grindstones, Workbenches, Cooking Pots, and Chopping Blocks, respectively.
- 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 = A cave with a very, very, very, VERY long name. |icon = Cave |image = EN-Places-Brownrock_Cave3.jpg |marked = 1 |dungeon = 1 |zones = 3 |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 |oretype1 = Iron |orenum1 = 3 |oretype2 = Quicksilver |orenum2 = 30 |oretype3 = Corundum |orenum3 = 1 |oretype4 = Voodoo |orenum4 = 50 |oretype5 = Gold |orenum5 = 14 |oretype6 = Amirite |orenum6 = 50 |alchemy = 3 |enchanting = 1 |tanning = 2 |smelter = 2 |forge = 5 |grindstone = 3 |workbench = 3 |cooking = 5 |lumber = 2 }}
A cave with a very, very, very, VERY long name.
Marked
Yes
Zones
3
Occupants
Location
To the south of Ark
To the east of Wildmage Camp
Console Cells
DarkCaveEntrance, DarkCaveSection01, DarkCaveSection02, DarkCaveBossSection
Ore Veins
Facilities
{{Place |name = Boring Cave |region = [[Enderal:The Heartlands|]] |cells = BoringCave001 |cooking = 2 |lumber = 1 }}
Boring Cave
Marked
No
Zones
0
Console Cells
BoringCave001
Facilities
{{Place}}
Place
Marked
No
Zones
0
Dungeon
No
Region
(Unknown)