(Zie JIRA-issue EMT-791.)
|
|||
(71 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|}}}}}
|
+ |
{{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}}}} |
||
− | + | {{#set:Pagename={{#var:varPaginanaam}}}} |
|
− | + | {{#vardefine:varVNCategory|OLmK Context VN}} |
|
− | + | {{#vardefine:varReferredBy|{{#ask: [[Element link::{{#var:varPaginanaam}}]] [[Element link type::Refers]] | mainlabel=-| ?Element back link= | format=list}} }} |
|
− | {{#vardefine: |
||
− | |||
− | {{#vardefine:varReferredBy|{{#ask: [[Element link::{{#var:varPaginanaam}}]] [[Element link type::Refers]] | link= |
||
</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}} |
− | + | <div style="display:none;"> |
|
− | + | {{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.