Difference between revisions of "Template:Town"
(20 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}}}| |
− | {{#if:{{{post|}}} | + | {{infoboxRow |
+ | | label = Municipality | ||
+ | | name = Municipality | ||
+ | | value = {{{municipality|}}} | ||
+ | | type = link | ||
+ | }} | ||
+ | }}{{#if:{{{post|}}} | ||
| {{infoboxRow | | {{infoboxRow | ||
| label = Region | | label = Region | ||
| name = Region | | name = Region | ||
| value = {{#custom:sub|{{{post|}}}|0|4}} | | value = {{#custom:sub|{{{post|}}}|0|4}} | ||
− | | type = | + | | type = link |
}} | }} | ||
− | }} | + | }}{{#if:{{{wikipedia|}}} |
− | {{infoboxRow | + | | {{infoboxRow |
− | | label = | + | | label = Wikipedia |
− | | name = | + | | name = Wikipedia |
− | | value = {{{ | + | | value = {{{wikipedia}}} |
− | | type = link | + | | display = [{{{wikipedia}}} {{{name}}}] |
− | }} | + | | type = external link |
− | {{infoboxRow | + | }} |
+ | }}{{#if:{{{map|}}} | ||
+ | | {{infoboxRow | ||
| name = Map | | name = Map | ||
| value = {{{map|}}} | | value = {{{map|}}} | ||
| type = embed | | type = embed | ||
+ | }} | ||
+ | }}</table><br>{{eventsForThisPage|page={{{name}}}}} | ||
+ | </div> | ||
}} | }} | ||
− | < | + | <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 = }}