Difference between revisions of "Template:Residency"

From Culture.si
 
(52 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{#ifexpr:{{#var:get|eventsLimit|1000}}>{{#var:get|eventsCount|0}}
+
{{#ifexpr:{{#var:get|eventsLimit|1000}} > {{#var:get|eventsCount|0}}
|  
+
|{{#ifexpr:{{#timel:U|{{#var:get|eventsAfter|1 jan 2000}}-1 day}} <= {{#timel:U|{{{to|{{{from|}}}}}}}}
  {{#ifexpr:{{#timel:U|{{#var:get|eventsAfter|1 jan 2000}}-1 day}} <= {{#timel:U|{{{to|{{{from|}}}}}}}}
+
|{{#if:{{#switch:{{lc:{{#var:get|eventsCategory|}}}}
  |
+
|{{lc: {{{category|}}}}}=TRUE
    {{#if:{{coallesce
+
|{{lc:{{{category1|}}}}}=TRUE
      |1={{#if:{{#var:get|eventsCategory|}}||TRUE}}
+
|{{lc:{{{category2|}}}}}=TRUE
      |2={{#ifeq:{{lc:{{#var:get|eventsCategory|}}}}|{{lc:{{{category|}}}}}|TRUE}}
+
|{{lc:{{{category3|}}}}}=TRUE
      |3={{#ifeq:{{lc:{{#var:get|eventsCategory|}}}}|{{lc:{{{category1|}}}}}|TRUE}}
+
|{{lc:{{{category4|}}}}}=TRUE
      |4={{#ifeq:{{lc:{{#var:get|eventsCategory|}}}}|{{lc:{{{category2|}}}}}|TRUE}}
+
|{{lc:{{{category5|}}}}}=TRUE
      |5={{#ifeq:{{lc:{{#var:get|eventsCategory|}}}}|{{lc:{{{category3|}}}}}|TRUE}}
+
|{{lc:{{{category6|}}}}}=TRUE
      |6={{#ifeq:{{lc:{{#var:get|eventsCategory|}}}}|{{lc:{{{category4|}}}}}|TRUE}}
+
|{{lc:{{{category7|}}}}}=TRUE
      |7={{#ifeq:{{lc:{{#var:get|eventsCategory|}}}}|{{lc:{{{category5|}}}}}|TRUE}}
+
|=TRUE
      |8={{#ifeq:{{lc:{{#var:get|eventsCategory|}}}}|{{lc:{{{category6|}}}}}|TRUE}}
+
}}|<div class="residency"><div class="timing">{{ListEventTimingMonth
      |9={{#ifeq:{{lc:{{#var:get|eventsCategory|}}}}|{{lc:{{{category7|}}}}}|TRUE}}
+
|start={{{from|}}}
      }}
+
|end={{{to|}}}
    |
+
}}</div><div class="artists">{{CommaListLinks
<li class="event-item"><span class="event-timing">{{#if:{{{to|}}}
+
|1={{{artist|MISSING ARTIST}}}
|{{#ifeq:{{#timel:Y|{{{from|}}}}}|{{#timel:Y|{{{to|}}}}}|{{#timel:F|{{{from|}}}}}|{{#timel:F Y|{{{from|}}}}}}} {{#ifeq:{{#timel:F Y|{{{from|}}}}}|{{#timel:F Y|{{{to|}}}}}|| to {{#timel:F Y|{{{to|}}}}}}}
+
|2={{{artist2|}}}
|{{#timel:F Y|{{{from|}}}}}
+
|3={{{artist3|}}}
}}</span><br><span class="event-residency">
+
|4={{{artist4|}}}
{{{artist}}}{{#if:{{{artist2|}}}|{{#if:{{{artist3}}}|, | and }}{{{artist2}}}}}{{#if:{{{artist3|}}}| and  {{{artist3}}}}}{{#if:{{{article|}}}|&#32;([[{{{article}}}]]{{#if:{{{article2|}}}|, [[{{{article2}}}]]}})}}</span>{{#if:{{{text|}}}{{{website|}}}|<br><span class="event-description">{{{text}}}
+
}}</div>
{{#if:{{{website|}}}|[{{{website}}} website]}}</span>}}{{#var:inc|eventsCount}}
+
<div class="articles">{{MaybeLink
    |
+
|{{{article|}}}}}{{MaybeLink
    }}
+
|{{{article2|}}}}}</div>
  |  
+
<div class="description">{{{text|}}}</div>
  }}
+
<div class="links">{{MaybeExternal
|  
+
|{{{website|}}}|CV}}{{MaybeExternal
}}
+
|{{{website 2|}}}|About}}{{MaybeExternal
 +
|{{{website 3|}}}|More info}}{{MaybeExternal
 +
|{{{website 4|}}}|Project}}{{MaybeExternal
 +
|{{{website 5|}}}|C.si}}</div></div>{{#var:inc|eventsCount}}|}}|}}|}}

Latest revision as of 22:50, 13 April 2023

Nov 2024