Difference between revisions of "Template:EventsForThisPage"

From Culture.si
 
(18 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{{fld=Event.{{ucfirst:{{{field|Related}}}}}}}}
+
{{{fld=Event.{{ucfirst:{{{field|Related}}}}}}}}{{{pg={{{page|}}}}}}{{#arr:dataloop
{{{pg={{{page|}}}}}}
 
{{#arr:dataloop
 
 
|{{#data:select
 
|{{#data:select
 
  | Event.#
 
  | Event.#
Line 8: Line 6:
 
| first = <div class="contact-info-title">{{#if:{{{1|}}}|<h2>{{{1}}}</h2>|
 
| first = <div class="contact-info-title">{{#if:{{{1|}}}|<h2>{{{1}}}</h2>|
 
{{#ifeq:{{{field}}}|country
 
{{#ifeq:{{{field}}}|country
|{{#title:link|:Culture.si:Events/all/all/{{{pg}}}||Events in {{{pg|}}}}}
+
|{{#title:link|Search_Events?country={{{pg}}}||Events in {{{pg|}}}}}
|[[:Culture.si:Events|Events {{#if:{{{pg|}}}| {{{pg|}}}|abroad}}]]
+
|[[Search_Events|Events {{#if:{{{pg|}}}| {{{pg|}}}|abroad}}]]
 
}}}}
 
}}}}
</div>}}
+
</div>}}<div>
 
<div>
 
 
{{#arr:dataloop
 
{{#arr:dataloop
 
|{{#data:select
 
|{{#data:select
Line 35: Line 31:
 
| first = <ul class="events">
 
| first = <ul class="events">
 
| each = {{#eval:wrap|{{{template|ListEvent}}}}}
 
| each = {{#eval:wrap|{{{template|ListEvent}}}}}
| last = </ul><a href="#" class="show-more-events">Show more</a>
+
| last = </ul>{{#eval:html|<a class="show-more-events more_go">Show more</a>}}
}}
+
}}{{#arr:dataloop
 
 
{{#arr:dataloop
 
 
|{{#data:select
 
|{{#data:select
 
  | Description=Event.Description
 
  | Description=Event.Description
Line 58: Line 52:
 
| first = <div class="events-title">Past Events</div><ul class="events">
 
| first = <div class="events-title">Past Events</div><ul class="events">
 
| each = {{#eval:wrap|{{{template|ListEvent}}}}}
 
| each = {{#eval:wrap|{{{template|ListEvent}}}}}
| last = {{#eval:html|<a href="#" class="show-more-events">Show more</a></ul>}}}}
+
| last = </ul>{{#eval:html|<a class="show-more-events more_go">Show more</a>}}}}</div>
 
</div>
 

Latest revision as of 20:12, 27 February 2023