Difference between revisions of "Template:Infobox"

From Culture.si
Line 93: Line 93:
 
| hasimage = [[category:HAS IMAGE]]
 
| hasimage = [[category:HAS IMAGE]]
 
| noimage = {{missing image}}[[category:NO IMAGE]]
 
| noimage = {{missing image}}[[category:NO IMAGE]]
}}
+
}}{{infoboxImageRow
{{infoboxImageRow
 
 
| label  =
 
| label  =
 
| name    = logo  
 
| name    = logo  
Line 121: Line 120:
 
   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:{{{town}}}|{{{townName}}}||
 
 
     {{#ifeq:{{#str:substr|{{{zip}}}|0|2}}|SI|
 
     {{#ifeq:{{#str:substr|{{{zip}}}|0|2}}|SI|
 
       {{infoboxRow
 
       {{infoboxRow
Line 131: Line 129:
 
      | hidden = TRUE
 
      | hidden = TRUE
 
       }}
 
       }}
     }}
+
     }}{{infoboxRow
    {{infoboxRow
 
 
    | hidden = TRUE
 
    | hidden = TRUE
 
    | label = Zip
 
    | label = Zip
Line 138: Line 135:
 
    | value = {{{zip}}}
 
    | value = {{{zip}}}
 
    | type  = hidden
 
    | type  = hidden
     }}
+
     }}{{infoboxRow
    {{infoboxRow
 
 
    | hidden = TRUE
 
    | hidden = TRUE
 
    | label = TownName
 
    | label = TownName
Line 147: Line 143:
 
     }}
 
     }}
 
   }}
 
   }}
}}
+
}}{{infoboxRow
{{infoboxRow
 
 
| label = Post
 
| label = Post
 
| hidden = TRUE
 
| hidden = TRUE
Line 154: Line 149:
 
| value = {{{town|}}}
 
| value = {{{town|}}}
 
| type  = text
 
| type  = text
}}
+
}}{{infoboxRow
{{infoboxRow
 
 
| label = Country
 
| label = Country
 
| hidden = {{#if:{{{country|}}}||HIDDEN}}
 
| hidden = {{#if:{{{country|}}}||HIDDEN}}
Line 161: Line 155:
 
| value = {{uc:{{{country|si}}}}}
 
| value = {{uc:{{{country|si}}}}}
 
| type  = text
 
| type  = text
}}
+
}}{{infoboxRow
{{infoboxRow
 
 
| label = Proprietor
 
| label = Proprietor
 
| name  = Proprietor
 
| name  = Proprietor
 
| value = {{{proprietor|}}}
 
| value = {{{proprietor|}}}
 
| type  = link
 
| 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
Line 255: Line 235:
 
| value = {{{official hours|}}}
 
| value = {{{official hours|}}}
 
| type  = text
 
| type  = text
}}-->
+
}}-->{{infoboxRow
{{infoboxRow
 
 
| label = Frequency
 
| label = Frequency
 
| name  = Frequency
 
| name  = Frequency
 
| value = {{{frequency|}}}
 
| value = {{{frequency|}}}
 
| type  = text
 
| type  = text
}}
+
}}{{infoboxRow
{{infoboxRow
 
 
| hidden = TRUE
 
| hidden = TRUE
 
| label = Dates and duration
 
| label = Dates and duration
Line 268: Line 246:
 
| value = {{{dates and duration|}}}
 
| value = {{{dates and duration|}}}
 
| type  = text
 
| type  = text
}}
+
}}{{#if:{{{duration weeks|}}}|{{DurationWeeks|weeks={{{duration weeks}}}}}
{{#if:{{{duration weeks|}}}|{{DurationWeeks|weeks={{{duration weeks}}}}}}}
+
}}{{infoboxRow
{{infoboxRow
 
 
| label = Weeks
 
| label = Weeks
 
| hidden = TRUE
 
| hidden = TRUE
Line 276: Line 253:
 
| value = {{{duration weeks|}}}
 
| value = {{{duration weeks|}}}
 
| type  = text
 
| type  = text
}}
+
}}{{#if:{{{festival dates|}}}|{{FestivalDates|{{{festival dates}}}}}
{{#if:{{{festival dates|}}}|{{FestivalDates|{{{festival dates}}}}}}}
+
}}{{infoboxRow
{{infoboxRow
 
 
| label = Festival dates
 
| label = Festival dates
 
| name  = Festival dates
 
| name  = Festival dates
 
| value = {{{festival dates|}}}
 
| value = {{{festival dates|}}}
 
| type  = split
 
| type  = split
}}
+
}}{{infoboxRow
{{infoboxRow
 
 
| label = Location
 
| label = Location
 
| name  = Location
 
| name  = Location
 
| value = {{{location|}}}
 
| value = {{{location|}}}
 
| type  = link
 
| type  = link
}}
+
}}{{{contacts|}}}{{#if:{{{accounts|}}}|
{{{contacts|}}}
 
{{#if:{{{accounts|}}}|
 
 
<div class="ibr">
 
<div class="ibr">
 
<div class="heading">Online accounts:</div>
 
<div class="heading">Online accounts:</div>
Line 305: Line 278:
 
}}
 
}}
 
[{{{0}}} {{{2}}}]
 
[{{{0}}} {{{2}}}]
}}
+
}}</div>}}</div> <!-- Zapira .text -->
</div>
 
}}
 
</div> <!-- Zapira .text -->
 
  
 
<div class="map">
 
<div class="map">
Line 318: Line 288:
 
</div>
 
</div>
 
</div> <!-- Zapira .infobox -->
 
</div> <!-- Zapira .infobox -->
 
 
{{{extra|}}}
 
{{{extra|}}}
 
{{#if:{{{eventsfor|}}}
 
{{#if:{{{eventsfor|}}}
Line 328: Line 297:
 
{{EUProjectsForThisPage}}
 
{{EUProjectsForThisPage}}
 
}} <!-- Zapira tisti if parser function visoko zgoraj -->
 
}} <!-- Zapira tisti if parser function visoko zgoraj -->
 
+
</div><!-- Zapira contact info -->{{#if:{{#str:test|{{{founded by|}}}|^\s*(Municipality|University|Government|Ministry)[ _]}}
</div><!-- Zapira contact info -->
 
 
 
{{#if:{{#str:test|{{{founded by|}}}|^\s*(Municipality|University|Government|Ministry)[ _]}}
 
 
|[[Category: Public entities]]
 
|[[Category: Public entities]]
}}
+
}}{{#if:{{#str:test|{{PAGENAME}}|^\s*(Municipality|University|Government|Ministry)[ _]}}
 
 
{{#if:{{#str:test|{{PAGENAME}}|^\s*(Municipality|University|Government|Ministry)[ _]}}
 
 
|[[Category: Public entities]]
 
|[[Category: Public entities]]
 
}}
 
}}

Revision as of 20:54, 23 February 2021

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
...

}}