Difference between revisions of "Template:Residency"

From Culture.si
 
(19 intermediate revisions by the same user 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
<tr>
 
<td>{{#if:{{{to|}}}
 
|{{#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|{{{to|}}}}}}} {{#timel:Y|{{{to|}}}}}
 
|{{#timel:F Y|{{{from|}}}}}
 
}}</td>
 
<td>{{CommaListLinks
 
 
|1={{{artist|MISSING ARTIST}}}
 
|1={{{artist|MISSING ARTIST}}}
 
|2={{{artist2|}}}
 
|2={{{artist2|}}}
 
|3={{{artist3|}}}
 
|3={{{artist3|}}}
 
|4={{{artist4|}}}
 
|4={{{artist4|}}}
}}{{#if:{{{article|}}}
+
}}</div>
|&#32;([[{{{article}}}]]{{#if:{{{article2|}}}
+
<div class="articles">{{MaybeLink
|, [[{{{article2}}}]]}})}}
+
|{{{article|}}}}}{{MaybeLink
{{#if:{{{text|}}}{{{website|}}}|
+
|{{{article2|}}}}}</div>
<div class="event-description">{{{text}}}
+
<div class="description">{{{text|}}}</div>
{{#if:{{{website|}}}|[{{{website}}} CV]}}
+
<div class="links">{{MaybeExternal
{{#if:{{{website 2|}}}|[{{{website 2}}} About]}}
+
|{{{website|}}}|CV}}{{MaybeExternal
{{#if:{{{website 3|}}}|[{{{website 3}}} More info]}}
+
|{{{website 2|}}}|About}}{{MaybeExternal
{{#if:{{{website 4|}}}|[{{{website 4}}} Project]}}
+
|{{{website 3|}}}|More info}}{{MaybeExternal
{{#if:{{{website 5|}}}|[{{{website 5}}} C.si]}}
+
|{{{website 4|}}}|Project}}{{MaybeExternal
</div></td></tr>}}{{#var:inc|eventsCount}}
+
|{{{website 5|}}}|C.si}}</div></div>{{#var:inc|eventsCount}}|}}|}}|}}
    |}}
 
  |}}
 
|}}
 

Latest revision as of 22:50, 13 April 2023

Nov 2024