Sjabloon:Project: verschil tussen versies

 
(67 tussenliggende versies door 2 gebruikers niet weergegeven)
Regel 1: Regel 1:
 
<noinclude>
 
<noinclude>
 
[[Category:EMont core]]
 
[[Category:EMont core]]
  +
[[Category:EMont core protected]]
 
This is the "Project" template.
 
This is the "Project" template.
 
It should be called in the following format:
 
It should be called in the following format:
Regel 8: Regel 9:
 
|Topcontext=
 
|Topcontext=
 
|Project type=
 
|Project type=
|Project title=
+
|Name=
 
|Summary=
 
|Summary=
 
|Start date=
 
|Start date=
 
|End date=
 
|End date=
  +
|Show summary=
  +
|Show navigation tree=
  +
|Create process and content pages=
  +
|Show new page button=
  +
|Show sub projects=
  +
|Show participants=
  +
|Show sources=
  +
|EMM access control=
 
}}
 
}}
 
</pre>
 
</pre>
Regel 25: Regel 34:
 
{{#vardefine:varTopcontext|{{#var:varPaginanaam}}}}
 
{{#vardefine:varTopcontext|{{#var:varPaginanaam}}}}
 
}}
 
}}
{{#vardefine:varProjectType|{{{Project type|}}}}}
+
<!-- {{#vardefine:varProjectType|{{{Project type|}}}}} -->
<!-- for backward compatitibility, if no Project types are propagated, this might be the right way any way -->
+
<!-- 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}} | |
 
{{#if: {{#var:varProjectType}} | |
 
{{#vardefine:varProjectType|
 
{{#vardefine:varProjectType|
Regel 37: Regel 48:
 
{{#set:Context type=Situation}}
 
{{#set:Context type=Situation}}
 
{{#set:Semantic title|{{{Name|}}}}}
 
{{#set:Semantic title|{{{Name|}}}}}
  +
{{DISPLAYTITLE:{{{Name|}}}}}
 
{{#set:Name={{{Name|}}}}}
 
{{#set:Name={{{Name|}}}}}
 
{{#set:Heading={{{Name|}}}}}
 
{{#set:Heading={{{Name|}}}}}
Regel 43: Regel 55:
 
{{#set:End date={{{End date|}}}}}
 
{{#set:End date={{{End date|}}}}}
 
{{#set:Summary={{{Summary|}}}}}
 
{{#set:Summary={{{Summary|}}}}}
  +
{{#arraymap:{{{EMMAccessControl|}}}|,|@@@@|{{#set:EMM access control=@@@@}}}}
 
{{#set:PR ID={{PAGENAME}} - {{{Name|}}} - {{{Start date|}}}}}
 
{{#set:PR ID={{PAGENAME}} - {{{Name|}}} - {{{Start date|}}}}}
 
{{#vardefine:varPaginanaam|{{PAGENAME}}}}
 
{{#vardefine:varPaginanaam|{{PAGENAME}}}}
 
{{#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}} - process}}
+
{{#vardefine:varAanpak|{{#var:varPaginanaam}} - aanpak}}
{{#vardefine:varResultaten|{{#var:varPaginanaam}} - results}}
+
{{#vardefine:varResultaten|{{#var:varPaginanaam}} - resultaten}}
 
</div>
 
</div>
  +
{{#ifeq: {{{Show summary|}}}|Nee||
 
== Project summary ==
 
== Project summary ==
{{{Summary|}}}
 
{|
 
<!--
 
| '''Project title'''
 
| {{{Name|}}}
 
|-
 
-->
 
| '''Start date:'''
 
| {{{Start date|}}}
 
|-
 
| '''End date:'''
 
| {{{End date|}}}
 
<!--
 
|-
 
| '''Summary:'''
 
| {{{Summary|}}}
 
-->
 
|}
 
   
  +
{{#show: {{#var:varPaginanaam}} | ?Summary}}}}
  +
{{#if: {{#var:varTemplateAdditionalShow}}|{{ {{#var:varTemplateAdditionalShow}} }}}}
  +
{{References}}
  +
{{#ifeq: {{{Show navigation tree|}}}|Nee||
 
== Project results and process ==
 
== Project results and process ==
 
+
{{#ifeq: {{{Show new page button|}}}|Nee||{{#formlink:form=Light Context
 
+
| Light Context[Supercontext]={{#var:varPaginanaam}}
'''Project results:'''
+
| Light Context[Topcontext]={{#var:varTopcontext}}
  +
| Light Context[Context type]=Situation
  +
| Light Context[Heading]=New page
  +
| preload={{#var:varNewPagePreload}} <!-- gezet in een config template -->
  +
| link text=New page
  +
| link type=button
  +
}} }}
  +
{{#ifeq: {{{Create process and content pages|}}}|Ja|
  +
    {{Navigation tree project|TopContext={{#var:varTopcontext}}
  +
        |SuperContext={{#var:varPaginanaam}}
  +
        |TitleSuperContext={{{Name|}}}
  +
        |ProcessPreload={{#var:varProcessPreload}}
  +
        |ProcessName={{#var:varAanpak}}
  +
        |ContentPreload={{#var:varContentPreload}}
  +
        |ContentName={{#var:varResultaten}} }}|
  +
    {{Navigation tree project|TopContext={{#var:varTopcontext}}
  +
        |SuperContext={{#var:varPaginanaam}}
  +
        |TitleSuperContext={{{Name|}}} }}
  +
}} }} <!-- end #ifeq: show navigation tree --><!--
  +
'''Results:'''
 
{{#ifexist:{{#var:varResultaten}}|{{#ask: [[Category:Light Context]] [[Topcontext::{{#var:varTopcontext}}]]
 
{{#ifexist:{{#var:varResultaten}}|{{#ask: [[Category:Light Context]] [[Topcontext::{{#var:varTopcontext}}]]
| ?Self=
+
| ?Self= -->
 
<!-- | ?Heading=Naam -->
 
<!-- | ?Heading=Naam -->
| ?Pagename=
+
<!-- | ?Pagename= -->
  +
<!--
 
| mainlabel=-
 
| mainlabel=-
 
| parent=Supercontext
 
| parent=Supercontext
Regel 89: Regel 109:
 
| Light Context[Context type]=Situation
 
| Light Context[Context type]=Situation
 
| Light Context[Heading]={{{Name|}}} - results
 
| Light Context[Heading]={{{Name|}}} - results
| preload={{#var:varContentPreload}} <!-- gezet in een config template -->
+
| preload={{#var:varContentPreload}} --> <!-- gezet in een config template -->
}} }}
+
<!-- }} }} -->
 
+
<!--
'''Process description and assessment (log):'''
+
'''Description and evaluation of the process:'''
 
{{#ifexist:{{#var:varAanpak}}|{{#ask: [[Category:Light Context]] [[Topcontext::{{#var:varTopcontext}}]]
 
{{#ifexist:{{#var:varAanpak}}|{{#ask: [[Category:Light Context]] [[Topcontext::{{#var:varTopcontext}}]]
| ?Self=
+
| ?Self= -->
 
<!-- | ?Heading=Naam -->
 
<!-- | ?Heading=Naam -->
| ?Pagename=
+
<!-- | ?Pagename= -->
| mainlabel=-
+
<!-- | mainlabel=-
 
| parent=Supercontext
 
| parent=Supercontext
 
| root={{#var:varAanpak}}
 
| root={{#var:varAanpak}}
Regel 108: Regel 128:
 
| Light Context[Context type]=Situation
 
| Light Context[Context type]=Situation
 
| Light Context[Heading]={{{Name|}}} - process
 
| Light Context[Heading]={{{Name|}}} - process
| preload={{#var:varProcessPreload}} <!-- gezet in een config template -->
+
| preload={{#var:varProcessPreload}} --> <!-- gezet in een config template -->
}} }}
+
<!-- }} }} -->
 
+
{{#ifeq: {{{Show sub projects|}}}|Nee||{{#ifexpr: {{#ask: [[Category:Project]] [[Supercontext::{{PAGENAME}}]] | format=count}} > 0 |
<!--
 
 
 
-->
 
{{#ifexpr: {{#ask: [[Category:Project]] [[Supercontext::{{PAGENAME}}]] | format=count}} > 0 |
 
 
== Sub projects ==
 
== Sub projects ==
 
{{New projects|Project type={{#var:varProjectType}}|Topcontext={{#var:varTopcontext}}}}
 
{{New projects|Project type={{#var:varProjectType}}|Topcontext={{#var:varTopcontext}}}}
Regel 122: Regel 138:
 
| ?Start date=Start date
 
| ?Start date=Start date
 
| ?End date=End date
 
| ?End date=End date
| ?Summary=Sumaary
+
| ?Summary=Summary
 
| mainlabel=-
 
| mainlabel=-
| default=''No sub projects.''
+
| default=''No sub projects identified yet.''
 
| format=table
 
| format=table
 
}}
 
}}
Regel 134: Regel 150:
 
{{#ask: [[Category:Project]] [[Supercontext::{{PAGENAME}}]]
 
{{#ask: [[Category:Project]] [[Supercontext::{{PAGENAME}}]]
 
| ?Self=Project
 
| ?Self=Project
| ?Start date=Start date
+
| ?Start date#LOCL=Start date
| ?End date=End date
+
| ?End date#LOCL=End date
 
| ?Summary=Summary
 
| ?Summary=Summary
 
| mainlabel=-
 
| mainlabel=-
| default=''No sub projects.''
+
| default=''No sub projects identified yet.''
 
| format=table
 
| format=table
 
}}
 
}}
 
</div>
 
</div>
</div> }} <!-- end ifexpr -->
+
</div>}} <!-- end ifexpr --> }} <!-- end #ifeq: show sub projects -->
<div class="toccolours mw-collapsible mw-collapsed">
+
{{#ifeq: {{{Show participants|}}}|Nee||<div class="toccolours mw-collapsible mw-collapsed">
 
== Participants and students ==
 
== Participants and students ==
 
<div class="mw-collapsible-content">
 
<div class="mw-collapsible-content">
Regel 151: Regel 167:
 
| ?CNTR Role=Role
 
| ?CNTR Role=Role
 
| mainlabel=-
 
| mainlabel=-
| default=''No participants.''
+
| default=''No participants included yet.''
 
| format=table
 
| format=table
 
}}
 
}}
Regel 161: Regel 177:
 
| ?STD Role=Role
 
| ?STD Role=Role
 
| mainlabel=-
 
| mainlabel=-
| default=''No students.''
+
| default=''No students included yet.''
 
| format=table
 
| format=table
 
}}
 
}}
 
</div>
 
</div>
</div>
+
</div>}} <!-- end #ifeq: show sub projects -->
<div class="toccolours mw-collapsible mw-collapsed">
+
{{#ifeq: {{{Show sources|}}}|Nee||<div class="toccolours mw-collapsible mw-collapsed">
 
== Sources ==
 
== Sources ==
 
<div class="mw-collapsible-content">
 
<div class="mw-collapsible-content">
 
{{#formlink:form=Resource Light
 
{{#formlink:form=Resource Light
 
| Resource Description[created in page]]={{#var:varPaginanaam}}
 
| Resource Description[created in page]]={{#var:varPaginanaam}}
| link text=Uploade new source (image, pdf, etc.)
+
| link text=New source (image, pdf, etc.)
 
| link type=button
 
| link type=button
 
}}
 
}}
Regel 177: Regel 193:
 
{{#formlink:form=Resource Hyperlink
 
{{#formlink:form=Resource Hyperlink
 
| Resource Description[created in page]]={{#var:varPaginanaam}}
 
| Resource Description[created in page]]={{#var:varPaginanaam}}
| link text=New hyperlink
+
| link text=New hyperlink (websites, etc.)
 
| link type=button
 
| link type=button
 
}}
 
}}
   
{{#ask: [[Category:Resource Description]] [[Created in page::<q>[[Topcontext::{{#var:varPaginanaam}}]]</q>]]
+
=== Sources created in this page ===
| ?Pagename=Pagine name
+
 
  +
{{#ask: [[Category:Resource Description]] [[Created in page::{{#var:varPaginanaam}}]]
  +
| ?Pagename=Page name
  +
| ?Dct:title=Title
  +
| ?Dct:creator=Author(s)
  +
| ?Dct:date#LOCL=Date
  +
| default=''No sources added yet.''
  +
| format=table
  +
}}
  +
 
  +
=== All sources ===
  +
 
  +
{{#ask: [[Category:Resource Description]] [[Created in page::<q>[[Topcontext::{{#var:varTopcontext}}]]</q>]]
  +
| ?Pagename=Page name
 
| ?Dct:title=Title
 
| ?Dct:title=Title
 
| ?Dct:creator=Author(s)
 
| ?Dct:creator=Author(s)
| ?Dct:date=Date
+
| ?Dct:date#LOCL=Date
| default=''No sources available.''
+
| default=''No sources added yet.''
 
| format=table
 
| format=table
 
}}
 
}}
  +
  +
== Lessons learned ==
  +
  +
{{#formlink:form=Lesson Learned
  +
| link text=New lesson learned
  +
| link type=button
  +
}}
  +
  +
{{#ask: [[Category:Lesson Learned]]
  +
| ?Pagename=Page name
  +
| ?Heading=Title
  +
| ?Summary=Summary
  +
| default=''No lessons learned added yet.''
  +
| format=table
  +
}}
  +
 
</div>
 
</div>
</div>
+
</div>}} <!-- end #ifeq: show sources -->
 
[[Category:Project]]
 
[[Category:Project]]
 
</includeonly>
 
</includeonly>

Huidige versie van 3 nov 2018 om 17:19

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

{{Project
|Supercontext=
|Topcontext=
|Project type=
|Name=
|Summary=
|Start date=
|End date=
|Show summary=
|Show navigation tree=
|Create process and content pages=
|Show new page button=
|Show sub projects=
|Show participants=
|Show sources=
|EMM access control=
}}

Edit the page to see the template text.