Difference between revisions of "Template:Infobox"

From Culture.si
 
(236 intermediate revisions by 10 users not shown)
Line 1: Line 1:
<noinclude>
+
<noinclude>Prekopiraj spodnjo strukturo v izvorno kodo članka.  Pri '''Image''' vpiši samo ime slike.
<noinclude>Prekopiraj spodnjo strukturo v izvorno kodo članka.  Pri '''Image''' vpiši samo ime slike.<pre>
+
<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''
| founder     =
+
| website           =  
| proprietor  =
+
| email             =  
| managed by =  
+
| telephone         =  
| contacts   = {{Contact
+
| 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        =  
 
   | name        =  
 
   | role        =
 
   | role        =
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><table class="infobox" style="background:#eee;border:silver;float:right;clear:right">
+
</pre>
{{infoboxRow
+
</noinclude>{{#ifeq:{{#this:depth}}|1|
| label  =
+
<div class="contact-info"
| name    = image
+
><div class="infobox"
| value  = {{{Image|{{FULLPAGENAME}}.jpg}}}
+
><div class="contact-info-title">Contact <small class="track-link">{{#if:{{ISADMIN}}|[[Track:{{PAGENAME}}|Track]]|}}</small></div
| type    = image
+
><div class="img">{{infoboxImageRow
}}
+
| label  =
{{Contact
+
| name    = image-
| Name     = {{{Name|{{FULLPAGENAME}}}}}
+
| value  = {{{image|}}}
| Street   = {{{Street|}}}
+
| type    = image
| Town     = {{{Town|}}}
+
| hasimage = [[category:HAS IMAGE]]
| Website   = {{{Website|}}}
+
| noimage = {{missing image}}[[category:NO IMAGE]]
| Email     = {{{Email|}}}
+
}}{{infoboxImageRow
| Telephone = {{{Telephone|}}}
+
| label  =
| Fax       = {{{Fax|}}}
+
| name    = logo
| save      = TRUE
+
| value  = {{{logo|{{{localname|{{{local name|{{{name|{{FULLPAGENAME}}}}}}}}}}} (logo).svg}}}
}}
+
| type    = image
{{#if:{{{Town|}}}
+
| hasimage = [[category:HAS LOGO]]
| {{infoboxRow
+
| noimage = {{missing logo}}[[category:NO LOGO]]
  | label =  
+
}}</div> <!-- Zapira .img --><div class="text"
  | name  = Region
+
>{{Contact
  | value = {{#sub:{{{Town}}}|0|4}}
+
| name     = {{#if:{{{localname|{{{local name|{{{name}}}}}}}}}|{{{localname|{{{local name|{{{name}}}}}}}}}|{{{name|{{FULLPAGENAME}}}}}}}
  | display =
+
| 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 = Founder
+
| hidden = {{#if:{{{country|}}}||HIDDEN}}
| name  = Founder
+
| name  = Country
| value = {{{Founder|}}}
+
| 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 = Organizer
+
| value = {{{founded by|}}}
| name  = Organizer
+
| type  = link
| value = {{{Organizer|}}}
+
}}{{infoboxRow
| type  = link
+
| label = &nbsp;
}}
+
| name  = Founded by
{{infoboxRow
+
| value = {{{founded by 2|}}}
 +
| type  = link
 +
}}{{infoboxRow
 +
| label = &nbsp;
 +
| name  = Founded by
 +
| value = {{{founded by 3|}}}
 +
| 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
 
}}
 
{{infoboxRow
 
| label = Location
 
| name  = Location
 
| value = {{{Location|}}}
 
 
| type  = text
 
| type  = text
}}
+
}}{{infoboxRow
{{{Contacts|}}}
+
| label = Official hours
</table>
 
*[[Template:Infobox]]
 
*[[Template:InfoboxRow]]
 
*[[Template:Contact]]
 
</noinclude>{{#ifeq:{{#this:depth}}|1|
 
<table class="infobox">
 
{{infoboxRow
 
| label  =
 
| name    = image
 
| value  = {{{image|{{FULLPAGENAME}}.jpg}}}
 
| type    = image
 
}}
 
{{Contact
 
| name      = {{{name|{{FULLPAGENAME}}}}}
 
| street    = {{{street|}}}
 
| town      = {{{town|}}}
 
| website  = {{{website|}}}
 
| email    = {{{email|}}}
 
| telephone = {{{telephone|}}}
 
| fax      = {{{fax|}}}
 
| save      = TRUE
 
}}
 
{{#if:{{{town|}}}
 
| {{infoboxRow
 
  | label =
 
  | name  = Town
 
  | value = {{{town}}}
 
  | display =
 
  | type  = link
 
  }}
 
| {{infoboxRow
 
  | label =
 
  | name  = Region
 
  | value = {{#sub:{{{town}}}|0|4}}
 
  | display =
 
  | type  = text
 
  }}
 
}}
 
{{infoboxRow
 
| label = Proprietor
 
| name  = Proprietor
 
| value = {{{proprietor|}}}
 
| type  = link
 
}}
 
{{infoboxRow
 
| label = Founder
 
| name  = Founder
 
| value = {{{founder|}}}
 
| type  = link
 
}}
 
{{infoboxRow
 
| label = Managed by
 
| name  = Manager
 
| value = {{{manager|}}}
 
| type  = link
 
}}
 
{{infoboxRow
 
| label = Organizer
 
| name  = Organizer
 
| value = {{{organizer|}}}
 
| type  = link
 
}}
 
{{infoboxRow
 
| label = Open
 
 
| name  =  
 
| name  =  
| value = {{{opening hours|}}}
+
| 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
 +
| 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 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
...

}}