Sjabloon:Light Context: verschil tussen versies

(Versie 996 van Hans (overleg) ongedaan gemaakt)
(Zie JIRA-issue EMT-791.)
 
(59 tussenliggende versies door 4 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 7: Regel 8:
 
|Supercontext=
 
|Supercontext=
 
|Topcontext=
 
|Topcontext=
  +
|Toppage=
  +
|Sequence number=
  +
|Sequence numbers=
 
|Context type=
 
|Context type=
 
|Heading=
 
|Heading=
 
|ImageMap template=
 
|ImageMap template=
  +
|Start date=
  +
|End date=
  +
|Summary=
  +
|Show referred by=
  +
|Referred by text=
  +
|EMM access control=
 
}}
 
}}
 
</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__ __FORCETOC__ <!-- __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:Toppage={{#if: {{{Toppage|}}}|{{{Toppage|}}}|Other}}}}
  +
{{#set:Sequence number|{{#if: {{{Sequence number|}}}|{{{Sequence number|}}}|1}}}}
  +
{{#set:Sequence numbers|{{#if: {{{Sequence numbers|}}}|{{{Sequence numbers|}}}|}}}}
 
{{#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|}}}}}
  +
{{#arraymap:{{{EMMAccessControl|}}}|,|@@@@|{{#set:EMM access control=@@@@}}}}
 
{{#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:varReferredBy|{{#ask: [[Element link::{{#var:varPaginanaam}}]] [[Element link type::Refers]] | mainlabel=-| ?Element back link= | format=list}} }}
{{#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>
  +
{{#ifeq: {{{Show referred by|}}}|Nee||
  +
{{#if: {{#var:varReferredBy}}|{{#if: {{{Referred by text|}}}|'''{{{Referred by text|}}}'''|'''Hier wordt aan gewerkt of naar verwezen door:'''}} {{#var:varReferredBy}} }}
  +
}}
 
{{References}}
 
{{References}}
 
+
<div style="display:none;">
<div class="toccolours mw-collapsible mw-collapsed">
+
{{Navigation tree lc|TopContext={{{Topcontext|}}}
''' Paginaoverzicht '''
+
                                          |SuperContext={{{Supercontext|}}}}}
<div class="mw-collapsible-content">
 
----
 
'''Links naar verwante pagina's'''
 
 
 
{{#if:{{#var:varContexts}}|Afgeleide processen, situaties en rollen: <br/>
 
{{#arraymap: {{#var:varContexts}}|,|@@@@| [[@@@@ | {{#show: {{#show: @@@@ | ?Model link | link=none }} | ?Heading nl}}]] | <br/> }}<br/>
 
}}{{#if:{{#var:varSupercontexts}}|Onderdeel van: <br/>
 
{{#arraymap: {{#var:varSupercontexts}}|,|@@@@| [[ @@@@ | {{#show: {{#show: @@@@ | ?Model link | link=none }} | ?Heading nl}}]] | <br/> }}<br/>
 
}}{{#if:{{#var:varParts}}|Bestaat uit: <br/>
 
{{#arraymap: {{#var:varParts}}|,|@@@@| [[@@@@ | {{#show: {{#show: @@@@ | ?Model link | link=none }} | ?Heading nl}}]] | <br/> }}<br/>
 
}}{{#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/>
 
}}
 
 
 
''' Uploads '''
 
 
 
{{#formlink:form=Resource Description
 
| Resource Description[created in page]]={{#var:varPaginanaam}}
 
| link text=Upload een bestand
 
| link type=button
 
}}
 
 
 
{{#ask: [[Category:Resource Description]] [[Created in page::<q>[[Topcontext::{{{Topcontext|}}}]]</q>]]
 
| ?Dct:title=Titel
 
| ?Dct:creator=Schrijver
 
| ?Dct:date=Datum
 
| format=table
 
}}
 
 
 
'''Creëer een onderliggende context'''
 
 
 
{{#formlink:form=Light Context
 
| Light Context[Supercontext]={{#var:varPaginanaam}}
 
| Light Context[Topcontext]={{{Topcontext|}}}
 
| Light Context[Context type]=Situation
 
| link text=Creëer een context
 
| link type=button
 
}}
 
</div>
 
 
</div>
 
</div>
 
[[Category:Light Context]]
 
[[Category:Light Context]]
 
</includeonly>
 
</includeonly>

Huidige versie van 13 okt 2017 om 17:04

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

{{Light Context
|Supercontext=
|Topcontext=
|Toppage=
|Sequence number=
|Sequence numbers=
|Context type=
|Heading=
|ImageMap template=
|Start date=
|End date=
|Summary=
|Show referred by=
|Referred by text=
|EMM access control=
}}

Edit the page to see the template text.