Difference between revisions of "Template:Infobox"

From Culture.si
 
(240 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.
*[[Template:Infobox]]
+
<pre>
*[[Template:InfoboxRow]]
+
{{Infobox
*[[Template:Contact]]
+
| 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
 +
...
 +
 
 +
}}
 +
</pre>
 
</noinclude>{{#ifeq:{{#this:depth}}|1|
 
</noinclude>{{#ifeq:{{#this:depth}}|1|
<table class="infobox">
+
<div class="contact-info"
{{infoboxRow
+
><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|{{FULLPAGENAME}}.jpg}}}
+
| label  =
| type    = image
+
| name    = image-
}}
+
| value  = {{{image|}}}
{{Contact
+
| type    = image
| name      = {{{name|{{FULLPAGENAME}}}}}
+
| hasimage = [[category:HAS IMAGE]]
| street    = {{{street|}}}
+
| noimage = {{missing image}}[[category:NO IMAGE]]
| town      = {{{town|}}}
+
}}{{infoboxImageRow
| website  = {{{website|}}}
+
| label  =
| email    = {{{email|}}}
+
| name    = logo
| telephone = {{{telephone|}}}
+
| value  = {{{logo|{{{localname|{{{local name|{{{name|{{FULLPAGENAME}}}}}}}}}}} (logo).svg}}}
| fax      = {{{fax|}}}
+
| type    = image
| save      = TRUE
+
| hasimage = [[category:HAS LOGO]]
}}
+
| noimage = {{missing logo}}[[category:NO LOGO]]
{{#if:{{{town|}}}
+
}}</div> <!-- Zapira .img --><div class="text"
| {{infoboxRow
+
>{{Contact
  | label =  
+
| name      = {{#if:{{{localname|{{{local name|{{{name}}}}}}}}}|{{{localname|{{{local name|{{{name}}}}}}}}}|{{{name|{{FULLPAGENAME}}}}}}}
  | name  = Region
+
| street    = {{{street|{{{street address|}}}}}}
  | value = {{#sub:{{{town}}}|0|4}}
+
| town      = {{{town|}}}
  | display =
+
| website  = {{{website|}}}
  | type  = text
+
| 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
 
| 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 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
...

}}