Abrir menu principal

UESPWiki β

Alterações

Predefinição:Place Summary

8 488 bytes adicionados, 20h28min de 4 de abril de 2014
m
Changing this to LABELNAME to match what I'm doing to Template:Online NPC Summary
<includeonly><cleanspace>
<!-- Space switches -->
{{#local:userspace|1|if={{#ifeq:{{SUBJECTSPACE}}|User|1}}}}
{{#local:gamespace|1|ifnot={{#switch:{{SUBJECTSPACE}}|User|Template|UESPWiki=1}}}}
{{#define:ns_base|Skyrim|if={{{userspace|}}}}}

<!-- Case only defines -->
{{#define:addabove|case=any}}
{{#define:addbelow|case=any}}
{{#define:city|case=any}}
{{#define:district|case=any}}
{{#define:region|case=any}}
{{#define:region2|case=any}}
{{#define:region3|case=any}}

<!-- Image Parameters and Checks -->
{{#define:image|case=any}}
{{#define:imgdesc|case=any}}
{{Parameter Check|type=Place}}
{{#unset:image|if={{#ifeq:{{lc:{{{image|}}}}}|none|1}}}}

<!-- Content defines -->
{{#if:{{{titlename|}}}|{{DEFAULTSORT:{{{titlename}}}}}}}<!-- Do not add DEFAULTSORT if titlename wasn't explicitly passed -->
{{#define:titlename|{{#label:{{SUBPAGENAME}}}}}}

{{#local:citydesc|{{#label:{{{city}}}}}|if={{{city|}}}}}
{{#define:description|case=any}}
{{#if:{{{description|}}}||{{#if:{{{gamespace|}}}|[[Category:{{NS_NAME}} Places Needing Descriptions]]}}}}
{{#define:location|{{Autolink|{{{city|}}}}}{{#if:{{{district|}}}|, [[{{NS_BASE}}:{{#ifeq:{{NS_BASE}}|Morrowind|Vivec&#32;}}{{{district}}}|{{{district}}}]]}}{{#if:{{{coords|}}}|, {{nowrap|{{{coords}}}}}}}|if={{{city|{{{district|}}}}}}}}
{{#define:location|{{Autolink|{{{town|}}}}}{{#if:{{{coords|}}}|, {{nowrap|{{{coords}}}}}}}|if={{{town|}}}}}
{{#define:mapname|{{LABELNAME}}|case=any}}
{{#define:mapbase|{{NS_BASE}}}}
{{#ifeq:{{{mapname|}}}|none||
{{#switch:{{{mapbase}}}
|Oblivion|Shivering|Morrowind|Bloodmoon|Skyrim|Dragonborn={{#if:{{{mapx|}}}
|{{#local:maplink|{{Map Link|x={{{mapx}}}|y={{{mapy}}}|ns={{{mapbase}}}}}}}{{#local:maplinkdisp|({{Map Link|x={{{mapx}}}|y={{{mapy}}}|view on map|ns={{{mapbase}}}}})}}
|{{#local:maplink|{{Map Link|{{{mapname}}}|ns={{{mapbase}}}}}}}{{#local:maplinkdisp|({{Map Link|{{{mapname}}}|view on map|ns={{{mapbase}}}}})}}
}}
}}
}}
{{#define:lorepage|{{LABELNAME}}}}
{{#local:lorelink|{{#if:{{#pos:{{{lorepage|}}}|[}}|{{{lorepage}}}|{{#ifexistx:Lore:{{{lorepage}}}|[[Lore:{{{lorepage}}}|lore page]]}}}}}}
{{#local:linkline|{{{maplinkdisp|}}}&#32;{{#if:{{{lorelink|}}}|{{nowrap|({{{lorelink}}})}}}}}}
{{#local:propheader|{{#switch:{{{type|}}}|Inn=Publican|Guild Hall=Guildmaster|Telvanni Tower=Master|Proprietor}}}}
{{#define:regionheader|Regions|if={{{region2|{{{region3|}}}}}}|case=any}}
{{#define:regionheader|Region|case=any}}
{{#define:marker_icon|{{NS_ID:{{{ns_base|{{NS_PARENT}}}}}}}-mapicon-{{{marker_id}}}.png|if={{#if:{{{marker_id|}}}| {{#ifexpr:{{#len:{{{marker_id}}}}}>2|1|0}} |0}} }}

<!-- DESTINATION DATA -->
{{#local:destheader|{{{transtype|}}}<br/>|if={{{transtype|}}}}}
{{#local:destheader|{{{destheader|}}}Destinations}}

{{#save:description|mapname|maplink|type|marker_icon}}

<!-- Trail -->
{{#if:{{{gamespace|}}}|{{#if:{{{notrail|}}}||{{Trail|Places|{{#switch:{{{type}}}
|Body of Water=Bodies of Water
|City=Cities
|Library=Libraries
|Ruins=Ruins
|Pass=Passes
|Docks=Docks
|Cemetery=Cemeteries
|Other=Other
|Barracks=Barracks
|{{{type}}}s
}}}}}}}}

<!-- Categories -->
</cleanspace>{{#if:{{{gamespace|}}}|<!--
-->{{#if:{{{city|}}}|[[Category:{{NS_CATEGORY}}-Places-{{{citydesc}}}]]}}<!--
-->{{#if:{{{district|}}}|[[Category:{{NS_CATEGORY}}-Places-{{{citydesc}}} {{{district}}}]]}}<!--
-->{{#if:{{{region|}}}|[[Category:{{NS_CATEGORY}}-Places-{{#trimlinks:{{{region}}}}}]]}}<!--
-->{{#if:{{{region2|}}}|[[Category:{{NS_CATEGORY}}-Places-{{#trimlinks:{{{region2}}}}}]]}}<!--
-->{{#if:{{{region3|}}}|[[Category:{{NS_CATEGORY}}-Places-{{#trimlinks:{{{region3}}}}}]]}}<!--
-->{{#if:{{{oretype|}}}|[[Category:{{NS_CATEGORY}}-Places-{{ucfirst:{{{oretype}}}}}_Veins]]}}<!--
-->{{#if:{{{oretype2|}}}|[[Category:{{NS_CATEGORY}}-Places-{{ucfirst:{{{oretype2}}}}}_Veins]]}}<!--
-->{{#if:{{{oretype3|}}}|[[Category:{{NS_CATEGORY}}-Places-{{ucfirst:{{{oretype3}}}}}_Veins]]}}<!--
-->{{#if:{{{oretype4|}}}|[[Category:{{NS_CATEGORY}}-Places-{{ucfirst:{{{oretype4}}}}}_Veins]]}}<!--
-->{{#if:{{{oretype5|}}}|[[Category:{{NS_CATEGORY}}-Places-{{ucfirst:{{{oretype5}}}}}_Veins]]}}<!--
-->{{#if:{{{oretype6|}}}|[[Category:{{NS_CATEGORY}}-Places-{{ucfirst:{{{oretype6}}}}}_Veins]]}}<!--
-->{{#if:{{{oretype7|}}}|[[Category:{{NS_CATEGORY}}-Places-{{ucfirst:{{{oretype7}}}}}_Veins]]}}<!--
-->{{#if:{{{alchemy|}}}|[[Category:{{NS_CATEGORY}}-Places-Alchemy_Labs]]}}<!--
-->{{#if:{{{enchanting|}}}|[[Category:{{NS_CATEGORY}}-Places-Arcane_Enchanters]]}}<!--
-->{{#if:{{{tanning|}}}|[[Category:{{NS_CATEGORY}}-Places-Tanning_Racks]]}}<!--
-->{{#if:{{{smelter|}}}|[[Category:{{NS_CATEGORY}}-Places-Smelters]]}}<!--
-->{{#if:{{{forge|}}}|[[Category:{{NS_CATEGORY}}-Places-Forges]]}}<!--
-->{{#if:{{{grindstone|}}}|[[Category:{{NS_CATEGORY}}-Places-Grindstones]]}}<!--
-->{{#if:{{{workbench|}}}|[[Category:{{NS_CATEGORY}}-Places-Workbenches]]}}<!--
-->{{#if:{{{cooking|}}}|[[Category:{{NS_CATEGORY}}-Places-Cooking Pots]]}}<!--
-->{{#if:{{{clay|}}}|[[Category:{{NS_CATEGORY}}-Places-Clay Deposits]]}}<!--
-->{{#if:{{{stone|}}}|[[Category:{{NS_CATEGORY}}-Places-Stone Quarries]]}}<!--
-->{{#if:{{{amethyst|}}}|[[Category:{{NS_CATEGORY}}-Places-Amethyst Geodes]]}}<!--
-->{{#if:{{{emerald|}}}|[[Category:{{NS_CATEGORY}}-Places-Emerald Geodes]]}}<!--
-->{{#if:{{{ruby|}}}|[[Category:{{NS_CATEGORY}}-Places-Ruby Geodes]]}}<!--
-->{{#if:{{{sapphire|}}}|[[Category:{{NS_CATEGORY}}-Places-Sapphire Geodes]]}}<!--
-->{{#if:{{{heartstone|}}}|[[Category:{{NS_CATEGORY}}-Places-Heart Stone Deposits]]}}<!--
-->{{#if:{{{stalhrim|}}}|[[Category:{{NS_CATEGORY}}-Places-Stalhrim Deposits]]}}<!--
-->{{#if:{{{wordwall|}}}|[[Category:{{NS_CATEGORY}}-Places-Word Walls]]}}<!--
-->{{#if:{{{clearable|}}}|{{#ifeq:{{lc:{{{clearable}}}}}|no||[[Category:{{NS_CATEGORY}}-Places-Clearable]]}}}} <!--
-->{{#ifeq:{{lc:{{{respawn|}}}}}|never|[[Category:{{NS_CATEGORY}}-Places-Safe]]}}<!--
-->{{#if:{{{discoverable|}}}|{{#ifeq:{{lc:{{{discoverable}}}}}|no||[[Category:{{NS_CATEGORY}}-Places-Discoverable]]}}|{{#if:{{{marker_id|}}}|[[Category:{{NS_CATEGORY}}-Places-Discoverable]]}}}}<!--
-->}}<!--
-->__NOTOC__<cleantable>
{| {{Infobox Style|width=25}}
!colspan=2|
{| class="hiddentable" style="width:100%"
{{#if:{{{marker_icon|}}}|{{!}} style="vertical-align:top" {{!}} [[File:{{{marker_icon}}}|left]]}}
| style="width:100%" | {{{type}}}:<br>{{{titlename}}}{{#if:{{{linkline|}}}|<br>{{{linkline}}}}}
|}
|-
! Added by Add-On
| {{{mod|}}}
|-
! # of Zones
| {{{zones|}}}
|-
{{#include:{{FULLPAGENAME0}}/{{NS_PARENT}} {{{type}}}|if={{{type|}}}}}
|-
{{#include:{{FULLPAGENAME0}}/{{NS_PARENT}}}}
|-
!{{{jobtitle1|{{{propname|{{{propheader}}}}}}}}}
|{{{job1|{{{prop|}}}}}}
|-
!{{{jobtitle2|{{{propheader}}}}}}
|{{{job2|}}}
|-
!{{{jobtitle3|{{{propheader}}}}}}
|{{{job3|}}}
|-
!{{{jobtitle4|{{{propheader}}}}}}
|{{{job4|}}}
|-
!{{{jobtitle5|{{{propheader}}}}}}
|{{{job5|}}}
|-
{{#include:{{FULLPAGENAME0}}/{{NS_PARENT}} Services}}
|-
{{#if:{{{occupants|}}}|
{{!-}}
!colspan=2{{!}} {{#ifeq:{{NS_PARENT}}|Oblivion|[[Oblivion:Dungeons#Occupants|Occupants]]|Occupants}}
{{!-}}
{{!}}colspan=2 style="text-align:center;"{{!}}{{#if:1|{{{occupants|}}}}}}}{{#if:{{{treasure|}}}|&#32;
{{!-}}
!colspan=2 {{!}} Important Treasure
{{!-}}
{{!}} colspan=2 style="text-align:center;"{{!}}{{{treasure}}}}}
|-
!{{{destheader}}}
|{{#if:{{{dest1|}}}|*{{Autolink|{{{dest1}}}}}&#32;
}}{{#if:{{{dest2|}}}|*{{Autolink|{{{dest2}}}}}&#32;
}}{{#if:{{{dest3|}}}|*{{Autolink|{{{dest3}}}}}&#32;
}}{{#if:{{{dest4|}}}|*{{Autolink|{{{dest4}}}}}}}
|-
{{#ifeq:{{{locationcode|}}}|none||&#32;
!colspan=2{{!}}Console Location Code(s)
{{!-}}
{{!}}colspan=2 style="text-align:center;"{{!}}<small>{{{locationcode|Unknown {{huh}}}}}</small>
{{!-}}}}{{#if:{{{region|}}}|&#32;
!colspan=2{{!}}{{{regionheader}}}
{{!-}}
{{!}}colspan=2 style="text-align:center;"{{!}}{{Autolink|{{{region}}}}}{{#if:{{{region2|}}}|, {{Autolink|{{{region2}}}}}}}{{#if:{{{region3|}}}|, {{Autolink|{{{region3}}}}}}}{{#if:{{{coords|}}}|, {{nowrap|{{{coords}}}}}}}
{{!-}}}}{{#if:{{{location|}}}|&#32;
!colspan=2{{!}}Location
{{!-}}
{{!}}colspan=2 style="text-align:center;"{{!}}{{{location|}}}}}
|-
{{#include:{{FULLPAGENAME0}}/{{NS_PARENT}} Other}}
|}</cleantable>{{#if:{{{image|}}}|[[Image:{{{image}}}|thumb|left|{{{imgdesc|}}}]]}}{{{addabove|}}} {{#if:{{{description|}}}|'''{{{titlename}}}''' {{#if:{{{is/are|}}}|are|is}} {{lcfirst:{{{description}}}}}&#32;|{{huh|nosup=1|'''{{FC|red|Please add a description for}} {{{titlename}}}.'''}}}} {{{addbelow|}}}</includeonly><noinclude>
{{/Doc}}</noinclude>
49 253
edições