Difference between revisions of "Template:Infobox"
(236 intermediate revisions by 10 users not shown) | |||
Line 1: | Line 1: | ||
− | + | <noinclude>Prekopiraj spodnjo strukturo v izvorno kodo članka. Pri '''Image''' vpiši samo ime slike. | |
− | <noinclude>Prekopiraj spodnjo strukturo v izvorno kodo članka. Pri '''Image''' vpiši samo ime slike.<pre> | + | <pre> |
{{Infobox | {{Infobox | ||
− | | name | + | | name = |
− | | image | + | | local name = |
− | | street | + | | logo = |
− | | town | + | | image = |
− | | website | + | | street = |
− | | email | + | | town = |
− | | telephone | + | | region = ''if not in Slovenia'' |
− | | fax = | + | | country = ''if not in Slovenia'' |
− | | | + | | website = |
− | | | + | | email = |
− | | managed by | + | | telephone = |
− | | contacts | + | | fax = |
+ | | founded by = | ||
+ | | founded by 2 = | ||
+ | | founded by 3 = | ||
+ | | founded by 4 = | ||
+ | | organised by = | ||
+ | | organised by 2 = | ||
+ | | organised by 3 = | ||
+ | | managed by = | ||
+ | | managed by 2 = | ||
+ | | managed by 3 = | ||
+ | | published by = | ||
+ | | published by 2 = | ||
+ | | published by 3 = | ||
+ | | opening hours = | ||
+ | | official hours = | ||
+ | | frequency = for festivals | ||
+ | | dates and duration = for festivals | ||
+ | | duration weeks = for festivals | ||
+ | | festival dates = d.m.YY - d.m.YY, for festivals | ||
+ | | contacts = {{Contact | ||
| name = | | name = | ||
| role = | | role = | ||
Line 20: | Line 40: | ||
| website = | | website = | ||
| email = | | email = | ||
+ | | email 2 = | ||
| telephone = | | telephone = | ||
| fax = | | fax = | ||
Line 41: | Line 62: | ||
| fax = | | fax = | ||
}} | }} | ||
+ | | accounts = | ||
+ | http://www.twitter.com/twid | ||
+ | http://www.facebook.com/fbid | ||
+ | http://www.youtube.com/ytid | ||
+ | http://www.vimeo.com/vimid | ||
+ | http://www.flickr.com/flid | ||
+ | http://www.soundcloud.com/scid | ||
+ | http://bandcamp.com/bcid | ||
+ | http://www.discogs.com/dgid | ||
+ | http://www.myspace.com/msid | ||
+ | http://www.reverbnation.com/rvid | ||
+ | http://www.last.fm/lfmid | ||
+ | http://www.behance.net/bhid | ||
+ | mastodon:http://www.sonedomain.net/mstid | ||
+ | ... | ||
+ | |||
}} | }} | ||
− | </pre></noinclude>< | + | </pre> |
− | {{ | + | </noinclude>{{#ifeq:{{#this:depth}}|1| |
− | | label = | + | <div class="contact-info" |
− | | name = | + | ><div class="infobox" |
− | | value = {{{ | + | ><div class="contact-info-title">Contact <small class="track-link">{{#if:{{ISADMIN}}|[[Track:{{PAGENAME}}|Track]]|}}</small></div |
− | | type = image | + | ><div class="img">{{infoboxImageRow |
− | }} | + | | label = |
− | {{Contact | + | | name = image- |
− | | | + | | value = {{{image|}}} |
− | | | + | | type = image |
− | | | + | | hasimage = [[category:HAS IMAGE]] |
− | | | + | | noimage = {{missing image}}[[category:NO IMAGE]] |
− | | | + | }}{{infoboxImageRow |
− | | | + | | label = |
− | | | + | | name = logo |
− | | save = TRUE | + | | value = {{{logo|{{{localname|{{{local name|{{{name|{{FULLPAGENAME}}}}}}}}}}} (logo).svg}}} |
− | }} | + | | type = image |
− | {{# | + | | hasimage = [[category:HAS LOGO]] |
− | | {{infoboxRow | + | | noimage = {{missing logo}}[[category:NO LOGO]] |
− | + | }}</div> <!-- Zapira .img --><div class="text" | |
− | + | >{{Contact | |
− | + | | name = {{#if:{{{localname|{{{local name|{{{name}}}}}}}}}|{{{localname|{{{local name|{{{name}}}}}}}}}|{{{name|{{FULLPAGENAME}}}}}}} | |
− | + | | street = {{{street|{{{street address|}}}}}} | |
− | + | | town = {{{town|}}} | |
+ | | website = {{{website|}}} | ||
+ | | email = {{{email|}}} | ||
+ | | email 2 = {{{email 2|}}} | ||
+ | | telephone = {{{telephone|}}} | ||
+ | | fax = {{{fax|}}} | ||
+ | | save = TRUE | ||
+ | }}{{#set:localname={{#if:{{{localname|{{{local name|{{{name}}}}}}}}}|{{{localname|{{{local name|{{{name}}}}}}}}}|{{{name|{{FULLPAGENAME}}}}}}}}}{{#if:{{{town|}}} | ||
+ | | {{{ | ||
+ | townName = {{#str:replace|{{{town}}}|^[A-Z][A-Z]-\S+ |}} | ||
+ | | zip = {{#str:replace|{{{town}}}|^([A-Z][A-Z]-\S+) .*$|$1}} | ||
+ | }}}{{#ifeq:{{{town}}}|{{{townName}}}|| | ||
+ | {{#ifeq:{{#str:substr|{{{zip}}}|0|2}}|SI| | ||
+ | {{infoboxRow | ||
+ | | label = Region | ||
+ | | name = Region | ||
+ | | value = {{{region|{{#str:substr|{{{town|}}}|0|4}}}}} | ||
+ | | type = text | ||
+ | | hidden = TRUE | ||
+ | }} | ||
+ | }}{{infoboxRow | ||
+ | | hidden = TRUE | ||
+ | | label = Zip | ||
+ | | name = Zip | ||
+ | | value = {{{zip}}} | ||
+ | | type = hidden | ||
+ | }}{{infoboxRow | ||
+ | | hidden = TRUE | ||
+ | | label = TownName | ||
+ | | name = TownName | ||
+ | | value = {{{townName}}} | ||
+ | | type = hidden | ||
+ | }} | ||
}} | }} | ||
− | }} | + | }}{{infoboxRow |
− | {{infoboxRow | + | | label = Post |
− | | label = Proprietor | + | | hidden = TRUE |
− | | name = Proprietor | + | | name = Post |
− | | value = {{{ | + | | value = {{{town|}}} |
− | | type = link | + | | type = text |
− | }} | + | }}{{infoboxRow |
− | {{infoboxRow | + | | label = Country |
− | | label = | + | | hidden = {{#if:{{{country|}}}||HIDDEN}} |
− | | name = | + | | name = Country |
− | | value = {{{ | + | | value = {{uc:{{{country|si}}}}} |
− | | type = link | + | | type = text |
− | }} | + | }}{{infoboxRowAccounts|accounts={{{accounts|}}}}}{{infoboxRow |
− | {{infoboxRow | + | | label = Proprietor |
− | | label = Managed by | + | | name = Proprietor |
− | | name = | + | | value = {{{proprietor|}}} |
− | | value = {{{ | + | | type = link |
− | | type = link | + | }}{{infoboxRow |
− | }} | + | | label = Founded by |
− | {{infoboxRow | + | | name = Founded by |
− | | label = | + | | value = {{{founded by|}}} |
− | | name = | + | | type = link |
− | | value = {{{ | + | }}{{infoboxRow |
− | | type = link | + | | label = |
− | }} | + | | name = Founded by |
− | {{infoboxRow | + | | value = {{{founded by 2|}}} |
+ | | type = link | ||
+ | }}{{infoboxRow | ||
+ | | label = | ||
+ | | name = Founded by | ||
+ | | value = {{{founded by 3|}}} | ||
+ | | type = link | ||
+ | }}{{infoboxRow | ||
+ | | label = | ||
+ | | name = Founded by | ||
+ | | value = {{{founded by 4|}}} | ||
+ | | type = link | ||
+ | }}{{infoboxRow | ||
+ | | label = Managed by | ||
+ | | name = Managed by | ||
+ | | value = {{{managed by|}}} | ||
+ | | type = link | ||
+ | }}{{infoboxRow | ||
+ | | label = | ||
+ | | name = Managed by | ||
+ | | value = {{{managed by 2|}}} | ||
+ | | type = link | ||
+ | }}{{infoboxRow | ||
+ | | label = | ||
+ | | name = Managed by | ||
+ | | value = {{{managed by 3|}}} | ||
+ | | type = link | ||
+ | }}{{infoboxRow | ||
+ | | label = Organised by | ||
+ | | name = Organised by | ||
+ | | value = {{{organised by|{{{organized by|}}}}}} | ||
+ | | type = link | ||
+ | }}{{infoboxRow | ||
+ | | label = | ||
+ | | name = Organised by | ||
+ | | value = {{{organised by 2|{{{organized by 2|}}}}}} | ||
+ | | type = link | ||
+ | }}{{infoboxRow | ||
+ | | label = | ||
+ | | name = Organised by | ||
+ | | value = {{{organised by 3|{{{organized by 3|}}}}}} | ||
+ | | type = link | ||
+ | }}{{infoboxRow | ||
+ | | label = Published by | ||
+ | | name = Published by | ||
+ | | value = {{{published by|}}} | ||
+ | | type = link | ||
+ | }}{{infoboxRow | ||
+ | | label = | ||
+ | | name = Published by | ||
+ | | value = {{{published by 2|}}} | ||
+ | | type = link | ||
+ | }}{{infoboxRow | ||
+ | | label = | ||
+ | | name = Published by | ||
+ | | value = {{{published by 3|}}} | ||
+ | | type = link | ||
+ | }}{{{contacts|}}}<!--{{infoboxRow | ||
| label = Open | | label = Open | ||
| name = | | name = | ||
− | | value = {{{ | + | | value = {{{opening hours|}}} |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
| type = text | | type = text | ||
− | }} | + | }}{{infoboxRow |
− | + | | label = Official hours | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | {{infoboxRow | ||
− | | label = | ||
| name = | | name = | ||
− | | value = {{{ | + | | value = {{{official hours|}}} |
| type = text | | type = text | ||
− | }} | + | }}-->{{infoboxRow |
+ | | label = Frequency | ||
+ | | name = Frequency | ||
+ | | value = {{{frequency|}}} | ||
+ | | type = text | ||
+ | }}{{infoboxRow | ||
+ | | hidden = TRUE | ||
+ | | label = Dates and duration | ||
+ | | name = Dates and duration | ||
+ | | value = {{{dates and duration|}}} | ||
+ | | type = text | ||
+ | }}{{#if:{{{duration weeks|}}}|{{DurationWeeks|weeks={{{duration weeks}}}}} | ||
+ | }}{{infoboxRow | ||
+ | | label = Weeks | ||
+ | | hidden = TRUE | ||
+ | | name = Duration weeks | ||
+ | | value = {{{duration weeks|}}} | ||
+ | | type = text | ||
+ | }}{{#if:{{{festival dates|}}}|{{FestivalDates|{{{festival dates}}}}} | ||
+ | }}{{infoboxRow | ||
+ | | label = Festival dates | ||
+ | | name = Festival dates | ||
+ | | value = {{{festival dates|}}} | ||
+ | | type = splitlast | ||
+ | }}{{infoboxRow | ||
+ | | label = Location | ||
+ | | name = Location | ||
+ | | value = {{{location|}}} | ||
+ | | type = link | ||
+ | }}</div><!-- Zapira .text --><div class="map"> | ||
{{infoboxRow | {{infoboxRow | ||
− | + | | name = Map | |
− | | name = | + | | value = {{{map|}}} |
− | | value = {{{ | + | | type = embed |
− | | type = | + | }}</div><!-- Zapira .infobox -->{{{extra|}}}{{#if:{{{eventsfor|}}} |
− | }} | + | |{{#arr:loop|k=v|{{#arr:split|{{{covering|{{{{{{eventsfor|}}}}}}}}}|,}} |
− | {{{ | + | |each= {{eventsForThisPage|field={{{eventsfor|}}}|page={{{v}}}}} |
− | </ | + | }}|{{eventsForThisPage}}}}{{EUProjectsForThisPage}}}}<!-- Zapira tisti if parser function visoko zgoraj --></div><!-- Zapira contact info -->{{#if:{{#str:test|{{{founded by|}}}|^\s*(Municipality|University|Government|Ministry)[ _]}} |
− | }} | + | |[[Category: Public entities]] |
+ | }}{{#if:{{#str:test|{{PAGENAME}}|^\s*(Municipality|University|Government|Ministry)[ _]}} | ||
+ | |[[Category: Public entities]] | ||
+ | }}</div> |
Latest revision as of 23:24, 4 April 2024
Prekopiraj spodnjo strukturo v izvorno kodo članka. Pri Image vpiši samo ime slike.
{{Infobox | name = | local name = | logo = | image = | street = | town = | region = ''if not in Slovenia'' | country = ''if not in Slovenia'' | website = | email = | telephone = | fax = | founded by = | founded by 2 = | founded by 3 = | founded by 4 = | organised by = | organised by 2 = | organised by 3 = | managed by = | managed by 2 = | managed by 3 = | published by = | published by 2 = | published by 3 = | opening hours = | official hours = | frequency = for festivals | dates and duration = for festivals | duration weeks = for festivals | festival dates = d.m.YY - d.m.YY, for festivals | contacts = {{Contact | name = | role = | street = | town = | website = | email = | email 2 = | telephone = | fax = }}{{Contact | name = | role = | street = | town = | website = | email = | telephone = | fax = }}{{Contact | name = | role = | street = | town = | website = | email = | telephone = | fax = }} | accounts = http://www.twitter.com/twid http://www.facebook.com/fbid http://www.youtube.com/ytid http://www.vimeo.com/vimid http://www.flickr.com/flid http://www.soundcloud.com/scid http://bandcamp.com/bcid http://www.discogs.com/dgid http://www.myspace.com/msid http://www.reverbnation.com/rvid http://www.last.fm/lfmid http://www.behance.net/bhid mastodon:http://www.sonedomain.net/mstid ... }}