(Zie JIRA-issue EMT-791.)
|
|||
(32 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 "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= |
||
Regel 12: | Regel 16: | ||
|Start date= |
|Start date= |
||
|End 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=@@@@}}}} |
||
{{#if: {{{Topcontext|}}} | {{#arraymap:{{{Topcontext|}}}|,|@@@@|{{#set:Topcontext=@@@@}}}} | {{#set:Topcontext={{PAGENAME}}}}}} |
{{#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:Start date={{{Start date|}}}}} |
||
− | {{#set:End date={{#if: {{{End date|}}} | {{{End 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}}}} |
||
Regel 30: | Regel 44: | ||
{{#set:Pagename={{#var:varPaginanaam}}}} |
{{#set:Pagename={{#var:varPaginanaam}}}} |
||
{{#vardefine:varVNCategory|OLmK Context VN}} |
{{#vardefine:varVNCategory|OLmK Context VN}} |
||
+ | {{#vardefine:varReferredBy|{{#ask: [[Element link::{{#var:varPaginanaam}}]] [[Element link type::Refers]] | mainlabel=-| ?Element back link= | format=list}} }} |
||
</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 |
+ | {{Navigation tree lc|TopContext={{{Topcontext|}}} |
− | + |
|SuperContext={{{Supercontext|}}}}} |
|
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | | |
||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | | |
||
− | |||
− | |||
− | |||
− | {{ |
||
− | |||
− | |||
− | |||
− | { |
||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | | |
||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
</div> |
</div> |
||
[[Category:Light Context]] |
[[Category:Light Context]] |
||
</includeonly> |
</includeonly> |
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.