Difference between revisions of "Template:Residency"

From Culture.si
Line 3: Line 3:
 
   {{#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:{{coallesce
+
     {{#if:{{#switch:{{lc:{{#var:get|eventsCategory|}}}}
      |1={{#if:{{#var:get|eventsCategory|}}||TRUE}}
+
      |{{lc:{{{category|}}}}}=TRUE
      |2={{#ifeq:{{lc:{{#var:get|eventsCategory|}}}}|{{lc:{{{category|}}}}}|TRUE}}
+
       |{{lc:{{{category1|}}}}}=TRUE
       |3={{#ifeq:{{lc:{{#var:get|eventsCategory|}}}}|{{lc:{{{category1|}}}}}|TRUE}}
+
       |{{lc:{{{category2|}}}}}=TRUE
       |4={{#ifeq:{{lc:{{#var:get|eventsCategory|}}}}|{{lc:{{{category2|}}}}}|TRUE}}
+
       |{{lc:{{{category3|}}}}}=TRUE
       |5={{#ifeq:{{lc:{{#var:get|eventsCategory|}}}}|{{lc:{{{category3|}}}}}|TRUE}}
+
       |{{lc:{{{category4|}}}}}=TRUE
       |6={{#ifeq:{{lc:{{#var:get|eventsCategory|}}}}|{{lc:{{{category4|}}}}}|TRUE}}
+
       |{{lc:{{{category5|}}}}}=TRUE
       |7={{#ifeq:{{lc:{{#var:get|eventsCategory|}}}}|{{lc:{{{category5|}}}}}|TRUE}}
+
       |{{lc:{{{category6|}}}}}=TRUE
       |8={{#ifeq:{{lc:{{#var:get|eventsCategory|}}}}|{{lc:{{{category6|}}}}}|TRUE}}
+
       |{{lc:{{{category7|}}}}}=TRUE
       |9={{#ifeq:{{lc:{{#var:get|eventsCategory|}}}}|{{lc:{{{category7|}}}}}|TRUE}}
+
      |=TRUE
       }}
+
       }}|
    |
+
<div class="residency"><div class="timing">{{#if:{{{to|}}}
<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|}}}}}
 
|{{#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|}}}}}
 
|{{#timel:F Y|{{{from|}}}}}
}}</td>
+
}}</div><div class="artist">{{CommaListLinks
<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="article">
|, [[{{{article2}}}]]}})}}
+
{{MaybeLink|{{{article|}}}}}
{{#if:{{{text|}}}{{{website|}}}|
+
{{MaybeLink|{{{article2|}}}}}
<div class="event-description">{{{text}}}
+
</div>
{{#if:{{{website|}}}|[{{{website}}} CV]}}
+
<div class="description">{{{text|}}}</div>
{{#if:{{{website 2|}}}|[{{{website 2}}} About]}}
+
<div class="website">
{{#if:{{{website 3|}}}|[{{{website 3}}} More info]}}
+
{{MaybeExternal|{{{website|}}}|CV}}
{{#if:{{{website 4|}}}|[{{{website 4}}} Project]}}
+
{{MaybeExternal|{{{website 2|}}}|About}}
{{#if:{{{website 5|}}}|[{{{website 5}}} C.si]}}
+
{{MaybeExternal|{{{website 3|}}}|More info}}
</div></td></tr>}}{{#var:inc|eventsCount}}
+
{{MaybeExternal|{{{website 4|}}}|Project}}
 +
{{MaybeExternal|{{{website 5|}}}|C.si}}
 +
</div>{{#var:inc|eventsCount}}
 
     |}}
 
     |}}
 
   |}}
 
   |}}
 
|}}
 
|}}

Revision as of 19:24, 13 April 2023

November 2024