Sjabloon:Projecten: verschil tussen versies

 
(28 tussenliggende versies door 3 gebruikers niet weergegeven)
Regel 1: Regel 1:
 
<noinclude>
 
<noinclude>
 
[[Category:EMont core]]
 
[[Category:EMont core]]
  +
[[Category:EMont core protected]]
 
This is the "Projecten" template.
 
This is the "Projecten" template.
 
It should be called in the following format:
 
It should be called in the following format:
Regel 7: Regel 8:
 
|Supercontext=
 
|Supercontext=
 
|Heading=
 
|Heading=
  +
|Program priority=
 
|Project type=
 
|Project type=
  +
|Show info=
 
}}
 
}}
 
</pre>
 
</pre>
Regel 14: Regel 17:
 
{{#arraymap:{{{Supercontext|}}}|,|@@@@|{{#set:Supercontext=@@@@}}}}
 
{{#arraymap:{{{Supercontext|}}}|,|@@@@|{{#set:Supercontext=@@@@}}}}
 
{{#set:Semantic title={{{Heading|}}}}}
 
{{#set:Semantic title={{{Heading|}}}}}
  +
{{DISPLAYTITLE:{{{Heading|}}}}}
 
{{#set:Heading={{{Heading|}}}}}
 
{{#set:Heading={{{Heading|}}}}}
 
{{#set:Heading nl={{{Heading|}}}}}
 
{{#set:Heading nl={{{Heading|}}}}}
{{#set:Project type={{{Project type|}}}}}
+
{{#set:Program priority={{#if: {{{Program priority|}}} | {{{Program priority|}}} | 5 - very high}}}}}}
  +
{{#arraymap:{{{Project type|}}}|,|@@@@|{{#set:Project type=@@@@}}}}
 
{{#vardefine:varPaginanaam|{{PAGENAME}}}}
 
{{#vardefine:varPaginanaam|{{PAGENAME}}}}
 
{{#set:Model link={{#var:varPaginanaam}}}}
 
{{#set:Model link={{#var:varPaginanaam}}}}
 
</div>
 
</div>
== Projecten ==
+
{{#ifeq: {{{Show info|}}}|Nee||
  +
{{#ifexpr: {{#expr: {{#ask: [[Category:Project]] [[Supercontext::{{PAGENAME}}]] | format=count}} or {{#if: {{{Project type|}}}|1|0}} }} |
  +
== Projects ==
   
{{#arraymap:{{{Project type|}}}|,|@@@@|
+
{{New projects|Project type={{{Project type|}}}}}
{{#switch: @@@@
+
 
| Standaard = {{New project|Form=Project|Text=Nieuw 'traditioneel' project}}
+
{{#ask: [[Category:Project]] [[Supercontext::{{PAGENAME}}]]
| SSM = {{New project|Form=Project SSM|Text=Nieuw SSM-project}}
+
| ?Self=Project
  +
<!-- | ?Name=Project title    self geeft nu ook de leesbare, semantic title weer, waarmee dit veld overbodig is geworden -->
  +
| ?Start date=Start date
  +
| ?End date=End date
  +
| ?Summary=Summary
  +
| mainlabel=-
  +
| limit=500
  +
| format=datatables
 
}}
 
}}
 
}}
 
}}
  +
{{#ifexpr: {{#ask: [[Category:Projecten]] [[Supercontext::{{PAGENAME}}]] | format=count}} > 0 |
  +
== Programmes ==
   
  +
{{#ifexpr: {{#ask: [[Category:Projecten]] [[Supercontext::{{PAGENAME}}]] [[Program priority::5 - very high]] | format=count}} > 0 |
  +
=== Core programmes ===
   
{{#ask: [[Category:Project]] [[Supercontext::{{PAGENAME}}]]
+
{{#ask: [[Category:Projecten]] [[Supercontext::{{PAGENAME}}]] [[Program priority::5 - very high]]
| ?Self=Project
 
| ?Name=Naam
 
| ?Start date=Startdatum
 
| ?End date=Einddatum
 
| ?Summary=Samenvatting
 
| mainlabel=-
 
 
| limit=500
 
| limit=500
 
| format=datatables
 
| format=datatables
  +
}}
 
}}
 
}}
   
{{#ifexpr: {{#ask: [[Category:Projecten]] [[Supercontext::{{PAGENAME}}]] | format=count}} > 0 |
+
=== All programmes ===
== Onderzoeksprogramma's ==
 
   
 
{{#ask: [[Category:Projecten]] [[Supercontext::{{PAGENAME}}]]
 
{{#ask: [[Category:Projecten]] [[Supercontext::{{PAGENAME}}]]
  +
| ?Program priority=Priority
  +
| sort=Program priority
  +
| order=desc
 
| limit=500
 
| limit=500
 
| format=datatables
 
| format=datatables
 
}}
 
}}
 
}}
 
}}
  +
}} <!-- end if Show info -->
 
[[Category:Projecten]]
 
[[Category:Projecten]]
 
</includeonly>
 
</includeonly>

Huidige versie van 13 nov 2016 om 15:40

This is the "Projecten" template. It should be called in the following format:

{{Projecten
|Supercontext=
|Heading=
|Program priority=
|Project type=
|Show info=
}}

Edit the page to see the template text.