Difference between revisions of "Template:EUProjectsForThisPage"
Line 1: | Line 1: | ||
{{#arr:dataloop | {{#arr:dataloop | ||
− | |{{#data:select | + | |{{#data:select |
− | + | | = EUProject.* | |
− | + | | #where = EUProject.Producer='{{{page|{{PAGENAME}}}}}' or EUProject.Department='{{{page|{{PAGENAME}}}}}'| | |
− | + | | #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 funding|EU funded projects <small>(Culture, MEDIA)</small>]]</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>{{#if:{{{Url}}}|[{{{Url}}} {{{Name}}}]|{{{Name}}}}}, {{{Year}}}{{#if:{{{Department}}}|{{#ifeq:{{{Department}}}|{{PAGENAME}}||, [[{{{Department}}}]]}}|{{#ifeq:{{{Producer}}}|{{PAGENAME}}||, [[{{{Producer}}}]]}}}} | + | {{#if:{{{Ccp}}}|<br>[{{{Ccp}}} Project summary]}}</li> |
− | {{#if:{{{Ccp}}}|<br>[{{{Ccp}}} Project summary]}}</li> | + | | last = </ul> |
− | | last = </ul> | ||
}} | }} |