Difference between revisions of "Template:Infobox"

From Culture.si
m (1 revision: import dev changes)
 
(121 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>
<div class="contact-info">
+
</noinclude>{{#ifeq:{{#this:depth}}|1|
<div class="contact-info-title">Contact info</div><table class="infobox">
+
<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|}}}
| telephone = {{{telephone|}}}
+
| email    = {{{email|}}}
| fax      = {{{fax|}}}
+
| email 2    = {{{email 2|}}}
| save      = TRUE
+
| telephone = {{{telephone|}}}
 +
| 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|}}}
|{{infoboxRow
+
| {{{
  | label = Region
+
  townName = {{#str:replace|{{{town}}}|^[A-Z][A-Z]-\S+ |}}
  | name  = Region
+
| zip = {{#str:replace|{{{town}}}|^([A-Z][A-Z]-\S+) .*$|$1}}
  | value = {{{region|{{#custom:sub|{{{town|}}}|0|4}}}}}
+
  }}}{{#ifeq:{{{town}}}|{{{townName}}}||
  | type  = text
+
    {{#ifeq:{{#str:substr|{{{zip}}}|0|2}}|SI|
}}}}{{infoboxRow
+
      {{infoboxRow
| label = Post
+
      | label = Region
| hidden = TRUE
+
      | name  = Region
| name  = Post
+
      | value = {{{region|{{#str:substr|{{{town|}}}|0|4}}}}}
| value = {{{town|}}}
+
      | type  = text
| 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 = Country
+
| label = Post
| hidden = {{#if:{{{country|}}}||HIDDEN}}
+
| hidden = TRUE
| name  = Country
+
| name  = Post
| value = {{uc:{{{country|si}}}}}
+
| 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 = &nbsp;
+
| label = &nbsp;
| name  = Founded by
+
| name  = Founded by
| value = {{{founded by 2|}}}
+
| value = {{{founded by 2|}}}
| type  = link
+
| type  = link
 
}}{{infoboxRow
 
}}{{infoboxRow
| label = &nbsp;
+
| label = &nbsp;
| name  = Founded by
+
| name  = Founded by
| value = {{{founded by 3|}}}
+
| 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 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 = &nbsp;
+
| label = &nbsp;
| name  = Managed by
+
| name  = Managed by
| value = {{{managed by 2|}}}
+
| value = {{{managed by 2|}}}
| type  = link
+
| type  = link
 
}}{{infoboxRow
 
}}{{infoboxRow
| label = &nbsp;
+
| label = &nbsp;
| 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 = &nbsp;
+
| label = &nbsp;
| 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 = &nbsp;
+
| label = &nbsp;
| 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 = &nbsp;
+
| label = &nbsp;
| name  = Published by
+
| name  = Published by
| value = {{{published by 2|}}}
+
| value = {{{published by 2|}}}
| type  = link
+
| type  = link
}}{{infoboxRow
 
| label = &nbsp;
 
| name  = Published by
 
| value = {{{published by 3|}}}
 
| type  = link
 
 
}}{{infoboxRow
 
}}{{infoboxRow
 +
| label = &nbsp;
 +
| name  = Published by
 +
| value = {{{published by 3|}}}
 +
| type  = link
 +
}}{{{contacts|}}}<!--{{infoboxRow
 
| label = Open
 
| label = Open
 
| name  =  
 
| name  =  
Line 179: Line 224:
 
| type  = text
 
| type  = text
 
}}{{infoboxRow
 
}}{{infoboxRow
| label = Frequency
+
| label = Official hours
| name  = Frequency
+
| name  =  
| value = {{{frequency|}}}
+
| 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
 
}}{{infoboxRow
| label = Dates and duration
+
| label = Weeks
| name  = Frequency
+
| hidden = TRUE
| value = {{{dates and duration|}}}
+
| name  = Duration weeks
| type  = text
+
| value = {{{duration weeks|}}}
 +
| type  = text
 +
}}{{#if:{{{festival dates|}}}|{{FestivalDates|{{{festival dates}}}}}
 
}}{{infoboxRow
 
}}{{infoboxRow
| label = Weeks
+
| label = Festival dates
| hidden = TRUE
+
| name  = Festival dates
| name  = Duration weeks
+
| value = {{{festival dates|}}}
| value = {{{duration weeks|}}}
+
| type  = splitlast
| type  = text
 
 
}}{{infoboxRow
 
}}{{infoboxRow
| label = Location
+
| label = Location
| name  = Location
+
| name  = Location
| value = {{{location|}}}
+
| value = {{{location|}}}
| type  = link
+
| type  = link
}}{{{contacts|}}}{{infoboxRow
+
}}</div><!-- Zapira .text --><div class="map">
 +
{{infoboxRow
 
   | name  = Map
 
   | name  = Map
 
   | value = {{{map|}}}
 
   | value = {{{map|}}}
 
   | type  = embed
 
   | type  = embed
}}{{infoboxRow
+
}}</div><!-- Zapira .infobox -->{{{extra|}}}{{#if:{{{eventsfor|}}}
  | name  = Webshot
+
|{{#arr:loop|k=v|{{#arr:split|{{{covering|{{{{{{eventsfor|}}}}}}}}}|,}}
  | value = File:{{FULLPAGENAME}} (website).jpg
+
|each= {{eventsForThisPage|field={{{eventsfor|}}}|page={{{v}}}}}
  | type  = image
+
}}|{{eventsForThisPage}}}}{{EUProjectsForThisPage}}}}<!-- Zapira tisti if parser function visoko zgoraj --></div><!-- Zapira contact info -->{{#if:{{#str:test|{{{founded by|}}}|^\s*(Municipality|University|Government|Ministry)[ _]}}
}}</table>
+
|[[Category: Public entities]]
{{{extra|}}}
+
}}{{#if:{{#str:test|{{PAGENAME}}|^\s*(Municipality|University|Government|Ministry)[ _]}}
{{eventsForThisPage}}
+
|[[Category: Public entities]]
</div>
+
}}</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
...

}}