Sjabloon:Project: verschil tussen versies

 
(156 tussenliggende versies door 3 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 6: Regel 7:
 
{{Project
 
{{Project
 
|Supercontext=
 
|Supercontext=
  +
|Topcontext=
  +
|Project type=
 
|Name=
 
|Name=
  +
|Summary=
 
|Start date=
 
|Start date=
 
|End date=
 
|End date=
|Summary=
+
|Show info=
 
}}
 
}}
 
</pre>
 
</pre>
 
Edit the page to see the template text.
 
Edit the page to see the template text.
 
</noinclude><includeonly>__NOEDITSECTION__ __NOTOC__<div style="display:none;">
 
</noinclude><includeonly>__NOEDITSECTION__ __NOTOC__<div style="display:none;">
  +
{{#vardefine:varPaginanaam|{{PAGENAME}}}}
 
{{#arraymap:{{{Supercontext|}}}|,|@@@@|{{#set:Supercontext=@@@@}}}}
 
{{#arraymap:{{{Supercontext|}}}|,|@@@@|{{#set:Supercontext=@@@@}}}}
  +
{{#if: {{{Topcontext|}}} |
  +
{{#arraymap:{{{Topcontext|}}}|,|@@@@|{{#set:Topcontext=@@@@}}}}
  +
{{#vardefine:varTopcontext|{{{Topcontext|}}}}}
  +
|
  +
{{#set:Topcontext={{#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|
  +
{{#ask: [[Category:Projecten]] [[-Supercontext::{{#show: {{#var:varPaginanaam}} | ?Topcontext | link=none}}]]
  +
| mainlabel=-
  +
| ?Project type=
  +
}} }}
  +
}}
  +
{{#arraymap:{{#var:varProjectType}}|,|@@@@|{{#set:Project type=@@@@}}}}
 
{{#set:Context type=Situation}}
 
{{#set:Context type=Situation}}
  +
{{#set:Semantic title|{{{Name|}}}}}
  +
{{DISPLAYTITLE:{{{Name|}}}}}
 
{{#set:Name={{{Name|}}}}}
 
{{#set:Name={{{Name|}}}}}
 
{{#set:Heading={{{Name|}}}}}
 
{{#set:Heading={{{Name|}}}}}
Regel 25: Regel 51:
 
{{#vardefine:varPaginanaam|{{PAGENAME}}}}
 
{{#vardefine:varPaginanaam|{{PAGENAME}}}}
 
{{#set:Model link={{#var:varPaginanaam}}}}
 
{{#set:Model link={{#var:varPaginanaam}}}}
  +
{{#set:Self={{#var:varPaginanaam}}}} <!-- for semantic title purposes -->
  +
{{#vardefine:varAanpak|{{#var:varPaginanaam}} - aanpak}}
  +
{{#vardefine:varResultaten|{{#var:varPaginanaam}} - resultaten}}
 
</div>
 
</div>
  +
{{#ifeq: {{{Show info|}}}|Nee||
  +
{{#if: {{#var:varTemplateAdditionalShow}}|{{ {{#var:varTemplateAdditionalShow}} }}}}
  +
  +
== Project results and process ==
  +
  +
'''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={{{Name|}}} - results
  +
| form=Light Context
  +
| Light Context[Supercontext]={{#var:varPaginanaam}}
  +
| Light Context[Topcontext]={{#var:varTopcontext}}
  +
| Light Context[Context type]=Situation
  +
| Light Context[Heading]={{{Name|}}} - 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=Naam -->
  +
<!-- | ?Pagename= -->
  +
| mainlabel=-
  +
| parent=Supercontext
  +
| root={{#var:varAanpak}}
  +
| format=tree
  +
}}|* {{#formredlink:target={{#var:varAanpak}}
  +
| link text={{{Name|}}} - process
  +
| form=Light Context
  +
| Light Context[Supercontext]={{#var:varPaginanaam}}
  +
| Light Context[Topcontext]={{#var:varTopcontext}}
  +
| Light Context[Context type]=Situation
  +
| Light Context[Heading]={{{Name|}}} - process
  +
| preload={{#var:varProcessPreload}} <!-- gezet in een config template -->
  +
}} }}
  +
 
<!--
 
<!--
{{#ask: [[{{PAGENAME}}]] [[Category:Project]]
+
 
| ?Name=Naam
+
-->
| ?Start date=Startdatum
+
{{#ifexpr: {{#ask: [[Category:Project]] [[Supercontext::{{PAGENAME}}]] | format=count}} > 0 |
| ?End date=Einddatum
+
== Sub projects ==
| ?Summary=Samenvatting
+
{{New projects|Project type={{#var:varProjectType}}|Topcontext={{#var:varTopcontext}}}}
  +
 
  +
{{#ask: [[Category:Project]] [[Supercontext::{{PAGENAME}}]]
  +
| ?Self=Project
  +
| ?Start date=Start date
  +
| ?End date=End date
  +
| ?Summary=Summary
 
| mainlabel=-
 
| mainlabel=-
  +
| default=''No sub projects identified yet.''
 
| format=table
 
| format=table
 
}}
 
}}
-->
+
| <div class="toccolours mw-collapsible mw-collapsed">
{|
+
== Sub projects ==
| '''Naam'''
+
<div class="mw-collapsible-content">
| {{{Name|}}}
+
{{New projects|Project type={{#var:varProjectType}}|Topcontext={{#var:varTopcontext}}}}
|-
 
| '''Startdatum'''
 
| {{{Start date|}}}
 
|-
 
| '''Einddatum'''
 
| {{{End date|}}}
 
|-
 
| '''Samenvatting'''
 
| {{{Summary|}}}
 
|}
 
   
== Betrokken studenten ==
+
{{#ask: [[Category:Project]] [[Supercontext::{{PAGENAME}}]]
 
+
| ?Self=Project
<!-- obsolete
+
| ?Start date=Start date
{{#ask: [[Category:Student]] [[Supercontext::{{PAGENAME}}]]
+
| ?End date=End date
| ?Name=Naam
+
| ?Summary=Summary
| ?Student ID=Student ID
+
| mainlabel=-
| ?Project ID=Project(en)
+
| default=''No sub projects identified yet.''
| ?Supercontext=Links naar project(en)
+
| format=table
  +
}}
  +
</div>
  +
</div> }} <!-- end ifexpr -->
  +
}} <!-- end ifexpr show info -->
  +
<div class="toccolours mw-collapsible mw-collapsed">
  +
== Participants and students ==
  +
<div class="mw-collapsible-content">
  +
{{#ask: [[Project::{{#var:varPaginanaam}}]] [[CNTR back link::+]]
  +
| ?Self=Participant
  +
<!--| ?Name=Naam--> <!-- geregeld met semantic title en Self -->
  +
| ?CNTR Role=Role
  +
| mainlabel=-
  +
| default=''No participants included yet.''
 
| format=table
 
| format=table
 
}}
 
}}
-->
+
 
 
{{#ask: [[Project::{{#var:varPaginanaam}}]] [[STD back link::+]]
 
{{#ask: [[Project::{{#var:varPaginanaam}}]] [[STD back link::+]]
| ?Name=Naam
+
| ?Self=Student
  +
<!--| ?Name=Naam--> <!-- geregeld met semantic title en Self -->
 
<!--| ?Student ID=Student ID--> <!-- Student ID opnemen in subobject -->
 
<!--| ?Student ID=Student ID--> <!-- Student ID opnemen in subobject -->
| ?STD Role=Rol
+
| ?STD Role=Role
  +
| mainlabel=-
  +
| default=''No students included yet.''
 
| format=table
 
| format=table
  +
}}
  +
</div>
  +
</div>
  +
<div class="toccolours mw-collapsible mw-collapsed">
  +
== Sources ==
  +
<div class="mw-collapsible-content">
  +
{{#formlink:form=Resource Light
  +
| Resource Description[created in page]]={{#var:varPaginanaam}}
  +
| link text=New source (image, pdf, etc.)
  +
| link type=button
 
}}
 
}}
   
== Projectopzet (klik op de ''red links'' om proces en/of situatie aan te maken) ==
+
{{#formlink:form=Resource Hyperlink
 
+
| Resource Description[created in page]]={{#var:varPaginanaam}}
{{#formredlink:target={{#var:varPaginanaam}} - SSM proces
+
| link text=New hyperlink (websites, etc.)
| link text={{{Name|}}} - SSM proces
+
| link type=button
| form=Light Context
 
| Light Context[Supercontext]={{#var:varPaginanaam}}
 
| Light Context[Topcontext]={{#var:varPaginanaam}}
 
| Light Context[Context type]=Situation
 
| Light Context[Heading]={{{Name|}}} - SSM proces
 
| preload=SSM proces voorbeeld
 
 
}}
 
}}
   
{{#formredlink:target={{#var:varPaginanaam}} - SSM content
+
=== Sources created in this page ===
| link text={{{Name|}}} - SSM content
 
| form=SSM Situation
 
| size=60
 
| SSM Situation[Supercontext]={{#var:varPaginanaam}}
 
| SSM Situation[Start date]={{LOCALYEAR}}/{{LOCALMONTH}}/{{LOCALDAY}}
 
}}
 
   
{{#ask: [[Category:Light Context]] [[Topcontext::{{#var:varPaginanaam}}
+
{{#ask: [[Category:Resource Description]] [[Created in page::{{#var:varPaginanaam}}]]
| ?Heading=Naam
+
| ?Pagename=Page name
| format=datatables
+
| ?Dct:title=Title
  +
| ?Dct:creator=Author(s)
  +
| ?Dct:date=Date
  +
| default=''No sources added yet.''
  +
| format=table
 
}}
 
}}
<!-- nu even niet
 
=== Ruimte voor meer (tijdelijk als voorbeeld) ===
 
   
'''Creëer een onderliggende context'''
+
=== All sources ===
   
Let op, iedere pagina moet een unieke naam hebben.
+
{{#ask: [[Category:Resource Description]] [[Created in page::<q>[[Topcontext::{{#var:varTopcontext}}]]</q>]]
Het advies is de drie puntjes te vervangen door een korte omschrijving van de context.
+
| ?Pagename=Page name
 
+
| ?Dct:title=Title
{{#forminput:form=Light Context
+
| ?Dct:creator=Author(s)
| button text=Creëer een context
+
| ?Dct:date=Date
| size=60
+
| default=''No sources added yet.''
| Light Context[Supercontext]={{#var:varPaginanaam}}
+
| format=table
| Light Context[Context type]=Situation
 
| default value={{#var:varPaginanaam}} - {{{Name|}}} - ...
 
 
}}
 
}}
-->
+
</div>
  +
</div>
 
[[Category:Project]]
 
[[Category:Project]]
 
</includeonly>
 
</includeonly>

Huidige versie van 10 jan 2017 om 17:42

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 info=
}}

Edit the page to see the template text.