Sjabloon:Light Context: verschil tussen versies

 
(48 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 "Light Context" template.
 
This is the "Light Context" template.
 
It should be called in the following format:
 
It should be called in the following format:
Regel 10: Regel 11:
 
|Heading=
 
|Heading=
 
|ImageMap template=
 
|ImageMap template=
  +
|Start date=
  +
|End date=
  +
|Summary=
 
}}
 
}}
 
</pre>
 
</pre>
Regel 15: Regel 19:
 
</noinclude><includeonly>__NOEDITSECTION__ __NOTOC__<div style="display:none;">
 
</noinclude><includeonly>__NOEDITSECTION__ __NOTOC__<div style="display:none;">
 
{{#arraymap:{{{Supercontext|}}}|,|@@@@|{{#set:Supercontext=@@@@}}}}
 
{{#arraymap:{{{Supercontext|}}}|,|@@@@|{{#set:Supercontext=@@@@}}}}
{{#arraymap:{{{Topcontext|}}}|,|@@@@|{{#set:Topcontext=@@@@}}}}
+
{{#if: {{{Topcontext|}}} | {{#arraymap:{{{Topcontext|}}}|,|@@@@|{{#set:Topcontext=@@@@}}}} | {{#set:Topcontext={{PAGENAME}}}}}}
 
{{#set:Context type={{{Context type|}}}}}
 
{{#set:Context type={{{Context type|}}}}}
 
{{#set:Semantic title|{{{Heading|}}}}}
 
{{#set:Semantic title|{{{Heading|}}}}}
  +
{{DISPLAYTITLE:{{{Heading|}}}}}
 
{{#set:Heading={{{Heading|}}}}}
 
{{#set:Heading={{{Heading|}}}}}
 
{{#set:Heading nl={{{Heading|}}}}}
 
{{#set:Heading nl={{{Heading|}}}}}
 
{{#set:ImageMap template={{{ImageMap template|}}}}}
 
{{#set:ImageMap template={{{ImageMap template|}}}}}
  +
{{#set:Start date={{{Start date|}}}}}
  +
{{#set:End date={{#if: {{{End date|}}} | {{{End date|}}} | {{{{Start date|}}} }} }}
  +
{{#set:Summary={{{Summary|}}}}}
 
{{#vardefine:varPaginanaam|{{PAGENAME}}}}
 
{{#vardefine:varPaginanaam|{{PAGENAME}}}}
 
{{#set:Model link={{#var:varPaginanaam}}}}
 
{{#set:Model link={{#var:varPaginanaam}}}}
 
{{#set:Self={{#var:varPaginanaam}}}}
 
{{#set:Self={{#var:varPaginanaam}}}}
</div><div style="display:none;">
+
{{#set:Pagename={{#var:varPaginanaam}}}}
{{#vardefine:varContexts|{{#ask: [[Category:Context]] [[Supercontext::{{#var:varPaginanaam}}]] | link=none}} }}
+
{{#vardefine:varVNCategory|OLmK Context VN}}
{{#vardefine:varSupercontexts|{{#show: {{#var:varPaginanaam}} | ?Supercontext | link=none }}}}
 
{{#vardefine:varParts|{{#ask: [[Category:Intentional Element]] [[Part of::{{#var:varPaginanaam}}]] | link=none}} }}
 
{{#vardefine:varParent|{{#show: {{#var:varPaginanaam}} | ?Part of | link=none }}}}
 
{{#vardefine:varReferredBy|{{#ask: [[Element link::{{#var:varPaginanaam}}]] [[Element link type::Refers]] | link=none}} }}
 
 
</div>
 
</div>
  +
{{References}}
  +
 
<div class="toccolours mw-collapsible mw-collapsed">
 
<div class="toccolours mw-collapsible mw-collapsed">
 
''' Paginaoverzicht '''
 
''' Paginaoverzicht '''
 
<div class="mw-collapsible-content">
 
<div class="mw-collapsible-content">
  +
<!-- Remove as many clutter as possible while the templates are visible inside the visualeditor
  +
{|
  +
| Startdatum:
  +
| {{#if: {{{Start date|}}}|{{#time:j F Y|{{{Start date|}}}}}}}
  +
|-
  +
| Einddatum:
  +
| {{#if: {{{End date|}}}|{{#time:j F Y|{{{End date|}}}}}}}
  +
|}
  +
{{#if: {{{Summary|}}}|<br />{{{Summary|}}}}}
  +
----
  +
-->
 
'''Links naar verwante pagina's'''
 
'''Links naar verwante pagina's'''
 
+
<!-- This can be done in the visualeditor or in a project
{{#if:{{#var:varContexts}}|Afgeleide processen, situaties en rollen: <br/>
+
{{#formlink:form=Light Context
{{#arraymap: {{#var:varContexts}}|,|@@@@| [[@@@@ | {{#show: {{#show: @@@@ | ?Model link | link=none }} | ?Heading nl}}]] | <br/> }}<br/>
+
| Light Context[Supercontext]={{#var:varPaginanaam}}
}}{{#if:{{#var:varSupercontexts}}|Onderdeel van: <br/>
+
| Light Context[Topcontext]={{{Topcontext|}}}
{{#arraymap: {{#var:varSupercontexts}}|,|@@@@| [[ @@@@ | {{#show: {{#show: @@@@ | ?Model link | link=none }} | ?Heading nl}}]] | <br/> }}<br/>
+
| Light Context[Context type]=Situation
}}{{#if:{{#var:varParts}}|Bestaat uit: <br/>
+
| link text=Nieuwe onderliggende pagina
{{#arraymap: {{#var:varParts}}|,|@@@@| [[@@@@ | {{#show: {{#show: @@@@ | ?Model link | link=none }} | ?Heading nl}}]] | <br/> }}<br/>
+
| link type=button
}}{{#if:{{#var:varReferredBy}}|Gerefereerd door: <br/>
 
{{#arraymap: {{#var:varReferredBy}}|,|@@@@| [[{{#show: @@@@ | ?Element back link | link=none}} | {{#show: {{#show: {{#show: @@@@ | ?Element back link | link=none}} | ?Model link | link=none }} | ?Heading nl}}]] | <br/> }}<br/>
 
 
}}
 
}}
{{#if:{{#var:varParent}}|Onderdeel van: <br/>
+
-->
{{#arraymap: {{#var:varParent}}|,|@@@@| [[@@@@ | {{#show: {{#show: @@@@ | ?Model link | link=none }} | ?Heading nl}}]] | <br/> }}<br/>
+
{{Related pages show}}
  +
----
  +
''' Uploads '''
  +
<!-- This can be done in the visualeditor or in a project -->
  +
{{#formlink:form=Resource Light
  +
| Resource Description[created in page]]={{#var:varPaginanaam}}
  +
| link text=Nieuwe bron (afbeelding, pdf, etc.) uploaden
  +
| link type=button
 
}}
 
}}
   
''' Uploads '''
+
{{#formlink:form=Resource Hyperlink
 
+
| Resource Description[created in page]]={{#var:varPaginanaam}}
{{#formlink:form=Resource Description
+
| link text=Nieuwe hyperlink bron
| Resource Temp[created in page]]={{#var:varPaginanaam}}
 
| link text=Upload een bestand
 
 
| link type=button
 
| link type=button
 
}}
 
}}
 
+
<!-- -->
{{#ask: [[Category:Resource Description]] [[Created in page::<q>[[Topcontext::{{{Topcontext|}}}]]</q>
+
{{#ask: [[Category:Resource Description]]
  +
    [[Created in page::<q>[[Topcontext::{{#if: {{{Topcontext|}}} | {{{Topcontext|}}} | {{#var:varPaginanaam}}}}]]</q>]]
  +
| ?Pagename=Page name
  +
| ?Dct:title=Title
  +
| ?Dct:creator=Author(s)
  +
| ?Dct:date=Date
  +
| default=''No sources added yet.''
 
| format=table
 
| format=table
}}
 
 
'''Creëer een onderliggende context'''
 
 
Let op, iedere pagina moet een unieke naam hebben.
 
Het advies is de drie puntjes te vervangen door een korte omschrijving van de context.
 
 
{{#forminput:form=Light Context
 
| button text=Creëer een context
 
| size=60
 
| Light Context[Supercontext]={{#var:varPaginanaam}}
 
| Light Context[Topcontext]={{{Topcontext|}}}
 
| Light Context[Context type]=Situation
 
| default value={{#var:varPaginanaam}} - ...
 
 
}}
 
}}
 
</div>
 
</div>

Huidige versie van 11 jan 2017 om 12:30

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

{{Light Context
|Supercontext=
|Topcontext=
|Context type=
|Heading=
|ImageMap template=
|Start date=
|End date=
|Summary=
}}

Edit the page to see the template text.