Template:Settlement: Difference between revisions

From Drunkapedia
Jump to: navigation, search
imported>Tlosk
No edit summary
imported>An Adventurer
m (removing rounded corners)
 
(27 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly>[[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>{|class="location-infobox columnstop"
__NOTOC__
!colspan="2" class="worldbgc"|{{#if:{{{Name|}}}|{{{Name|}}}|{{BASEPAGENAME}}}}
{|cellpadding=2 style="width:100%; border:1px solid #aaaaaa; background:#f9f9f9;"
|align=center| {{#ifeq:{{lc:{{{Link Maps|false}}}}}|true|[[{{PAGENAME}}#Maps|Maps]] <font color=#f9f9f9>___</font>|}} {{#ifeq:{{lc:{{{Link Images|false}}}}}|true|[[{{PAGENAME}}#Images|Images]] <font color=#f9f9f9>___</font>|}} {{#ifeq:{{lc:{{{Link Notes|false}}}}}|true|[[{{PAGENAME}}#Notes|Notes]]|}}
|}
{|border=0 cellpadding=0 cellspacing=3 style=width:100%
|-valign=top
|
{|style="width:310px; border:1px solid #aaaaaa; background:#F9F9F9; vertical-align:top;"
|colspan=2|
{|style="width:100%;margin:0; background:#f2cece; border:1px solid #a3b0bf; text-align:left; color:#000;"
|<big>'''Settlement Summary'''</big>
|}
|-
|-
|align=center valign=top|'''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|'''Location:'''
| '''Coordinates'''
|valign=top| {{{Coordinates|??}}}
| {{{Coordinates|??}}}
|-
|-
|align=center valign=top|'''Nearest Town:'''
| '''Nearest Town'''
|valign=top| [[{{{Nearest Town|??}}}]]
| [[{{{Nearest Town|??}}}]]
|-
|-
{{#ifeq:{{{Portal Town|}}}|||
| '''Route'''
{{!}}align=center valign=top{{!}}'''Settlement Portal:'''
| {{{Portal Coordinates|??}}} near [[{{{Portal Town|}}}]]
{{!}}valign=top{{!}} {{{Portal Coordinates|??}}} near [[{{{Portal Town|}}}]]
|-
{{!}}-
| '''Nearby Locations:'''
}}
| {{{Provides Access To|??}}}
|colspan=2|
|-
{|style="width:100%;margin:0; background:#d1f2ce; border:1px solid #a3b0bf; text-align:left; color:#000;"
!colspan=2 style="border-top:solid 1px #e5e5e5;"|Purchase Costs
|<big>'''Purchase Information'''</big>
|}
|-
|-
| [[Image:Pyreal Icon.png]] [[Pyreal]]
| {{Itemlink|Pyreal}}
| {{{Purchase Pyreals|??}}}
| {{{Purchase Pyreals|??}}}
|-
|-
|[[Image:Writ of Refuge Icon.png]] [[Writ of Refuge]]
| {{Itemlink|Writ of Refuge}}
| {{{Purchase Writs|??}}}
| {{{Purchase Writs|??}}}
|-
|-
| [[Image:{{{Trophy Item 1|}}} Icon.png]] [[{{{Trophy Item 1|??}}}]]
| {{Itemlink|{{{Trophy Item 1|}}}}}
| {{{Trophy Item 1#|??}}}
| {{{Trophy Item 1 Qty|??}}}
|-
|-
{{#ifeq:{{{Trophy Item 2|}}}|||
{{#if:{{{Trophy Item 2|}}}|
{{!}} [[Image:{{{Trophy Item 2|}}} Icon.png]] [[{{{Trophy Item 2|??}}}]]
{{!}} {{Itemlink|{{{Trophy Item 2|}}}}}
{{!}} {{{Trophy Item 2#|??}}}
{{!}} {{{Trophy Item 2 Qty|??}}}
{{!}}-
{{!}}-
}}
}}
{{#ifeq:{{{Trophy Item 3|}}}|||
{{#if:{{{Trophy Item 3|}}}|
{{!}} [[Image:{{{Trophy Item 3|}}} Icon.png]] [[{{{Trophy Item 3|??}}}]]
{{!}} {{{Trophy Item 3#|??}}}
{{!}}-
{{!}}-
}}
{{!}} {{Itemlink|{{{Trophy Item 3|}}}}}
{{#ifeq:{{{Trophy Item 4|}}}|||
{{!}} {{{Trophy Item 3 Qty|??}}}
{{!}} [[Image:{{{Trophy Item 4|}}} Icon.png]] [[{{{Trophy Item 4|??}}}]]
{{!}}-
{{!}} {{{Trophy Item 4#|??}}}
{{!}} {{Itemlink|{{{Trophy Item 4|}}}}}
{{!}} {{{Trophy Item 4 Qty|??}}}
{{!}}-
{{!}}-
}}
}}
|colspan=2|
|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=2| [[Image:Housing Settlements Icon.png|Housing Settlements]] [[Image:Transparent Icon.png| ]] [[Image:Cottage Icon.png|Cottages]] [[Image:Transparent Icon.png| ]] [[Image:Villa Icon.png|Villas]] [[Image:Transparent Icon.png| ]] [[Image:Mansion Icon.png|Mansions]]
|-
|align=center valign=top|'''Introduced In:'''
|valign=top| [[{{{Patch Introduced|??}}}]]
|-
|align=center valign=top|'''Provides Access To:'''
|valign=top| {{{Provides Access To|??}}}
|-
|}
|width=20|
|
{{#ifeq:{{{Live Image|Live.jpg}}}
| Live.jpg
|
| {{#ifeq:{{{Live Image|}}}
    |  
    |
    | [[Image:{{{Live Image|}}}{{!}}frame{{!}}{{{Live Image Caption}}}|right]]
  }}
}}
|}</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# =
|      Trophy Item 2 =
|    Trophy Item 2# =
|      Trophy Item 3 =
|    Trophy Item 3# =
|      Trophy Item 4 =
|    Trophy Item 4# =
|    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.
 
</noinclude>

Latest revision as of 20:44, 10 June 2018