Difference between revisions of "Template:Town"

From Culture.si
 
(16 intermediate revisions by 5 users not shown)
Line 9: Line 9:
 
| 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}}}|
{{infoboxRow
+
  {{infoboxRow
| label = Municipality
+
  | label = Municipality
| name  = Municipality
+
  | name  = Municipality
| value = {{{municipality|}}}
+
  | value = {{{municipality|}}}
| type  = link
+
  | type  = link
}}
+
  }}
{{#if:{{{post|}}}
+
}}{{#if:{{{post|}}}
 
| {{infoboxRow
 
| {{infoboxRow
 
   | label = Region
 
   | label = Region
Line 32: Line 33:
 
   | type  = link
 
   | type  = link
 
   }}
 
   }}
}}
+
}}{{#if:{{{wikipedia|}}}
{{#if:{{{map|}}}
+
| {{infoboxRow
 +
  | label = Wikipedia
 +
  | name  = Wikipedia
 +
  | value = {{{wikipedia}}}
 +
  | display = [{{{wikipedia}}} {{{name}}}]
 +
  | type  = external link
 +
  }}
 +
}}{{#if:{{{map|}}}
 
| {{infoboxRow
 
| {{infoboxRow
 
   | name  = Map
 
   | name  = Map
Line 39: Line 47:
 
   | 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       =
}}