Difference between revisions of "Template:Subsidiepartner menu"

From Dashboard samenwerking Wijchen
Line 32: Line 32:
 
}}<!--
 
}}<!--
 
-->{{Samenwerking menu view|1={{ROOTPAGENAME}}/C}}</div>
 
-->{{Samenwerking menu view|1={{ROOTPAGENAME}}/C}}</div>
<!--find latest year of which a subpage exists, otherwise formlink subpage of current year. Also if yearpages exist but C page not yet, autocreate it.-->
+
<!--
 +
 
 +
// find latest year of which a subpage exists, otherwise formlink subpage of current year. Also if yearpages exist but C page not yet, autocreate it.-->
 
{{#ask:[[Class::D Resultaten jaarpagina]]
 
{{#ask:[[Class::D Resultaten jaarpagina]]
 
[[Belongs to cooperation::{{ROOTPAGENAME}}]]
 
[[Belongs to cooperation::{{ROOTPAGENAME}}]]
Line 39: Line 41:
 
|sort=Year
 
|sort=Year
 
|format=array
 
|format=array
|name=$sw menu D years
+
|name=$sp menu D years
 
}}<!--
 
}}<!--
 
Check number of yearpages. If > 0, set year variable to latest year, otherwise set current year
 
Check number of yearpages. If > 0, set year variable to latest year, otherwise set current year
-->{{#ifeq:{{#arraysize:$sw menu D years}}| 0
+
-->{{#ifeq:{{#arraysize:$sp menu D years}}| 0
|{{#vardefine:@sw menu D year | {{CURRENTYEAR}} }}  
+
|{{#vardefine:@sp menu D year | {{CURRENTYEAR}} }}  
|{{#vardefine:@sw menu D year | {{#arrayindex:$sw menu D years|-1}} }}  
+
|{{#vardefine:@sp menu D year | {{#arrayindex:$sp menu D years|-1}} }}  
 
{{#createpageifnotex:{{ROOTPAGENAME}}/D|<nowiki>{{Subsidiepartner D-overzicht | Delay publication=Yes}}</nowiki>}}
 
{{#createpageifnotex:{{ROOTPAGENAME}}/D|<nowiki>{{Subsidiepartner D-overzicht | Delay publication=Yes}}</nowiki>}}
 
}}
 
}}
<div class="btn" style="min-width:125px;">{{Formlink button sw |Letter=D| |Form=Subsidiepartner |Subpage=D/{{#var:@sw menu D year}} |Text=Resultaten |Steps={{int:Steps in SD}}|Form=Subsidiepartner D-jaar
+
<div class="btn" style="min-width:125px;">{{Formlink button sw |Letter=D| |Form=Subsidiepartner |Subpage=D/{{#var:@sp menu D year}} |Text=Resultaten |Steps={{int:Steps in SD}}|Form=Subsidiepartner D-jaar
 
|Class= {{Check ifexists |1={{ROOTPAGENAME}}/D |Yes=borderbottom-green  |No=borderbottom-red }}  
 
|Class= {{Check ifexists |1={{ROOTPAGENAME}}/D |Yes=borderbottom-green  |No=borderbottom-red }}  
 
}}<!--
 
}}<!--

Revision as of 09:46, 20 April 2020

This is the template Subsidiepartner menu. It should be called in the following way:

{{Subsidiepartner menu
}}

Templates in need of creation/change: - Subsidiepartner D-overzicht - Subsidiepartner D-jaar - Subsidiepartner menu view??


Note

This is a sub template of Template:Subsidiepartner.