Difference between revisions of "Template:Town"

From Culture.si
 
(21 intermediate revisions by 5 users not shown)
Line 1: Line 1:
 
<noinclude>Prekopiraj spodnjo strukturo v izvorno kodo članka.  Pri '''Image''' vpiši samo ime slike.<pre>
 
<noinclude>Prekopiraj spodnjo strukturo v izvorno kodo članka.  Pri '''Image''' vpiši samo ime slike.<pre>
 
{{Infobox
 
{{Infobox
| name              =
+
| name              =  
| post              =
+
| post              =  
 
| image              =  
 
| image              =  
 +
| map                =
 
| coat of arms      =
 
| coat of arms      =
 
| founded by        =
 
| founded by        =
 
| year              =
 
| year              =
 
| website            =  
 
| website            =  
 +
| wikipedia          =
 
| municipality      =
 
| municipality      =
 
}}
 
}}
 
</pre></noinclude>{{#ifeq:{{#this:depth}}|1|
 
</pre></noinclude>{{#ifeq:{{#this:depth}}|1|
<table class="infobox">
+
<div class="contact-info">
{{infoboxRow
+
<div class="contact-info-title">Info</div><table class="infobox">{{infoboxRow
 
| label  =
 
| label  =
 
| name    = image  
 
| name    = image  
 
| value  = {{{image|{{{localname|{{{local name|{{{name|{{FULLPAGENAME}}}}}}}}}}}.jpg}}}
 
| value  = {{{image|{{{localname|{{{local name|{{{name|{{FULLPAGENAME}}}}}}}}}}}.jpg}}}
 
| type    = image
 
| type    = image
}}
+
}}{{#ifexist:{{{municipality}}}|
{{Contact
+
  {{infoboxRow
| name      = {{#if:{{{localname|{{{local name|{{{name}}}}}}}}}|{{{localname|{{{local name|{{{name}}}}}}}}}|{{{name|{{FULLPAGENAME}}}}}}}
+
  | label = Municipality
| street    = {{{street|{{{street address|}}}}}}
+
  | name  = Municipality
| town      = {{{town|}}}
+
   | value = {{{municipality|}}}
| website   = {{{website|}}}
+
  | type  = link
| email    = {{{email|}}}
+
  }}
| telephone = {{{telephone|}}}
+
}}{{#if:{{{post|}}}
| fax      = {{{fax|}}}
 
| save      = TRUE
 
}}
 
{{#if:{{{town|}}}
 
 
| {{infoboxRow
 
| {{infoboxRow
 
   | label = Region
 
   | label = Region
 
   | name  = Region
 
   | name  = Region
 
   | value = {{#custom:sub|{{{post|}}}|0|4}}
 
   | value = {{#custom:sub|{{{post|}}}|0|4}}
   | type  = text
+
   | type  = link
 +
  }}
 +
}}{{#if:{{{wikipedia|}}}
 +
| {{infoboxRow
 +
  | label = Wikipedia
 +
  | name  = Wikipedia
 +
  | value = {{{wikipedia}}}
 +
  | display = [{{{wikipedia}}} {{{name}}}]
 +
  | type  = external link
 
   }}
 
   }}
}}
+
}}{{#if:{{{map|}}}
{{infoboxRow
+
| {{infoboxRow
| label = Municiplaity
 
| name  = Municipality
 
| value = {{{municipality|}}}
 
| type  = link
 
}}
 
{{infoboxRow
 
 
   | name  = Map
 
   | name  = Map
 
   | value = {{{map|}}}
 
   | value = {{{map|}}}
 
   | type  = embed
 
   | type  = embed
 +
  }}
 +
}}</table><br>{{eventsForThisPage|page={{{name}}}}}
 +
</div>
 
}}
 
}}
</table>
+
<includeonly>
}}
+
<div class="tabs">
{{Town queries}}
+
__NOTOC__
[[Category:Towns]]
+
{{#data:set|town|{{{name|{{FULLPAGENAME}}}}}
 +
| name              = {{{name|{{FULLPAGENAME}}}}}
 +
| post              = {{{post|}}}
 +
| wikipedia          = {{{wikipedia|}}}
 +
| municipality      = {{{municipality|}}}
 +
| map                = {{{map|}}}
 +
}}{{#eval:wrap|Town queries}}
 +
</div>
 +
[[Category:Towns|{{{name|}}}]]
 +
</includeonly>
 +
 
 +
{{FULLWIDTH}}

Latest revision as of 06:50, 11 March 2021

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

{{Infobox
| name               = 
| post               = 
| image              = 
| map                = 
| coat of arms       =
| founded by         =
| year               =
| website            = 
| wikipedia          =
| municipality       =
}}