Difference between revisions of "Template:Infobox"

From Culture.si
 
(154 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>
+
<noinclude>Prekopiraj spodnjo strukturo v izvorno kodo članka.  Pri '''Image''' vpiši samo ime slike.
 +
<pre>
 
{{Infobox
 
{{Infobox
 
| name              =
 
| name              =
Line 27: Line 28:
 
| published by 3    =
 
| published by 3    =
 
| opening hours      =
 
| opening hours      =
| frequency          =
+
| official hours    =
| dates and duration =  
+
| frequency          = for festivals
 +
| dates and duration = for festivals
 
| duration weeks    = for festivals
 
| duration weeks    = for festivals
 +
| festival dates    = d.m.YY - d.m.YY, for festivals
 
| contacts    = {{Contact
 
| contacts    = {{Contact
 
   | name        =  
 
   | name        =  
Line 37: Line 40:
 
   | website    =  
 
   | website    =  
 
   | email      =  
 
   | email      =  
 +
  | email 2    =
 
   | telephone  =  
 
   | telephone  =  
 
   | fax        =  
 
   | fax        =  
Line 58: 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>{{#ifeq:{{#this:depth}}|1|
+
</pre>
{{#custom:raw|
+
</noinclude>{{#ifeq:{{#this:depth}}|1|
<div class="social-icons"><div class="twitter icon">
+
<div class="contact-info"
<a href="https://twitter.com/share" class="twitter-share-button" data-via="CultureSi">Tweet</a>
+
><div class="infobox"
</div>
+
><div class="contact-info-title">Contact <small class="track-link">{{#if:{{ISADMIN}}|[[Track:{{PAGENAME}}|Track]]|}}</small></div
<div class="fb icon">
+
><div class="img">{{infoboxImageRow
<div class="fb-like" data-href="{{fullurl:{{FULLPAGENAME}}}}" data-send="false" data-layout="button_count" data-width="90" data-show-faces="false" data-font="tahoma" data-action="recommend"></div>
+
| label  =
</div>
+
| name    = image-
</div>
+
| value  = {{{image|}}}
}}<table class="infobox">
+
| type    = image
{{infoboxImageRow
+
| hasimage = [[category:HAS IMAGE]]
| label  =
+
| noimage = {{missing image}}[[category:NO IMAGE]]
| name    = image
+
}}{{infoboxImageRow
| value  = {{{image}}}
+
| label  =
| type    = image
+
| name    = logo  
| noimage = {{missing image}}[[category:NO IMAGE]]
+
| value  = {{{logo|{{{localname|{{{local name|{{{name|{{FULLPAGENAME}}}}}}}}}}} (logo).svg}}}
}}
+
| type    = image
{{infoboxImageRow
+
| hasimage = [[category:HAS LOGO]]
| label  =
+
| noimage = {{missing logo}}[[category:NO LOGO]]
| name    = logo  
+
}}</div> <!-- Zapira .img --><div class="text"
| value  = {{{logo|{{{localname|{{{local name|{{{name|{{FULLPAGENAME}}}}}}}}}}} (logo).svg}}}
+
>{{Contact
| type    = image
+
| name      = {{#if:{{{localname|{{{local name|{{{name}}}}}}}}}|{{{localname|{{{local name|{{{name}}}}}}}}}|{{{name|{{FULLPAGENAME}}}}}}}
| noimage = {{missing logo}}[[category:NO LOGO]]
+
| street    = {{{street|{{{street address|}}}}}}
}}
+
| town      = {{{town|}}}
{{Contact
+
| website  = {{{website|}}}
| name      = {{#if:{{{localname|{{{local name|{{{name}}}}}}}}}|{{{localname|{{{local name|{{{name}}}}}}}}}|{{{name|{{FULLPAGENAME}}}}}}}
+
| email    = {{{email|}}}
| street    = {{{street|{{{street address|}}}}}}
+
| email 2    = {{{email 2|}}}
| town      = {{{town|}}}
+
| telephone = {{{telephone|}}}
| website  = {{{website|}}}
+
| fax      = {{{fax|}}}
| email    = {{{email|}}}
+
| save      = TRUE
| telephone = {{{telephone|}}}
+
}}{{#set:localname={{#if:{{{localname|{{{local name|{{{name}}}}}}}}}|{{{localname|{{{local name|{{{name}}}}}}}}}|{{{name|{{FULLPAGENAME}}}}}}}}}{{#if:{{{town|}}}
| fax      = {{{fax|}}}
+
| {{{
| save      = TRUE
+
  townName = {{#str:replace|{{{town}}}|^[A-Z][A-Z]-\S+ |}}
}}{{#set:localname={{#if:{{{localname|{{{local name|{{{name}}}}}}}}}|{{{localname|{{{local name|{{{name}}}}}}}}}|{{{name|{{FULLPAGENAME}}}}}}}}}
+
| zip = {{#str:replace|{{{town}}}|^([A-Z][A-Z]-\S+) .*$|$1}}
{{#if:{{{town|}}}
+
  }}}{{#ifeq:{{{town}}}|{{{townName}}}||
| {{infoboxRow
+
    {{#ifeq:{{#str:substr|{{{zip}}}|0|2}}|SI|
  | label = Region
+
      {{infoboxRow
  | name  = Region
+
      | label = Region
  | value = {{{region|{{#custom:sub|{{{town|}}}|0|4}}}}}
+
      | name  = Region
  | type  = text
+
      | 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 = Post
+
| hidden = TRUE
| hidden = TRUE
+
| name  = Post
| name  = Post
+
| value = {{{town|}}}
| value = {{{town|}}}
+
| type  = text
| type  = text
+
}}{{infoboxRow
}}
+
| label = Country
{{infoboxRow
+
| hidden = {{#if:{{{country|}}}||HIDDEN}}
| label = Country
+
| name  = Country
| hidden = {{#if:{{{country|}}}||HIDDEN}}
+
| value = {{uc:{{{country|si}}}}}
| name  = Country
+
| type  = text
| value = {{uc:{{{country|si}}}}}
+
}}{{infoboxRowAccounts|accounts={{{accounts|}}}}}{{infoboxRow
| type  = text
+
| label = Proprietor
}}
+
| name  = Proprietor
{{infoboxRow
+
| value = {{{proprietor|}}}
| label = Proprietor
+
| type  = link
| name  = Proprietor
+
}}{{infoboxRow
| value = {{{proprietor|}}}
+
| label = Founded by
| type  = link
+
| name  = Founded by
}}
+
| value = {{{founded by|}}}
{{infoboxRow
+
| type  = link
| label = Founder
+
}}{{infoboxRow
| name  = Founded by
+
| label = &nbsp;
| value = {{{founded by|}}}
+
| name  = Founded by
| type  = link
+
| value = {{{founded by 2|}}}
}}
+
| type  = link
{{infoboxRow
+
}}{{infoboxRow
| label = &nbsp;
+
| label = &nbsp;
| name  = Founded by
+
| name  = Founded by
| value = {{{founded by 2|}}}
+
| value = {{{founded by 3|}}}
| type  = link
+
| type  = link
}}
+
}}{{infoboxRow
{{infoboxRow
+
| label = &nbsp;
| label = &nbsp;
+
| name  = Founded by
| name  = Founded by
+
| value = {{{founded by 4|}}}
| value = {{{founded by 3|}}}
+
| type  = link
| type  = link
+
}}{{infoboxRow
}}
+
| label = Managed by
{{infoboxRow
+
| name  = Managed by
| label = &nbsp;
+
| value = {{{managed by|}}}
| name  = Founded by
+
| type  = link
| value = {{{founded by 4|}}}
+
}}{{infoboxRow
| type  = link
+
| label = &nbsp;
}}
+
| name  = Managed by
{{infoboxRow
+
| value = {{{managed by 2|}}}
| label = Managed by
+
| type  = link
| name  = Managed by
+
}}{{infoboxRow
| value = {{{managed by|}}}
+
| label = &nbsp;
| type  = link
+
| name  = Managed by
}}
+
| value = {{{managed by 3|}}}
{{infoboxRow
+
| type  = link
| label = &nbsp;
+
}}{{infoboxRow
| name  = Managed by
+
| label = Organised by
| value = {{{managed by 2|}}}
+
| name  = Organised by
| type  = link
+
| value = {{{organised by|{{{organized by|}}}}}}
}}
+
| type  = link
{{infoboxRow
+
}}{{infoboxRow
| label = &nbsp;
+
| label = &nbsp;
| name  = Managed by
+
| name  = Organised by
| value = {{{managed by 3|}}}
+
| value = {{{organised by 2|{{{organized by 2|}}}}}}
| type  = link
+
| type  = link
}}
+
}}{{infoboxRow
{{infoboxRow
+
| label = &nbsp;
| label = Organised by
+
| name  = Organised by
| name  = Organised by
+
| value = {{{organised by 3|{{{organized by 3|}}}}}}
| value = {{{organised by|{{{organized by|}}}}}}
+
| type  = link
| type  = link
+
}}{{infoboxRow
}}
+
| label = Published by
{{infoboxRow
+
| name  = Published by
| label = &nbsp;
+
| value = {{{published by|}}}
| name  = Organised by
+
| type  = link
| value = {{{organised by 2|{{{organized by 2|}}}}}}
+
}}{{infoboxRow
| type  = link
+
| label = &nbsp;
}}
+
| name  = Published by
{{infoboxRow
+
| value = {{{published by 2|}}}
| label = &nbsp;
+
| type  = link
| name  = Organised by
+
}}{{infoboxRow
| value = {{{organised by 3|{{{organized by 3|}}}}}}
+
| label = &nbsp;
| type  = link
+
| name  = Published by
}}
+
| value = {{{published by 3|}}}
{{infoboxRow
+
| type  = link
| label = Published by
+
}}{{{contacts|}}}<!--{{infoboxRow
| name  = Published by
 
| value = {{{published by|}}}
 
| type  = link
 
}}
 
{{infoboxRow
 
| label = &nbsp;
 
| name  = Published by
 
| value = {{{published by 2|}}}
 
| type  = link
 
}}
 
{{infoboxRow
 
| label = &nbsp;
 
| name  = Published by
 
| value = {{{published by 3|}}}
 
| type  = link
 
}}
 
{{infoboxRow
 
 
| label = Open
 
| label = Open
 
| name  =  
 
| name  =  
 
| value = {{{opening hours|}}}
 
| value = {{{opening hours|}}}
 
| type  = text
 
| type  = text
}}
+
}}{{infoboxRow
{{infoboxRow
+
| label = Official hours
| label = Frequency
+
| name  =  
| name  = Frequency
+
| value = {{{official hours|}}}
| value = {{{frequency|}}}
 
| type  = text
 
}}
 
{{infoboxRow
 
| label = Dates and duration
 
| name  = Frequency
 
| value = {{{dates and duration|}}}
 
 
| type  = text
 
| type  = text
}}
+
}}-->{{infoboxRow
{{infoboxRow
+
| label = Frequency
| label = Weeks
+
| name  = Frequency
| hidden = TRUE
+
| value = {{{frequency|}}}
| name  = Duration weeks
+
| type  = text
| value = {{{duration weeks|}}}
+
}}{{infoboxRow
| type  = text
+
| hidden = TRUE
}}
+
| label = Dates and duration
{{infoboxRow
+
| name  = Dates and duration
| label = Location
+
| value = {{{dates and duration|}}}
| name  = Location
+
| type  = text
| value = {{{location|}}}
+
}}{{#if:{{{duration weeks|}}}|{{DurationWeeks|weeks={{{duration weeks}}}}}
| type  = link
+
}}{{infoboxRow
}}
+
| label = Weeks
{{{contacts|}}}
+
| 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  = Map
 
   | value = {{{map|}}}
 
   | value = {{{map|}}}
 
   | type  = embed
 
   | type  = embed
}}
+
}}</div><!-- Zapira .infobox -->{{{extra|}}}{{#if:{{{eventsfor|}}}
 
+
|{{#arr:loop|k=v|{{#arr:split|{{{covering|{{{{{{eventsfor|}}}}}}}}}|,}}
{{infoboxRow
+
|each= {{eventsForThisPage|field={{{eventsfor|}}}|page={{{v}}}}}
  | name  = Webshot
+
}}|{{eventsForThisPage}}}}{{EUProjectsForThisPage}}}}<!-- Zapira tisti if parser function visoko zgoraj --></div><!-- Zapira contact info -->{{#if:{{#str:test|{{{founded by|}}}|^\s*(Municipality|University|Government|Ministry)[ _]}}
  | value = File:{{FULLPAGENAME}} (website).jpg
+
|[[Category: Public entities]]
  | type  = image
+
}}{{#if:{{#str:test|{{PAGENAME}}|^\s*(Municipality|University|Government|Ministry)[ _]}}
}}
+
|[[Category: Public entities]]
</table>
+
}}</div>
}}
 

Latest revision as of 00:24, 5 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
...

}}