Difference between revisions of "Template:Residency"

From Culture.si
 
(18 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:{{#switch:{{lc:{{#var:get|eventsCategory|}}}}
+
|{{lc:{{{category1|}}}}}=TRUE
      |{{lc:{{{category|}}}}}=TRUE
+
|{{lc:{{{category2|}}}}}=TRUE
      |{{lc:{{{category1|}}}}}=TRUE
+
|{{lc:{{{category3|}}}}}=TRUE
      |{{lc:{{{category2|}}}}}=TRUE
+
|{{lc:{{{category4|}}}}}=TRUE
      |{{lc:{{{category3|}}}}}=TRUE
+
|{{lc:{{{category5|}}}}}=TRUE
      |{{lc:{{{category4|}}}}}=TRUE
+
|{{lc:{{{category6|}}}}}=TRUE
      |{{lc:{{{category5|}}}}}=TRUE
+
|{{lc:{{{category7|}}}}}=TRUE
      |{{lc:{{{category6|}}}}}=TRUE
+
|=TRUE
      |{{lc:{{{category7|}}}}}=TRUE
+
}}|<div class="residency"><div class="timing">{{ListEventTimingMonth
      |=TRUE
+
|start={{{from|}}}
      }}|
+
|end={{{to|}}}
<div class="residency"><div class="timing">{{#if:{{{to|}}}
+
}}</div><div class="artists">{{CommaListLinks
|{{#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|}}}}}
 
}}</div><div class="artist">{{CommaListLinks
 
 
|1={{{artist|MISSING ARTIST}}}
 
|1={{{artist|MISSING ARTIST}}}
 
|2={{{artist2|}}}
 
|2={{{artist2|}}}
Line 23: Line 20:
 
|4={{{artist4|}}}
 
|4={{{artist4|}}}
 
}}</div>
 
}}</div>
<div class="article">
+
<div class="articles">{{MaybeLink
{{MaybeLink|{{{article|}}}}}
+
|{{{article|}}}}}{{MaybeLink
{{MaybeLink|{{{article2|}}}}}
+
|{{{article2|}}}}}</div>
</div>
 
 
<div class="description">{{{text|}}}</div>
 
<div class="description">{{{text|}}}</div>
<div class="website">
+
<div class="links">{{MaybeExternal
{{MaybeExternal|{{{website|}}}|CV}}
+
|{{{website|}}}|CV}}{{MaybeExternal
{{MaybeExternal|{{{website 2|}}}|About}}
+
|{{{website 2|}}}|About}}{{MaybeExternal
{{MaybeExternal|{{{website 3|}}}|More info}}
+
|{{{website 3|}}}|More info}}{{MaybeExternal
{{MaybeExternal|{{{website 4|}}}|Project}}
+
|{{{website 4|}}}|Project}}{{MaybeExternal
{{MaybeExternal|{{{website 5|}}}|C.si}}
+
|{{{website 5|}}}|C.si}}</div></div>{{#var:inc|eventsCount}}|}}|}}|}}
</div>{{#var:inc|eventsCount}}
 
    |}}
 
  |}}
 
|}}
 

Latest revision as of 22:50, 13 April 2023

Nov 2024