Difference between revisions of "Template:EUProjectsForThisPageSlo"

From Culture.si
(Created page with "{{#arr:dataloop |{{#data:select | = EUProject.* | #where = EUProject.Producer={{#cast:ref|{{{page|{{PAGENAME}}}}}|db}} or EUProject.Department={{#cast:ref|{{{page|{{PAGENA...")
 
Line 2: Line 2:
 
|{{#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={{#cast:ref|{{{page|{{SUBPAGENAME}}}}}|db}} or EUProject.Department={{#cast:ref|{{{page|{{PAGENAME}}}}}|db}}
 
   | #orderby = EUProject.Year DESC
 
   | #orderby = EUProject.Year DESC
 
}}
 
}}
 
| first = <div class="contact-info-title">[[EU projekti|EU projekti]]</div><ul class="eu-projects">
 
| first = <div class="contact-info-title">[[EU projekti|EU projekti]]</div><ul class="eu-projects">
| each = <li>{{#if:{{{Url}}}|[{{{Url}}} {{{Name_slo}}}]|{{{Name_slo}}}}}, {{{Year}}}{{#ifeq:{{{Department_slo}}}|{{#title:pagenamek|{{PAGENAME}}}}||, [[{{{Department_slo}}}|{{#title:pagename|{{{Department_slo}}}}}]]}}
+
| each = <li>{{#if:{{{Url}}}|[{{{Url}}} {{{Name_slo}}}]|{{{Name_slo}}}}}, {{{Year}}}{{#ifeq:{{{Department_slo}}}|{{#title:pagenamek|{{SUBPAGENAME}}}}||, [[{{{Department_slo}}}|{{#title:pagename|{{{Department_slo}}}}}]]}}
{{#if:{{{Ccp}}}|<br>[{{{Ccp}}} Povzetek projekta]}}</li>
+
{{#if:{{{Ccp}}}|<br>[{{#str:replace|{{{Ccp}}}|english/||}} Povzetek projekta]}}</li>
 
| last = </ul>
 
| last = </ul>
 
}}
 
}}

Revision as of 17:43, 2 April 2014