Difference between revisions of "Template:Infobox"
(280 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. |
− | < | + | <pre> |
− | ''' | + | {{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 | ||
+ | ... | ||
− | {{{ | + | }} |
− | + | </pre> | |
− | <div> | + | </noinclude>{{#ifeq:{{#this:depth}}|1| |
− | {{infoboxRow| | + | <div class="contact-info" |
− | }}{{infoboxRow|Proprietor|{{{ | + | ><div class="infobox" |
− | }}{{infoboxRow| | + | ><div class="contact-info-title">Contact <small class="track-link">{{#if:{{ISADMIN}}|[[Track:{{PAGENAME}}|Track]]|}}</small></div |
− | }}{{infoboxRow| | + | ><div class="img">{{infoboxImageRow |
− | }}{{infoboxRow| | + | | label = |
− | }}{{infoboxRow| | + | | name = image- |
− | }}{{infoboxRow| | + | | value = {{{image|}}} |
− | }}{{infoboxRow| | + | | type = image |
− | }}{{infoboxRow| | + | | hasimage = [[category:HAS IMAGE]] |
− | }}{{infoboxRow|Open|{{{ | + | | noimage = {{missing image}}[[category:NO IMAGE]] |
− | </div> | + | }}{{infoboxImageRow |
− | </div> | + | | label = |
− | </ | + | | name = logo |
+ | | value = {{{logo|{{{localname|{{{local name|{{{name|{{FULLPAGENAME}}}}}}}}}}} (logo).svg}}} | ||
+ | | type = image | ||
+ | | hasimage = [[category:HAS LOGO]] | ||
+ | | 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 | ||
+ | | label = Post | ||
+ | | hidden = TRUE | ||
+ | | name = Post | ||
+ | | value = {{{town|}}} | ||
+ | | type = text | ||
+ | }}{{infoboxRow | ||
+ | | label = Country | ||
+ | | hidden = {{#if:{{{country|}}}||HIDDEN}} | ||
+ | | name = Country | ||
+ | | value = {{uc:{{{country|si}}}}} | ||
+ | | type = text | ||
+ | }}{{infoboxRowAccounts|accounts={{{accounts|}}}}}{{infoboxRow | ||
+ | | label = Proprietor | ||
+ | | name = Proprietor | ||
+ | | value = {{{proprietor|}}} | ||
+ | | type = link | ||
+ | }}{{infoboxRow | ||
+ | | label = Founded by | ||
+ | | name = Founded by | ||
+ | | value = {{{founded by|}}} | ||
+ | | type = link | ||
+ | }}{{infoboxRow | ||
+ | | label = | ||
+ | | name = Founded by | ||
+ | | 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 | ||
+ | | name = | ||
+ | | value = {{{opening hours|}}} | ||
+ | | type = text | ||
+ | }}{{infoboxRow | ||
+ | | label = Official hours | ||
+ | | name = | ||
+ | | value = {{{official hours|}}} | ||
+ | | 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 | ||
+ | | name = Map | ||
+ | | value = {{{map|}}} | ||
+ | | type = embed | ||
+ | }}</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 ... }}