Difference between revisions of "Template:Subsidiepartner menu"
From Dashboard samenwerking Wijchen
(2 intermediate revisions by the same user not shown) | |||
Line 20: | Line 20: | ||
-->{{#ifingroup:user | -->{{#ifingroup:user | ||
|<div class="btn-group btn-block noprint" style="margin-bottom:15px;"> | |<div class="btn-group btn-block noprint" style="margin-bottom:15px;"> | ||
− | <div class="btn" style="min-width:125px;">{{Formlink button sw |Letter=A |Form=Subsidiepartner A |Text=Basisgegevens |Steps={{int:Steps in | + | <div class="btn" style="min-width:125px;">{{Formlink button sw |Letter=A |Form=Subsidiepartner A |Text=Basisgegevens |Steps={{int:Steps in SA}} |
|Class= {{Check ifexists |1={{ROOTPAGENAME}} |Yes=borderbottom-green |No=borderbottom-red }} | |Class= {{Check ifexists |1={{ROOTPAGENAME}} |Yes=borderbottom-green |No=borderbottom-red }} | ||
}}<!-- | }}<!-- | ||
-->{{Samenwerking menu view|1={{ROOTPAGENAME}}}}</div> | -->{{Samenwerking menu view|1={{ROOTPAGENAME}}}}</div> | ||
− | <div class="btn" style="min-width:125px;">{{Formlink button sw |Letter=B |Form=Subsidiepartner B |Subpage=B |Text=Subsidieregime |Steps={{int:Steps in | + | <div class="btn" style="min-width:125px;">{{Formlink button sw |Letter=B |Form=Subsidiepartner B |Subpage=B |Text=Subsidieregime |Steps={{int:Steps in SB}} |
|Class= {{Check ifexists |1={{ROOTPAGENAME}}/B |Yes=borderbottom-green |No=borderbottom-red }} | |Class= {{Check ifexists |1={{ROOTPAGENAME}}/B |Yes=borderbottom-green |No=borderbottom-red }} | ||
}}<!-- | }}<!-- | ||
-->{{Samenwerking menu view|1={{ROOTPAGENAME}}/B}}</div> | -->{{Samenwerking menu view|1={{ROOTPAGENAME}}/B}}</div> | ||
− | <div class="btn" style="min-width:125px;">{{Formlink button sw |Letter=C |Form=Subsidiepartner C |Subpage=C |Text=Contactgegevens |Steps={{int:Steps in | + | <div class="btn" style="min-width:125px;">{{Formlink button sw |Letter=C |Form=Subsidiepartner C |Subpage=C |Text=Contactgegevens |Steps={{int:Steps in SC}} |
|Class= {{Check ifexists |1={{ROOTPAGENAME}}/C |Yes=borderbottom-green |No=borderbottom-red }} | |Class= {{Check ifexists |1={{ROOTPAGENAME}}/C |Yes=borderbottom-green |No=borderbottom-red }} | ||
}}<!-- | }}<!-- | ||
-->{{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=$ | + | |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:$ | + | -->{{#ifeq:{{#arraysize:$sp menu D years}}| 0 |
− | |{{#vardefine:@ | + | |{{#vardefine:@sp menu D year | {{CURRENTYEAR}} }} |
− | |{{#vardefine:@ | + | |{{#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:@ | + | <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 }} | ||
}}<!-- | }}<!-- | ||
Line 53: | Line 55: | ||
--> | --> | ||
− | <div class="btn" style="min-width:125px;">{{Formlink button sw |Letter=E |Form=Subsidiepartner E |Subpage=E |Text=Kansen en risico’s |Steps={{int:Steps in | + | <div class="btn" style="min-width:125px;">{{Formlink button sw |Letter=E |Form=Subsidiepartner E |Subpage=E |Text=Kansen en risico’s |Steps={{int:Steps in SE}} |
|Class= {{Check ifexists |1={{ROOTPAGENAME}}/E |Yes=borderbottom-green |No=borderbottom-red }} | |Class= {{Check ifexists |1={{ROOTPAGENAME}}/E |Yes=borderbottom-green |No=borderbottom-red }} | ||
}}<!-- | }}<!-- | ||
-->{{Samenwerking menu view|1={{ROOTPAGENAME}}/E}}</div> | -->{{Samenwerking menu view|1={{ROOTPAGENAME}}/E}}</div> | ||
− | <div class="btn" style="min-width:125px;">{{Formlink button sw |Letter=F |Form=Subsidiepartner F |Subpage=F |Text=Governance |Steps={{int:Steps in | + | <div class="btn" style="min-width:125px;">{{Formlink button sw |Letter=F |Form=Subsidiepartner F |Subpage=F |Text=Governance |Steps={{int:Steps in SF}} |
|Class= {{Check ifexists |1={{ROOTPAGENAME}}/F |Yes=borderbottom-green |No=borderbottom-red }} | |Class= {{Check ifexists |1={{ROOTPAGENAME}}/F |Yes=borderbottom-green |No=borderbottom-red }} | ||
}}<!-- | }}<!-- | ||
-->{{Samenwerking menu view|1={{ROOTPAGENAME}}/F}}</div> | -->{{Samenwerking menu view|1={{ROOTPAGENAME}}/F}}</div> | ||
− | <div class="btn" style="min-width:125px;">{{Formlink button sw |Letter=G |Form=Subsidiepartner G |Subpage=G |Text=Proces |Steps={{int:Steps in | + | <div class="btn" style="min-width:125px;">{{Formlink button sw |Letter=G |Form=Subsidiepartner G |Subpage=G |Text=Proces |Steps={{int:Steps in SG}} |
|Class= {{Check ifexists |1={{ROOTPAGENAME}}/G |Yes=borderbottom-green |No=borderbottom-red }} | |Class= {{Check ifexists |1={{ROOTPAGENAME}}/G |Yes=borderbottom-green |No=borderbottom-red }} | ||
}}<!-- | }}<!-- | ||
-->{{Samenwerking menu view|1={{ROOTPAGENAME}}/G}}</div> | -->{{Samenwerking menu view|1={{ROOTPAGENAME}}/G}}</div> | ||
− | <div class="btn" style="min-width:125px;">{{Formlink button sw |Letter=H |Form=Subsidiepartner H |Subpage=H |Text=Bibliotheek |Steps={{int:Steps in | + | <div class="btn" style="min-width:125px;">{{Formlink button sw |Letter=H |Form=Subsidiepartner H |Subpage=H |Text=Bibliotheek |Steps={{int:Steps in SH}} |
|Class= {{Check ifexists |1={{ROOTPAGENAME}}/H |Yes=borderbottom-green |No=borderbottom-red }} | |Class= {{Check ifexists |1={{ROOTPAGENAME}}/H |Yes=borderbottom-green |No=borderbottom-red }} | ||
}}<!-- | }}<!-- | ||
Line 77: | Line 79: | ||
|Subpage= | |Subpage= | ||
|Letter=A | |Letter=A | ||
− | |Steps={{int:Steps in | + | |Steps={{int:Steps in SA}} |
|Class={{Check ifexists |1={{ROOTPAGENAME}} |Yes=borderbottom-green |No=borderbottom-red }} | |Class={{Check ifexists |1={{ROOTPAGENAME}} |Yes=borderbottom-green |No=borderbottom-red }} | ||
|Text=Basisgegevens | |Text=Basisgegevens | ||
Line 84: | Line 86: | ||
|Subpage=B | |Subpage=B | ||
|Letter=B | |Letter=B | ||
− | |Steps={{int:Steps in | + | |Steps={{int:Steps in SB}} |
|Class={{Check ifexists |1={{ROOTPAGENAME}}/B |Yes=borderbottom-green |No=borderbottom-red }} | |Class={{Check ifexists |1={{ROOTPAGENAME}}/B |Yes=borderbottom-green |No=borderbottom-red }} | ||
|Text=Subsidieregime | |Text=Subsidieregime | ||
Line 91: | Line 93: | ||
|Subpage=C | |Subpage=C | ||
|Letter=C | |Letter=C | ||
− | |Steps={{int:Steps in | + | |Steps={{int:Steps in SC}} |
|Class={{Check ifexists |1={{ROOTPAGENAME}}/C |Yes=borderbottom-green |No=borderbottom-red }} | |Class={{Check ifexists |1={{ROOTPAGENAME}}/C |Yes=borderbottom-green |No=borderbottom-red }} | ||
|Text=Contactgegevens | |Text=Contactgegevens | ||
Line 98: | Line 100: | ||
|Subpage=D | |Subpage=D | ||
|Letter=D | |Letter=D | ||
− | |Steps={{int:Steps in | + | |Steps={{int:Steps in SD}} |
|Class={{Check ifexists |1={{ROOTPAGENAME}}/D |Yes=borderbottom-green |No=borderbottom-red }} | |Class={{Check ifexists |1={{ROOTPAGENAME}}/D |Yes=borderbottom-green |No=borderbottom-red }} | ||
|Text=Resultaten | |Text=Resultaten | ||
Line 105: | Line 107: | ||
|Subpage=E | |Subpage=E | ||
|Letter=E | |Letter=E | ||
− | |Steps={{int:Steps in | + | |Steps={{int:Steps in SE}} |
|Class={{Check ifexists |1={{ROOTPAGENAME}}/E |Yes=borderbottom-green |No=borderbottom-red }} | |Class={{Check ifexists |1={{ROOTPAGENAME}}/E |Yes=borderbottom-green |No=borderbottom-red }} | ||
|Text=Kansen en risico’s | |Text=Kansen en risico’s | ||
Line 112: | Line 114: | ||
|Subpage=F | |Subpage=F | ||
|Letter=F | |Letter=F | ||
− | |Steps={{int:Steps in | + | |Steps={{int:Steps in SF}} |
|Class={{Check ifexists |1={{ROOTPAGENAME}}/F |Yes=borderbottom-green |No=borderbottom-red }} | |Class={{Check ifexists |1={{ROOTPAGENAME}}/F |Yes=borderbottom-green |No=borderbottom-red }} | ||
|Text=Governance | |Text=Governance | ||
Line 119: | Line 121: | ||
|Subpage=G | |Subpage=G | ||
|Letter=G | |Letter=G | ||
− | |Steps={{int:Steps in | + | |Steps={{int:Steps in SG}} |
|Class={{Check ifexists |1={{ROOTPAGENAME}}/G |Yes=borderbottom-green |No=borderbottom-red }} | |Class={{Check ifexists |1={{ROOTPAGENAME}}/G |Yes=borderbottom-green |No=borderbottom-red }} | ||
|Text=Proces | |Text=Proces | ||
Line 126: | Line 128: | ||
|Subpage=H | |Subpage=H | ||
|Letter=H | |Letter=H | ||
− | |Steps={{int:Steps in | + | |Steps={{int:Steps in SH}} |
|Class={{Check ifexists |1={{ROOTPAGENAME}}/H |Yes=borderbottom-green |No=borderbottom-red }} | |Class={{Check ifexists |1={{ROOTPAGENAME}}/H |Yes=borderbottom-green |No=borderbottom-red }} | ||
|Text=Bibliotheek | |Text=Bibliotheek |
Latest revision as of 09:49, 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.