(Zie JIRA-ticket EMT-2014 en EMT-2016.)
Geen bewerkingssamenvatting
Regel 22: Regel 22:
|Imagename=
|Imagename=
|Stakeholder=
|Stakeholder=
|HZ theme=
|HZ Theme=
|SDG=
|SDG=
|Show summary=
|Show summary=
|Show navigation tree=
|Show navigation tree=
|Create process and content pages=
|Show new page button=
|Show new page button=
|Show sub projects=
|Show sub projects=
|Show participants=
|Show participants=
|Show sources=
|Show sources=
|Show references=
|Is homepage=
|Is homepage=
|Show edit button=
|Show edit button=
Regel 51: Regel 51:
{{#vardefine:varTopcontext|{{#var:varPaginanaam}}}}
{{#vardefine:varTopcontext|{{#var:varPaginanaam}}}}
}}
}}
<!-- {{#vardefine:varProjectType|{{{Project type|}}}}} -->
 
<!-- for backward compatitibility, if no Project types are propagated, this might be the right way anyway -->
{{#vardefine:varProjectType|}}
<!-- Ignore Project type, and get the values from this Projecten (Onderzoeksprogramma), i.e. the right way -->
{{#if: {{#var:varProjectType}} | |
{{#vardefine:varProjectType|
{{#vardefine:varProjectType|
{{#ask: [[Category:Projecten]] [[-Supercontext::{{#show: {{#var:varPaginanaam}} | ?Topcontext | link=none}}]]
{{#ask: [[Category:Projecten]] [[-Supercontext::{{#show: {{#var:varPaginanaam}} | ?Topcontext | link=none}}]]
Regel 61: Regel 57:
| ?Project type=
| ?Project type=
}} }}
}} }}
}}
{{#arraymap:{{#var:varProjectType}}|,|@@@@|{{#set:Project type=@@@@}}}}
{{#arraymap:{{#var:varProjectType}}|,|@@@@|{{#set:Project type=@@@@}}}}
{{#set:Document type={{#var:varDocument type|}}}}
{{#set:Theme={{#var:varTheme|}}}}
{{#set:Featured={{{Featured|}}}}}
{{#set:Context type=Situation}}
{{#set:Context type=Situation}}
{{#vardefine:varName|{{#replace:{{#replace:{{#replace:{{#replace:{{{Name|}}}|\|}}|:|-}}|/|-}}|,|;}}}}
{{#vardefine:varName|{{#replace:{{#replace:{{#replace:{{#replace:{{{Name|}}}|\|}}|:|-}}|/|-}}|,|;}}}}
Regel 88: Regel 86:
{{#set:Imagefullurl={{#replace:{{filepath:{{{Imagename|}}}}}|http://localhost|https://projectenportfolio.nl}}}}
{{#set:Imagefullurl={{#replace:{{filepath:{{{Imagename|}}}}}|http://localhost|https://projectenportfolio.nl}}}}
{{#arraymap:{{{Stakeholder|}}}|,|@@@@|{{#set:Stakeholder=@@@@}}}}
{{#arraymap:{{{Stakeholder|}}}|,|@@@@|{{#set:Stakeholder=@@@@}}}}
{{#arraymap:{{{HZ theme|}}}|,|@@@@|{{#set:HZ Theme=@@@@}}}}
{{#arraymap:{{{HZ Theme|}}}|,|@@@@|{{#set:HZ Theme=@@@@}}}}
{{#arraymap:{{{SDG|}}}|,|@@@@|{{#set:SDG=@@@@}}}}
{{#arraymap:{{{SDG|}}}|;|@@@@|{{#set:SDG=@@@@}}}}
{{#set:Show VE button={{{Show VE button|}}}}}
{{#set:Show VE button={{{Show VE button|}}}}}
{{#set:Show sidebar={{#if: {{{Show sidebar|}}}|{{{Show sidebar|}}}|true}}}}
{{#set:Show sidebar={{#if: {{{Show sidebar|}}}|{{{Show sidebar|}}}|true}}}}
{{#set:Show category label={{{Show category label|}}}}}
{{#set:Show category label={{{Show category label|}}}}}
{{#set:Show title={{#if: {{{Show title|}}}|{{{Show title|}}}|true}}}}
{{#set:Show title={{#if: {{{Show title|}}}|{{{Show title|}}}|true}}}}
{{#set:Show references={{#if: {{{Show references|}}}|{{{Show references|}}}|true}}}}
{{#set:Is homepage|{{{Is homepage|}}}}}
{{#set:Is homepage|{{{Is homepage|}}}}}
<!-- {{#arraymap:{{{EMMAccessControl|}}}|,|@@@@|{{#set:EMM access control=@@@@}}}} -->
{{#set:EMM access control|{{{EMM access control|}}}}}
{{#set:EMM access control|{{{EMM access control|}}}}}
{{#set:PR ID={{PAGENAME}} - {{#var:varName}} - {{{Start date|}}}}}
{{#set:PR ID={{PAGENAME}} - {{#var:varName}} - {{{Start date|}}}}}
Regel 101: Regel 99:
{{#set:Model link={{#var:varPaginanaam}}}}
{{#set:Model link={{#var:varPaginanaam}}}}
{{#set:Self={{#var:varPaginanaam}}}} <!-- for semantic title purposes -->
{{#set:Self={{#var:varPaginanaam}}}} <!-- for semantic title purposes -->
{{#vardefine:varAanpak|{{#var:varPaginanaam}} - aanpak}}
{{#vardefine:varResultaten|{{#var:varPaginanaam}} - resultaten}}
</div>{{#ifeq: {{{Show summary|}}}|Nee||{{#vardefine:varSummary|{{#show: {{#var:varPaginanaam}} | ?Summary}}}}{{#var:varSummary}}
</div>{{#ifeq: {{{Show summary|}}}|Nee||{{#vardefine:varSummary|{{#show: {{#var:varPaginanaam}} | ?Summary}}}}{{#var:varSummary}}
{{#if: {{#var:varSummary}}|<br />}}
{{#if: {{#var:varSummary}}|<br />}}
Regel 111: Regel 107:
}} <!-- end Show summary -->
}} <!-- end Show summary -->
{{#if: {{#var:varTemplateAdditionalShow}}|{{ {{#var:varTemplateAdditionalShow}} }}}}
{{#if: {{#var:varTemplateAdditionalShow}}|{{ {{#var:varTemplateAdditionalShow}} }}}}
{{References}}{{#ifeq: {{{Show edit button|}}}|Ja|
{{#ifeq:{{{Show references|}}}|Nee||{{References}}}}
{{#ifeq: {{{Show edit button|}}}|Ja|
{{#if:{{CURRENTLOGGEDUSER}}|
{{#if:{{CURRENTLOGGEDUSER}}|
<div style="text-align: right">
----
----
<div class="formedit">{{#formlink:form={{#var:varDefaultForm}}|link text={{int: EMM Text Project Edit project info}} |link type=button|target={{#var:varPaginanaam}}}}</div></div>
<div class="formedit" style="text-align: right">{{#formlink:form={{#var:varDefaultForm}}|link text={{int: EMM Text Project Edit project info}} |link type=button|target={{#var:varPaginanaam}}}}</div>
}}}}
}}}}
<!-- verhuizen naar een additional-template? voorlopig weglaten ivm KCKT
<!-- verhuizen naar een additional-template? voorlopig weglaten ivm KCKT
Regel 124: Regel 120:
{{#ifeq: {{{Show navigation tree|}}}|Nee||
{{#ifeq: {{{Show navigation tree|}}}|Nee||
== {{int: EMM Text Project Project results and process }} ==
== {{int: EMM Text Project Project results and process }} ==
{{#ifeq: {{{Show new page button|}}}|Nee||{{#if:{{CURRENTLOGGEDUSER}}|<div class="actionbar">{{#formlink:form=Light Context
 
 
{{#vardefine:varNavigationTreeForm|
{{#if: {{#var:varNavigationTreeForm}}|{{#var:varNavigationTreeForm}}|Light Context}}
}}
 
{{#ifeq: {{{Show new page button|}}}|Nee||{{#if:{{CURRENTLOGGEDUSER}}|<div class="actionbar">{{#formlink:form={{#var:varNavigationTreeForm}}
| Light Context[Supercontext]={{#var:varPaginanaam}}
| Light Context[Supercontext]={{#var:varPaginanaam}}
| Light Context[Topcontext]={{#var:varTopcontext}}
| Light Context[Topcontext]={{#var:varTopcontext}}
Regel 137: Regel 139:
| link type=button
| link type=button
}}</div>|}} }}
}}</div>|}} }}
<!-- obsolete, automatic creation of pages is not longer supported: {{{Create process and content pages|}}} = hard Nee -->
{{#emm_navigationtree:root_pages={"superContext":"{{#var:varPaginanaam}}", "topContext":"{{#var:varTopcontext}}"}|emm_navigationtree_form={{#var:varNavigationTreeForm}}‎‎}}
{{#ifeq:Nee|Ja|
}} <!-- end #ifeq: show navigation tree -->
    {{Navigation tree project|TopContext={{#var:varTopcontext}}
 
        |SuperContext={{#var:varPaginanaam}}
{{#ifeq: {{{Show sub projects|}}}|Nee||{{#ifexpr: {{#ask: [[Supercontext::{{PAGENAME}}]] [[Category:Project]] | format=count}} > 0 |
        |TitleSuperContext={{#var:varName}}
        |ProcessPreload={{#var:varProcessPreload}}
        |ProcessName={{#var:varAanpak}}
        |ContentPreload={{#var:varContentPreload}}
        |ContentName={{#var:varResultaten}} }}|
    {{Navigation tree project|TopContext={{#var:varTopcontext}}
        |SuperContext={{#var:varPaginanaam}}
        |TitleSuperContext={{#var:varName}} }}
}} }} <!-- end #ifeq: show navigation tree --><!--
'''Results:'''
{{#ifexist:{{#var:varResultaten}}|{{#ask: [[Category:Light Context]] [[Topcontext::{{#var:varTopcontext}}]]
| ?Self= -->
<!-- | ?Heading=Naam -->
<!-- | ?Pagename= -->
<!--
| mainlabel=-
| parent=Supercontext
| root={{#var:varResultaten}}
| format=tree
}}|* {{#formredlink:target={{#var:varResultaten}}
| link text={{#var:varName}} - results
| form=Light Context
| Light Context[Supercontext]={{#var:varPaginanaam}}
| Light Context[Topcontext]={{#var:varTopcontext}}
| Light Context[Context type]=Situation
| Light Context[Heading]={{#var:varName}} - results
| preload={{#var:varContentPreload}} --> <!-- gezet in een config template -->
<!-- }} }} -->
<!--
'''Description and evaluation of the process:'''
{{#ifexist:{{#var:varAanpak}}|{{#ask: [[Category:Light Context]] [[Topcontext::{{#var:varTopcontext}}]]
| ?Self= -->
<!-- | ?Heading={{int: EMM Text Name }} -->
<!-- | ?Pagename= -->
<!-- | mainlabel=-
| parent=Supercontext
| root={{#var:varAanpak}}
| format=tree
}}|* {{#formredlink:target={{#var:varAanpak}}
| link text={{#var:varName}} - process
| form=Light Context
| Light Context[Supercontext]={{#var:varPaginanaam}}
| Light Context[Topcontext]={{#var:varTopcontext}}
| Light Context[Context type]=Situation
| Light Context[Heading]={{#var:varName}} - process
| preload={{#var:varProcessPreload}} --> <!-- gezet in een config template -->
<!-- }} }} -->
<br>
{{#ifeq: {{{Show sub projects|}}}|Nee||{{#ifexpr: {{#ask: [[Category:Project]] [[Supercontext::{{PAGENAME}}]] | format=count}} > 0 |
=={{int: EMM Text Project Subprojects }}==
=={{int: EMM Text Project Subprojects }}==
<div class="actionbar">{{New projects|Project type={{#var:varProjectType}}|Topcontext={{#var:varTopcontext}}}}</div>
<div class="actionbar">{{New projects|Project type={{#var:varProjectType}}|Topcontext={{#var:varTopcontext}}}}</div>
 
{{#ask: [[Supercontext::{{PAGENAME}}]] [[Category:Project]]  
{{#ask: [[Category:Project]] [[Supercontext::{{PAGENAME}}]]
| ?Self=Project
| ?Self=Project
| ?Start date={{int:EMM Text Start date}}
| ?Start date={{int:EMM Text Start date}}
Regel 206: Regel 158:
<div class="mw-collapsible-content">
<div class="mw-collapsible-content">
<div class="actionbar">{{New projects|Project type={{#var:varProjectType}}|Topcontext={{#var:varTopcontext}}}}</div>
<div class="actionbar">{{New projects|Project type={{#var:varProjectType}}|Topcontext={{#var:varTopcontext}}}}</div>
 
{{#ask: [[Supercontext::{{PAGENAME}}]] [[Category:Project]]  
{{#ask: [[Category:Project]] [[Supercontext::{{PAGENAME}}]]
| ?Self=Project
| ?Self=Project
| ?Start date#LOCL={{int:EMM Text Start date}}
| ?Start date#LOCL={{int:EMM Text Start date}}
Regel 223: Regel 174:
{{#ask: [[Project::{{#var:varPaginanaam}}]] [[CNTR back link::+]]
{{#ask: [[Project::{{#var:varPaginanaam}}]] [[CNTR back link::+]]
| ?Self={{int: EMM Text Participant }}
| ?Self={{int: EMM Text Participant }}
<!--| ?Name=Naam--> <!-- geregeld met semantic title en Self -->
| ?CNTR Role={{int:EMM Text Role}}
| ?CNTR Role={{int:EMM Text Role}}
| mainlabel=-
| mainlabel=-
Regel 230: Regel 180:
}}
}}
</div>
</div>
</div>}} <!-- end #ifeq: show sub projects -->
</div>}} <!-- end #ifeq: show participants -->
{{#ifeq: {{{Show sources|}}}|Nee||<div class="toccolours mw-collapsible mw-collapsed">
{{#ifeq: {{{Show sources|}}}|Nee||<div class="toccolours mw-collapsible mw-collapsed">
== {{int: EMM Text Project Sources }} ==
== {{int: EMM Text Project Sources }} ==
Regel 239: Regel 189:
| link type=button
| link type=button
}}</div>|}}
}}</div>|}}
{{#if:{{CURRENTLOGGEDUSER}}|<div class="actionbar">{{#formlink:form=Resource Hyperlink
{{#if:{{CURRENTLOGGEDUSER}}|<div class="actionbar">{{#formlink:form=Resource Hyperlink
| Resource Description[created in page]]={{#var:varPaginanaam}}
| Resource Description[created in page]]={{#var:varPaginanaam}}
Regel 245: Regel 194:
| link type=button
| link type=button
}}</div>|}}
}}</div>|}}
=== {{int: EMM Text Project Sources created in this page }} ===
=== {{int: EMM Text Project Sources created in this page }} ===
 
{{#ask: [[Created in page::{{#var:varPaginanaam}}]] [[Category:Resource Description]]  
{{#ask: [[Category:Resource Description]] [[Created in page::{{#var:varPaginanaam}}]]
| ?Pagename={{int:EMM Text Page name}}
| ?Pagename={{int:EMM Text Page name}}
| ?Dct:title={{int:EMM Text Title}}
| ?Dct:title={{int:EMM Text Title}}
Regel 256: Regel 203:
| format=table
| format=table
}}
}}
=== {{int: EMM Text Project All sources }} ===
=== {{int: EMM Text Project All sources }} ===
 
{{#ask: [[Created in page::<q>[[Topcontext::{{#var:varTopcontext}}]]</q>]][[Category:Resource Description]]  
{{#ask: [[Category:Resource Description]] [[Created in page::<q>[[Topcontext::{{#var:varTopcontext}}]]</q>]]
| ?Pagename={{int:EMM Text Page name}}
| ?Pagename={{int:EMM Text Page name}}
| ?Dct:title={{int:EMM Text Title}}
| ?Dct:title={{int:EMM Text Title}}
Regel 267: Regel 212:
| format=table
| format=table
}}
}}
<!--== {{int: EMM Text Project Lessons learned }} ==
{{#if:{{CURRENTLOGGEDUSER}}|<div class="actionbar">{{#formlink:form=Lesson Learned
| link text={{int: EMM Text New lesson learned }}
| link type=button
}}</div>|}}
{{#ask: [[Category:Lesson Learned]]
| ?Pagename={{int: EMM Text Page name }}
| ?Heading={{int: EMM Text Title }}
| ?Lesson Learned Tag={{int: EMM Text Tag }}
| ?Summary={{int: EMM Text Summary }}
| sort=Lesson Learned Tag
| order=ascending
| default={{int: EMM Text Project No lessons learned added yet }}
| format=table
}}-->
</div>
</div>
</div>}} <!-- end #ifeq: show sources -->
</div>}} <!-- end #ifeq: show sources -->
[[Category:Project]]
[[Category:Project]]
</div> <!-- hide me -->
</div><!-- hide me --></includeonly>
</includeonly>

Versie van 22 feb 2024 15:39

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

{{Project
|Supercontext=
|Topcontext=
|Project type=
|Name=
|NameEn=
|NameFr=
|NameBe=
|Summary=
|SummaryEn=
|SummaryFr=
|SummaryBe=
|Start date=
|End date=
|Contact person=
|Imagename=
|Stakeholder=
|HZ Theme=	
|SDG=
|Show summary=
|Show navigation tree=
|Show new page button=
|Show sub projects=
|Show participants=
|Show sources=
|Show references=
|Is homepage=
|Show edit button=
|Show VE button=
|Show sidebar=
|Show category label=
|Show title=
|EMM access control=
}}

Edit the page to see the template text.