Difference between revisions of "Template:EUProjectsForThisPage"

From Culture.si
 
(32 intermediate revisions by 6 users not shown)
Line 1: Line 1:
 +
<br><br><br>
 
{{#arr:dataloop
 
{{#arr:dataloop
|{{#data:select
+
|{{#data:select
  | = EUProject.*
+
| = EUProject.*
  | #where = EUProject.Producer={{#cast:ref|{{{page|{{PAGENAME}}}}}|db}} or EUProject.Department={{#cast:ref|{{{page|{{PAGENAME}}}}}|db}}
+
| #where = EUProject.Producer='{{{page|{{PAGENAME}}}}}' or EUProject.Department='{{{page|{{PAGENAME}}}}}'|
  | #orderby = EUProject.Year DESC
+
| #orderby = EUProject.Year DESC }}
}}
+
| first = <div class="contact-info-title">[[EU funding|EU funded projects <small>(Culture, MEDIA)</small>]]</div><ul class="eu-projects">
| first = <div class="contact-info-title">EU funded projects</div><ul class="eu-projects">
+
| each = <li>{{#if:{{{Url}}}|[{{{Url}}} {{{Name}}}]|{{{Name}}}}}, {{{Year}}}{{#if:{{{Department}}}|{{#ifeq:{{{Department}}}|{{PAGENAME}}||, [[{{{Department}}}]]}}|{{#ifeq:{{{Producer}}}|{{PAGENAME}}||, [[{{{Producer}}}]]}}}}
| each = <li><b>{{#if:{{{Url}}}|[{{{Url}}} {{{Name}}}]|{{{Name}}}}}</b><br> {{{Year}}}, {{#ifeq:{{{Role}}}|P|project partner|project lead}} {{#ifeq:{{{Department}}}|{{#title:pagenamek|{{PAGENAME}}}}||: [[{{{Department}}}|{{#title:pagename|{{{Department}}}}}]]}}
+
{{#if:{{{Ccp}}}|<br>[{{{Ccp}}} Project summary]}}</li>
{{#ifeq:{{{Producer}}}|{{#title:pagenamek|{{PAGENAME}}}}|and production|, produced by [[{{{Producer}}}|{{#title:pagename|{{{Producer}}}}}]]}}{{#if:{{{Ccp}}}|[{{{Ccp}} More info on CCP]}}
+
| last = {{#eval:html|<a href="#" class="show-more-projects">Show more</a></ul>}}}}
| last = </ul>
 
}}
 

Latest revision as of 17:37, 3 March 2021