Difference between revisions of "Template:Residency"

From Culture.si
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|}}}}
   |
 
    {{#if:{{#switch:{{lc:{{#var:get|eventsCategory|}}}}
 
 
       |{{lc:{{{category|}}}}}=TRUE
 
       |{{lc:{{{category|}}}}}=TRUE
 
       |{{lc:{{{category1|}}}}}=TRUE
 
       |{{lc:{{{category1|}}}}}=TRUE
Line 13: Line 11:
 
       |{{lc:{{{category7|}}}}}=TRUE
 
       |{{lc:{{{category7|}}}}}=TRUE
 
       |=TRUE
 
       |=TRUE
       }}|
+
       }}|<div class="residency">{{#var:inc|eventsCount}}<div class="timing">{{ListEventTimingMonth
<div class="residency"><div class="timing">{{ListEventTimingMonth
 
 
|start={{{from|}}}
 
|start={{{from|}}}
 
|end={{{to|}}}
 
|end={{{to|}}}
Line 32: Line 29:
 
|{{{website 3|}}}|More info}}{{MaybeExternal
 
|{{{website 3|}}}|More info}}{{MaybeExternal
 
|{{{website 4|}}}|Project}}{{MaybeExternal
 
|{{{website 4|}}}|Project}}{{MaybeExternal
|{{{website 5|}}}|C.si}}</div></div>{{#var:inc|eventsCount}}
+
|{{{website 5|}}}|C.si}}</div></div>|}}|}}|}}
    |}}
 
  |}}
 
|}}
 

Revision as of 22:22, 13 April 2023

Nov 2024