Difference between revisions of "Template:Town"

From Culture.si
 
(10 intermediate revisions by 4 users not shown)
Line 13: Line 13:
 
}}
 
}}
 
</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}}}|
{{#ifexist:{{{municipality}}}|
 
 
   {{infoboxRow
 
   {{infoboxRow
 
   | label = Municipality
 
   | label = Municipality
Line 27: Line 26:
 
   | type  = link
 
   | type  = link
 
   }}
 
   }}
}}
+
}}{{#if:{{{post|}}}
{{#if:{{{post|}}}
 
 
| {{infoboxRow
 
| {{infoboxRow
 
   | label = Region
 
   | label = Region
Line 35: Line 33:
 
   | type  = link
 
   | type  = link
 
   }}
 
   }}
}}
+
}}{{#if:{{{wikipedia|}}}
{{#if:{{{wikipedia|}}}
 
 
| {{infoboxRow
 
| {{infoboxRow
 
   | label = Wikipedia
 
   | label = Wikipedia
 
   | name  = Wikipedia
 
   | name  = Wikipedia
   | value = {{{wikipedia|}}}
+
   | value = {{{wikipedia}}}
 +
  | display = [{{{wikipedia}}} {{{name}}}]
 
   | type  = external link
 
   | type  = external link
 
   }}
 
   }}
}}
+
}}{{#if:{{{map|}}}
{{#if:{{{map|}}}
 
 
| {{infoboxRow
 
| {{infoboxRow
 
   | name  = Map
 
   | name  = Map
Line 50: Line 47:
 
   | type  = embed
 
   | type  = embed
 
   }}
 
   }}
 +
}}</table><br>{{eventsForThisPage|page={{{name}}}}}
 +
</div>
 
}}
 
}}
</table>
+
<includeonly>
}}
+
<div class="tabs">
{{Town queries}}
+
__NOTOC__
 +
{{#data:set|town|{{{name|{{FULLPAGENAME}}}}}
 +
| name              = {{{name|{{FULLPAGENAME}}}}}
 +
| post              = {{{post|}}}
 +
| wikipedia          = {{{wikipedia|}}}
 +
| municipality      = {{{municipality|}}}
 +
| map                = {{{map|}}}
 +
}}{{#eval:wrap|Town queries}}
 +
</div>
 
[[Category:Towns|{{{name|}}}]]
 
[[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       =
}}