Difference between revisions of "Template:Samenwerking menu"

From Dashboard samenwerking Wijchen
Line 10: Line 10:
 
}}<!--
 
}}<!--
 
-->{{Samenwerking menu view|1={{ROOTPAGENAME}}/B}}</div>
 
-->{{Samenwerking menu view|1={{ROOTPAGENAME}}/B}}</div>
<!--find latest year of which a subpage exists, otherwise make subpage of current year-->
+
<!--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::C Resultaten jaarpagina]]
 
{{#ask:[[Class::C Resultaten jaarpagina]]
 
[[Belongs to cooperation::{{ROOTPAGENAME}}]]
 
[[Belongs to cooperation::{{ROOTPAGENAME}}]]
Line 23: Line 23:
 
|{{#vardefine:@sw menu C year | {{CURRENTYEAR}} }}  
 
|{{#vardefine:@sw menu C year | {{CURRENTYEAR}} }}  
 
|{{#vardefine:@sw menu C year | {{#arrayindex:$sw menu C years|-1}} }}  
 
|{{#vardefine:@sw menu C year | {{#arrayindex:$sw menu C years|-1}} }}  
 +
{{#createpageifnotex:{{ROOTPAGENAME}}/C|<nowiki>{{Samenwerking C-overzicht}}</nowiki>}}
 
}}
 
}}
 
<div class="btn" style="min-width:150px;">{{Formlink button sw |Letter=C| |Subpage=C/{{#var:@sw menu C year}} |Text=Resultaten |Steps={{int:Steps in C}}|Form=Samenwerking C-jaar
 
<div class="btn" style="min-width:150px;">{{Formlink button sw |Letter=C| |Subpage=C/{{#var:@sw menu C year}} |Text=Resultaten |Steps={{int:Steps in C}}|Form=Samenwerking C-jaar

Revision as of 17:33, 9 March 2018