Difference between revisions of "Template:Infobox"
(47 intermediate revisions by 4 users not shown) | |||
Line 75: | Line 75: | ||
http://www.last.fm/lfmid | http://www.last.fm/lfmid | ||
http://www.behance.net/bhid | http://www.behance.net/bhid | ||
+ | mastodon:http://www.sonedomain.net/mstid | ||
... | ... | ||
}} | }} | ||
− | </pre></noinclude>{{#ifeq:{{#this:depth}}|1| | + | </pre> |
− | <div class="contact-info"> | + | </noinclude>{{#ifeq:{{#this:depth}}|1| |
− | <div class="contact-info-title">Contact | + | <div class="contact-info" |
− | {{infoboxImageRow | + | ><div class="infobox" |
− | | label = | + | ><div class="contact-info-title">Contact <small class="track-link">{{#if:{{ISADMIN}}|[[Track:{{PAGENAME}}|Track]]|}}</small></div |
− | | name = image- | + | ><div class="img">{{infoboxImageRow |
− | | value = {{{image|}}} | + | | label = |
− | | type = image | + | | name = image- |
− | | hasimage = [[category:HAS IMAGE]] | + | | value = {{{image|}}} |
− | | noimage = {{missing image}}[[category:NO IMAGE]] | + | | type = image |
+ | | hasimage = [[category:HAS IMAGE]] | ||
+ | | noimage = {{missing image}}[[category:NO IMAGE]] | ||
}}{{infoboxImageRow | }}{{infoboxImageRow | ||
− | | label = | + | | label = |
− | | name = logo | + | | name = logo |
− | | value = {{{logo|{{{localname|{{{local name|{{{name|{{FULLPAGENAME}}}}}}}}}}} (logo).svg}}} | + | | value = {{{logo|{{{localname|{{{local name|{{{name|{{FULLPAGENAME}}}}}}}}}}} (logo).svg}}} |
− | | type = image | + | | type = image |
− | | hasimage = [[category:HAS LOGO]] | + | | hasimage = [[category:HAS LOGO]] |
− | | noimage = {{missing logo}}[[category:NO LOGO]] | + | | noimage = {{missing logo}}[[category:NO LOGO]] |
− | }}{{Contact | + | }}</div> <!-- Zapira .img --><div class="text" |
− | | name = {{#if:{{{localname|{{{local name|{{{name}}}}}}}}}|{{{localname|{{{local name|{{{name}}}}}}}}}|{{{name|{{FULLPAGENAME}}}}}}} | + | >{{Contact |
− | | street = {{{street|{{{street address|}}}}}} | + | | name = {{#if:{{{localname|{{{local name|{{{name}}}}}}}}}|{{{localname|{{{local name|{{{name}}}}}}}}}|{{{name|{{FULLPAGENAME}}}}}}} |
− | | town = {{{town|}}} | + | | street = {{{street|{{{street address|}}}}}} |
− | | website = {{{website|}}} | + | | town = {{{town|}}} |
− | | email = {{{email|}}} | + | | website = {{{website|}}} |
− | | email 2 = {{{email 2|}}} | + | | email = {{{email|}}} |
− | | telephone = {{{telephone|}}} | + | | email 2 = {{{email 2|}}} |
− | | fax = {{{fax|}}} | + | | telephone = {{{telephone|}}} |
− | | save = TRUE | + | | fax = {{{fax|}}} |
+ | | save = TRUE | ||
}}{{#set:localname={{#if:{{{localname|{{{local name|{{{name}}}}}}}}}|{{{localname|{{{local name|{{{name}}}}}}}}}|{{{name|{{FULLPAGENAME}}}}}}}}}{{#if:{{{town|}}} | }}{{#set:localname={{#if:{{{localname|{{{local name|{{{name}}}}}}}}}|{{{localname|{{{local name|{{{name}}}}}}}}}|{{{name|{{FULLPAGENAME}}}}}}}}}{{#if:{{{town|}}} | ||
| {{{ | | {{{ | ||
townName = {{#str:replace|{{{town}}}|^[A-Z][A-Z]-\S+ |}} | townName = {{#str:replace|{{{town}}}|^[A-Z][A-Z]-\S+ |}} | ||
| zip = {{#str:replace|{{{town}}}|^([A-Z][A-Z]-\S+) .*$|$1}} | | zip = {{#str:replace|{{{town}}}|^([A-Z][A-Z]-\S+) .*$|$1}} | ||
− | }}} | + | }}}{{#ifeq:{{{town}}}|{{{townName}}}|| |
− | |||
{{#ifeq:{{#str:substr|{{{zip}}}|0|2}}|SI| | {{#ifeq:{{#str:substr|{{{zip}}}|0|2}}|SI| | ||
{{infoboxRow | {{infoboxRow | ||
− | + | | label = Region | |
− | + | | name = Region | |
− | + | | value = {{{region|{{#str:substr|{{{town|}}}|0|4}}}}} | |
− | + | | type = text | |
+ | | hidden = TRUE | ||
}} | }} | ||
}}{{infoboxRow | }}{{infoboxRow | ||
− | + | | hidden = TRUE | |
− | + | | label = Zip | |
− | + | | name = Zip | |
− | + | | value = {{{zip}}} | |
− | + | | type = hidden | |
}}{{infoboxRow | }}{{infoboxRow | ||
− | + | | hidden = TRUE | |
− | + | | label = TownName | |
− | + | | name = TownName | |
− | + | | value = {{{townName}}} | |
− | + | | type = hidden | |
}} | }} | ||
}} | }} | ||
}}{{infoboxRow | }}{{infoboxRow | ||
− | | label = Post | + | | label = Post |
− | | hidden = TRUE | + | | hidden = TRUE |
− | | name = Post | + | | name = Post |
− | | value = {{{town|}}} | + | | value = {{{town|}}} |
− | + | | type = text | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | | type = text | ||
}}{{infoboxRow | }}{{infoboxRow | ||
− | | label = Proprietor | + | | label = Country |
− | | name = Proprietor | + | | hidden = {{#if:{{{country|}}}||HIDDEN}} |
− | | value = {{{proprietor|}}} | + | | name = Country |
− | | type = link | + | | value = {{uc:{{{country|si}}}}} |
+ | | type = text | ||
+ | }}{{infoboxRowAccounts|accounts={{{accounts|}}}}}{{infoboxRow | ||
+ | | label = Proprietor | ||
+ | | name = Proprietor | ||
+ | | value = {{{proprietor|}}} | ||
+ | | type = link | ||
}}{{infoboxRow | }}{{infoboxRow | ||
− | | label = Founded by | + | | label = Founded by |
− | | name = Founded by | + | | name = Founded by |
− | | value = {{{founded by|}}} | + | | value = {{{founded by|}}} |
− | | type = link | + | | type = link |
}}{{infoboxRow | }}{{infoboxRow | ||
− | | label = | + | | label = |
− | | name = Founded by | + | | name = Founded by |
− | | value = {{{founded by 2|}}} | + | | value = {{{founded by 2|}}} |
− | | type = link | + | | type = link |
}}{{infoboxRow | }}{{infoboxRow | ||
− | | label = | + | | label = |
− | | name = Founded by | + | | name = Founded by |
− | | value = {{{founded by 3|}}} | + | | value = {{{founded by 3|}}} |
− | | type = link | + | | type = link |
}}{{infoboxRow | }}{{infoboxRow | ||
− | | label = | + | | label = |
− | | name = Founded by | + | | name = Founded by |
− | | value = {{{founded by 4|}}} | + | | value = {{{founded by 4|}}} |
− | | type = link | + | | type = link |
}}{{infoboxRow | }}{{infoboxRow | ||
− | | label = Managed by | + | | label = Managed by |
− | | name = Managed by | + | | name = Managed by |
− | | value = {{{managed by|}}} | + | | value = {{{managed by|}}} |
− | | type = link | + | | type = link |
}}{{infoboxRow | }}{{infoboxRow | ||
− | | label = | + | | label = |
− | | name = Managed by | + | | name = Managed by |
− | | value = {{{managed by 2|}}} | + | | value = {{{managed by 2|}}} |
− | | type = link | + | | type = link |
}}{{infoboxRow | }}{{infoboxRow | ||
− | | label = | + | | label = |
− | | name = Managed by | + | | name = Managed by |
− | | value = {{{managed by 3|}}} | + | | value = {{{managed by 3|}}} |
− | | type = link | + | | type = link |
}}{{infoboxRow | }}{{infoboxRow | ||
− | | label = Organised by | + | | label = Organised by |
− | | name = Organised by | + | | name = Organised by |
− | | value = {{{organised by|{{{organized by|}}}}}} | + | | value = {{{organised by|{{{organized by|}}}}}} |
− | | type = link | + | | type = link |
}}{{infoboxRow | }}{{infoboxRow | ||
− | | label = | + | | label = |
− | | name = Organised by | + | | name = Organised by |
− | | value = {{{organised by 2|{{{organized by 2|}}}}}} | + | | value = {{{organised by 2|{{{organized by 2|}}}}}} |
− | | type = link | + | | type = link |
}}{{infoboxRow | }}{{infoboxRow | ||
− | | label = | + | | label = |
− | | name = Organised by | + | | name = Organised by |
− | | value = {{{organised by 3|{{{organized by 3|}}}}}} | + | | value = {{{organised by 3|{{{organized by 3|}}}}}} |
− | | type = link | + | | type = link |
}}{{infoboxRow | }}{{infoboxRow | ||
− | | label = Published by | + | | label = Published by |
− | | name = Published by | + | | name = Published by |
− | | value = {{{published by|}}} | + | | value = {{{published by|}}} |
− | | type = link | + | | type = link |
}}{{infoboxRow | }}{{infoboxRow | ||
− | | label = | + | | label = |
− | | name = Published by | + | | name = Published by |
− | | value = {{{published by 2|}}} | + | | value = {{{published by 2|}}} |
− | | type = link | + | | type = link |
}}{{infoboxRow | }}{{infoboxRow | ||
− | | label = | + | | label = |
− | | name = Published by | + | | name = Published by |
− | | value = {{{published by 3|}}} | + | | value = {{{published by 3|}}} |
− | | type = link | + | | type = link |
− | }}<!--{{infoboxRow | + | }}{{{contacts|}}}<!--{{infoboxRow |
| label = Open | | label = Open | ||
| name = | | name = | ||
Line 225: | Line 229: | ||
| type = text | | type = text | ||
}}-->{{infoboxRow | }}-->{{infoboxRow | ||
− | | label = Frequency | + | | label = Frequency |
− | | name = Frequency | + | | name = Frequency |
− | | value = {{{frequency|}}} | + | | value = {{{frequency|}}} |
− | | type = text | + | | 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 | }}{{infoboxRow | ||
− | + | | label = Weeks | |
− | + | | hidden = TRUE | |
− | + | | name = Duration weeks | |
− | + | | value = {{{duration weeks|}}} | |
− | + | | type = text | |
− | + | }}{{#if:{{{festival dates|}}}|{{FestivalDates|{{{festival dates}}}}} | |
− | | label = Weeks | ||
− | | hidden = TRUE | ||
− | | name = Duration weeks | ||
− | | value = {{{duration weeks|}}} | ||
− | | type = text | ||
− | }}{{#if:{{{festival dates|}}}|{{FestivalDates|{{{festival dates}}}}} | ||
− | |||
− | |||
− | |||
− | |||
}}{{infoboxRow | }}{{infoboxRow | ||
− | | label = | + | | label = Festival dates |
− | | name = | + | | name = Festival dates |
− | | value = {{{ | + | | value = {{{festival dates|}}} |
− | | type = | + | | type = splitlast |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
}}{{infoboxRow | }}{{infoboxRow | ||
+ | | label = Location | ||
+ | | name = Location | ||
+ | | value = {{{location|}}} | ||
+ | | type = link | ||
+ | }}</div><!-- Zapira .text --><div class="map"> | ||
+ | {{infoboxRow | ||
| name = Map | | name = Map | ||
| value = {{{map|}}} | | value = {{{map|}}} | ||
| type = embed | | type = embed | ||
− | }}</ | + | }}</div><!-- Zapira .infobox -->{{{extra|}}}{{#if:{{{eventsfor|}}} |
− | {{{extra|}}} | + | |{{#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]] |
− | </div> | + | }}{{#if:{{#str:test|{{PAGENAME}}|^\s*(Municipality|University|Government|Ministry)[ _]}} |
− | + | |[[Category: Public entities]] | |
− | {{#if:{{#str:test|{{{founded by|}}}|^\s*(Municipality|University|Government|Ministry)[ _]}} | + | }}</div> |
− | |[[Category: Public entities]] | ||
− | }} | ||
− | {{#if:{{#str:test|{{PAGENAME}}|^\s*(Municipality|University|Government|Ministry)[ _]}} | ||
− | |[[Category: Public entities]] | ||
− | }} |
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 ... }}