Template:Settlement: Difference between revisions

From Drunkapedia
Jump to: navigation, search
imported>Tlosk
No edit summary
imported>An Adventurer
m (removing rounded corners)
 
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly>__NOTOC__
<includeonly>{|class="location-infobox columnstop"
{|cellpadding=2 style="width:100%; border:1px solid #aaaaaa; background:#f9f9f9;"
!colspan="2" class="worldbgc"|{{#if:{{{Name|}}}|{{{Name|}}}|{{BASEPAGENAME}}}}
|align=center| {{#ifeq:{{lc:{{{Link Notes|false}}}}}|true|[[#Notes|Notes]] <font color=#f9f9f9>___</font>|}} {{#ifeq:{{lc:{{{Link Maps|false}}}}}|true|[[#Maps|Maps]] <font color=#f9f9f9>___</font>|}} {{#ifeq:{{lc:{{{Link Images|false}}}}}|true|[[#Images|Images]]|}}
|}
{|border=0 cellpadding=0 cellspacing=3 style=width:100%
|-valign=top
|
{|style="width:310px; border:1px solid #aaaaaa; background:#F9F9F9; vertical-align:top;"
|colspan=3|
{|style="width:100%;margin:0; background:#f2cece; border:1px solid #a3b0bf; text-align:left; color:#000;"
|<big>'''Settlement Summary'''</big>
|}
|-
|-
|align=center valign=top colspan=2|'''Houses:'''
| '''Houses'''
|valign=top| {{#ifexpr:{{{Mansions|0}}}>0|{{{Mansions|0}}} [[Mansion]]s<br>|}}{{#ifexpr:{{{Villas|0}}}>0|{{{Villas|0}}} [[Villa]]s<br>|}}{{#ifexpr:{{{Cottages|0}}}>0|{{{Cottages|0}}} [[Cottage]]s<br>|}}{{#ifexpr:{{{Apartments|0}}}>0|{{{Apartments|0}}} [[Apartment]]s|}}
| {{#ifexpr:{{{Mansions|0}}}>0|{{{Mansions|0}}} [[Mansion]]<br>|}}{{#ifexpr:{{{Villas|0}}}>0|{{{Villas|0}}} [[Villa]]s<br>|}}{{#ifexpr:{{{Cottages|0}}}>0|{{{Cottages|0}}} [[Cottage]]s<br>|}}{{#ifexpr:{{{Apartments|0}}}>0|{{{Apartments|0}}} [[Apartment]]s|}}
|-
|-
|align=center valign=top colspan=2|'''Location:'''
| '''Coordinates'''
|valign=top| {{{Coordinates|??}}}
| {{{Coordinates|??}}}
|-
|-
{{#ifeq:{{{Portal Town|}}}|||
| '''Nearest Town'''
{{!}}align=center valign=top colspan=2{{!}}'''Settlement Portal:'''
| [[{{{Nearest Town|??}}}]]
{{!}}valign=top{{!}} {{{Portal Coordinates|??}}} near [[{{{Portal Town|}}}]]
|-
{{!}}-
| '''Route'''
}}
| {{{Portal Coordinates|??}}} near [[{{{Portal Town|}}}]]
|align=center valign=top colspan=2|'''Nearest Town:'''
|-
|valign=top| [[{{{Nearest Town|??}}}]]
| '''Nearby Locations:'''
| {{{Provides Access To|??}}}
|-
|-
|colspan=3|
!colspan=2 style="border-top:solid 1px #e5e5e5;"|Purchase Costs
{|style="width:100%;margin:0; background:#d1f2ce; border:1px solid #a3b0bf; text-align:left; color:#000;"
|<big>'''Purchase Information'''</big>
|}
|-
|-
|width=32| [[File:Pyreal Icon.png|link=Pyreal]]
| {{Itemlink|Pyreal}}
| [[Pyreal]]
| {{{Purchase Pyreals|??}}}
| {{{Purchase Pyreals|??}}}p
|-
|-
|width=32| [[File:Writ of Refuge Icon.png|link=Writ of Refuge]]
| {{Itemlink|Writ of Refuge}}
| [[Writ of Refuge]]
| {{{Purchase Writs|??}}}
| {{{Purchase Writs|??}}}
|-
|-
|width=32| [[File:{{{Trophy Item 1|}}} Icon.png|link={{strip|{{{Trophy Item 1|}}}}}]]
| {{Itemlink|{{{Trophy Item 1|}}}}}
| [[{{{Trophy Item 1|??}}}]]
| {{{Trophy Item 1 Qty|??}}}
| {{{Trophy Item 1 Qty|??}}}
|-
|-
{{#ifeq:{{{Trophy Item 2|}}}|||
{{#if:{{{Trophy Item 2|}}}|
{{!}} [[File:{{{Trophy Item 2|}}} Icon.png|link={{strip|{{{Trophy Item 2|}}}}}]]
{{!}} {{Itemlink|{{{Trophy Item 2|}}}}}
{{!}} [[{{{Trophy Item 2|??}}}]]
{{!}} {{{Trophy Item 2 Qty|??}}}
{{!}} {{{Trophy Item 2 Qty|??}}}
{{!}}-
{{!}}-
}}
}}
{{#ifeq:{{{Trophy Item 3|}}}|||
{{#if:{{{Trophy Item 3|}}}|
{{!}} [[File:{{{Trophy Item 3|}}} Icon.png|link={{strip|{{{Trophy Item 3|}}}}}]]
{{!}}-
{{!}} [[{{{Trophy Item 3|??}}}]]
{{!}} {{Itemlink|{{{Trophy Item 3|}}}}}
{{!}} {{{Trophy Item 3 Qty|??}}}
{{!}} {{{Trophy Item 3 Qty|??}}}
{{!}}-
{{!}}-
}}
{{!}} {{Itemlink|{{{Trophy Item 4|}}}}}
{{#ifeq:{{{Trophy Item 4|}}}|||
{{!}} [[File:{{{Trophy Item 4|}}} Icon.png|link={{strip|{{{Trophy Item 4|}}}}}]]
{{!}} [[{{{Trophy Item 4|??}}}]]
{{!}} {{{Trophy Item 4 Qty|??}}}
{{!}} {{{Trophy Item 4 Qty|??}}}
{{!}}-
{{!}}-
}}
}}
|colspan=3|
|colspan="2"|<div class="mw-collapsible mw-collapsed collapse">'''Show location on Dereth map'''<div class="mw-collapsible-content">{{#if:{{{Dereth Map|}}}|{{{Dereth Map|}}}}}</div></div>
{|style="width:100%;margin:0; background:#cedff2; border:1px solid #a3b0bf; text-align:left; color:#000;"
|}[[Category:Housing Settlements]]{{#ifexpr:{{{Mansions|0}}}>0|[[Category:Mansions]]|}}{{#ifexpr:{{{Villas|0}}}>0|
|<big>'''Related Articles'''</big>
[[Category:Villas]]|}}{{#ifexpr:{{{Cottages|0}}}>0|[[Category:Cottages]]|}}{{#ifexpr:{{{Apartments|0}}}>0|[[Category:Apartments]]|}}</includeonly><noinclude>[[Category:Wiki Templates]]</noinclude>
|}
|-
|align=center colspan=3| [[File:Housing Settlements Icon.png|link=Housing Settlements]] [[File:Transparent Icon.png| ]] [[File:Cottage Icon.png|link=Cottages]] [[File:Transparent Icon.png| ]] [[File:Villa Icon.png|link=Villas]] [[File:Transparent Icon.png| ]] [[File:Mansion Icon.png|link=Mansions]]
|-
|align=center valign=top colspan=2|'''Introduced In:'''
|valign=top| [[{{{Patch Introduced|??}}}]]
|-
|align=center valign=top colspan=2|'''Provides Access To:'''
|valign=top| {{#ifeq:{{{Provides Access To|}}}||??|{{{Provides Access To|??}}}}}
|-
|}
|width=20|
|
{{Live Image|{{{Live Image|}}}|{{{Live Image Caption|}}}}}
|}
[[Category:Settlement]]{{#ifexpr:{{{Mansions|0}}}>0|[[Category:Mansion]]|}}{{#ifexpr:{{{Villas|0}}}>0|[[Category:Villa]]|}}{{#ifexpr:{{{Cottages|0}}}>0|[[Category:Cottage]]|}}{{#ifexpr:{{{Apartments|0}}}>0|[[Category:Apartment]]|}}</includeonly><noinclude>
{{Related|Wiki Templates|Housing Settlement Template}}
== Syntax ==
<pre>
{{Settlement
|              Name =
|  Patch Introduced = Dark Majesty
|          Mansions = 0
|            Villas = 0
|          Cottages = 0
|        Apartments = 0
|        Live Image =  Live.jpg
| Live Image Caption =
|        Coordinates =
|      Nearest Town =
| Portal Coordinates =
|        Portal Town =
|  Purchase Pyreals =
|    Purchase Writs =
|      Trophy Item 1 =
|  Trophy Item 1 Qty =
|      Trophy Item 2 =
|  Trophy Item 2 Qty =
|      Trophy Item 3 =
|  Trophy Item 3 Qty =
|      Trophy Item 4 =
|  Trophy Item 4 Qty =
|    Activation Reqs =
| Provides Access To =
|          Link Maps = True
|        Link Images = True
|        Link Notes = True
}}
</pre>
 
== Usage ==
This template is one component of the page template [[Housing Settlement Template]], full details and an example can be found there.
 
[[Category:Wiki Template]]
</noinclude>

Latest revision as of 20:44, 10 June 2018