Difference between revisions of "Template:Town"

From Culture.si
Line 1: Line 1:
{{Infobox|
+
<noinclude>Prekopiraj spodnjo strukturo v izvorno kodo članka.  Pri '''Image''' vpiši samo ime slike.<pre>
|town={{{PAGENAME}}}
+
{{Infobox
|map=http://www.openstreetmap.org/?lat={{{lat}}}&lon={{{lon}}}&zoom=15&layers=mapnik
+
| name              =
 +
| local name        =
 +
| image              =
 +
| coat of arms      =
 +
| founded by        =
 +
| year              =
 +
| town              =
 +
| website            =
 +
| municipality      =
 +
}}
 +
</pre></noinclude>{{#ifeq:{{#this:depth}}|1|
 +
<table class="infobox">
 +
{{infoboxRow
 +
| label  =
 +
| name    = image
 +
| value  = {{{image|{{{localname|{{{local name|{{{name|{{FULLPAGENAME}}}}}}}}}}}.jpg}}}
 +
| type    = image
 +
}}
 +
{{Contact
 +
| name      = {{#if:{{{localname|{{{local name|{{{name}}}}}}}}}|{{{localname|{{{local name|{{{name}}}}}}}}}|{{{name|{{FULLPAGENAME}}}}}}}
 +
| street    = {{{street|{{{street address|}}}}}}
 +
| town     = {{{town|}}}
 +
| website  = {{{website|}}}
 +
| email    = {{{email|}}}
 +
| telephone = {{{telephone|}}}
 +
| fax      = {{{fax|}}}
 +
| save      = TRUE
 +
}}
 +
{{#if:{{{town|}}}
 +
| {{infoboxRow
 +
  | label = Region
 +
  | name  = Region
 +
  | value = {{#custom:sub|{{{town|}}}|0|4}}
 +
  | type  = text
 +
  }}
 +
}}
 +
{{infoboxRow
 +
| label = Municiplaity
 +
| name  = Municipality
 +
| value = {{{municipality|}}}
 +
| type  = link
 +
}}
 +
{{infoboxRow
 +
  | name  = Map
 +
  | value = {{{map|}}}
 +
  | type  = embed
 +
}}
 +
</table>
 
}}
 
}}
 
{{Town queries}}
 
{{Town queries}}
 
[[Category:Towns]]
 
[[Category:Towns]]

Revision as of 03:44, 2 April 2010

Prekopiraj spodnjo strukturo v izvorno kodo članka. Pri Image vpiši samo ime slike.

{{Infobox
| name               =
| local name         =
| image              = 
| coat of arms       =
| founded by         =
| year               =
| town               = 
| website            = 
| municipality       =
}}


  • Town: Town