Difference between revisions of "Template:Infobox"

From Culture.si
m (organized by in template corrected into organiSed)
 
(224 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              =
| image       =  
+
| local name        =
| street       =  
+
| logo              =  
| town         =  
+
| image             =  
| website     =  
+
| street             =  
| email       =  
+
| town               =
| telephone   =  
+
| region            = ''if not in Slovenia''
| fax         =  
+
| country            = ''if not in Slovenia''
| founded by   =
+
| website           =  
| organised by =
+
| email             =  
| managed by   =  
+
| telephone         =  
| published by =
+
| 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
 
| contacts    = {{Contact
 
   | name        =  
 
   | name        =  
Line 20: Line 40:
 
   | website    =  
 
   | website    =  
 
   | email      =  
 
   | email      =  
 +
  | email 2    =
 
   | telephone  =  
 
   | telephone  =  
 
   | fax        =  
 
   | fax        =  
Line 41: 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>
<table class="infobox">
+
</noinclude>{{#ifeq:{{#this:depth}}|1|
{{infoboxRow
+
<div class="contact-info"
| label  =
+
><div class="infobox"
| name    = image  
+
><div class="contact-info-title">Contact <small class="track-link">{{#if:{{ISADMIN}}|[[Track:{{PAGENAME}}|Track]]|}}</small></div
| value  = {{{image|{{{localname|{{{name|{{FULLPAGENAME}}}}}}}}.jpg}}}
+
><div class="img">{{infoboxImageRow
| type    = image
+
| label  =
}}
+
| name    = image-
{{Contact
+
| value  = {{{image|}}}
| name      = {{{localname|{{{name|{{FULLPAGENAME}}}}}}}}
+
| type    = image
| street    = {{{street|}}}
+
| hasimage = [[category:HAS IMAGE]]
| town      = {{{town|}}}
+
| noimage = {{missing image}}[[category:NO IMAGE]]
| website  = {{{website|}}}
+
}}{{infoboxImageRow
| email    = {{{email|}}}
+
| label  =
| telephone = {{{telephone|}}}
+
| name    = logo
| fax      = {{{fax|}}}
+
| value  = {{{logo|{{{localname|{{{local name|{{{name|{{FULLPAGENAME}}}}}}}}}}} (logo).svg}}}
| save      = TRUE
+
| type    = image
}}
+
| hasimage = [[category:HAS LOGO]]
{{#if:{{{town|}}}
+
| noimage = {{missing logo}}[[category:NO LOGO]]
| {{infoboxRow
+
}}</div> <!-- Zapira .img --><div class="text"
  | label = Region
+
>{{Contact
  | name  = Region
+
| name      = {{#if:{{{localname|{{{local name|{{{name}}}}}}}}}|{{{localname|{{{local name|{{{name}}}}}}}}}|{{{name|{{FULLPAGENAME}}}}}}}
  | value = {{#custom:sub|{{{town|}}}|0|4}}
+
| street    = {{{street|{{{street address|}}}}}}
  | type  = text
+
| 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
{{infoboxRow
+
| label = Post
| label = Proprietor
+
| hidden = TRUE
| name  = Proprietor
+
| name  = Post
| value = {{{proprietor|}}}
+
| value = {{{town|}}}
| type  = link
+
| type  = text
}}
+
}}{{infoboxRow
{{infoboxRow
+
| label = Country
| label = Founded by
+
| hidden = {{#if:{{{country|}}}||HIDDEN}}
| name  = Founded by
+
| name  = Country
| value = {{{founded by|}}}
+
| value = {{uc:{{{country|si}}}}}
| type  = link
+
| type  = text
}}
+
}}{{infoboxRowAccounts|accounts={{{accounts|}}}}}{{infoboxRow
{{infoboxRow
+
| label = Proprietor
| label = Managed by
+
| name  = Proprietor
| name  = Manager
+
| value = {{{proprietor|}}}
| value = {{{manager|}}}
+
| type  = link
| type  = link
+
}}{{infoboxRow
}}
+
| label = Founded by
{{infoboxRow
+
| name  = Founded by
| label = Organized by
+
| value = {{{founded by|}}}
| name  = Organized by
+
| type  = link
| value = {{{organized by|}}}
+
}}{{infoboxRow
| type  = link
+
| label = &nbsp;
}}
+
| name  = Founded by
{{infoboxRow
+
| value = {{{founded by 2|}}}
| label = Published by
+
| type  = link
| name  = Published by
+
}}{{infoboxRow
| value = {{{published by|}}}
+
| label = &nbsp;
| type  = link
+
| name  = Founded by
}}
+
| value = {{{founded by 3|}}}
{{infoboxRow
+
| type  = link
 +
}}{{infoboxRow
 +
| label = &nbsp;
 +
| name  = Founded by
 +
| value = {{{founded by 4|}}}
 +
| type  = link
 +
}}{{infoboxRow
 +
| label = Managed by
 +
| name  = Managed by
 +
| value = {{{managed by|}}}
 +
| type  = link
 +
}}{{infoboxRow
 +
| label = &nbsp;
 +
| name  = Managed by
 +
| value = {{{managed by 2|}}}
 +
| type  = link
 +
}}{{infoboxRow
 +
| label = &nbsp;
 +
| 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 = &nbsp;
 +
| name  = Organised by
 +
| value = {{{organised by 2|{{{organized by 2|}}}}}}
 +
| type  = link
 +
}}{{infoboxRow
 +
| label = &nbsp;
 +
| 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 = &nbsp;
 +
| name  = Published by
 +
| value = {{{published by 2|}}}
 +
| type  = link
 +
}}{{infoboxRow
 +
| label = &nbsp;
 +
| name  = Published by
 +
| value = {{{published by 3|}}}
 +
| type  = link
 +
}}{{{contacts|}}}<!--{{infoboxRow
 
| label = Open
 
| label = Open
 
| name  =  
 
| name  =  
 
| value = {{{opening hours|}}}
 
| value = {{{opening hours|}}}
 
| type  = text
 
| 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
 
{{infoboxRow
| label = Location
+
  | name  = Map
| name  = Location
+
  | value = {{{map|}}}
| value = {{{location|}}}
+
  | type  = embed
| type  = text
+
}}</div><!-- Zapira .infobox -->{{{extra|}}}{{#if:{{{eventsfor|}}}
}}
+
|{{#arr:loop|k=v|{{#arr:split|{{{covering|{{{{{{eventsfor|}}}}}}}}}|,}}
{{{contacts|}}}
+
|each= {{eventsForThisPage|field={{{eventsfor|}}}|page={{{v}}}}}
</table>
+
}}|{{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 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
...

}}