Geen bewerkingssamenvatting
k (1 versie geïmporteerd: Zie Jira-task KP-222.)
 
(28 tussenliggende versies door 4 gebruikers niet weergegeven)
Regel 6: Regel 6:
{{SKOS Concept VN show
{{SKOS Concept VN show
|Page name=
|Page name=
|Heading=
}}
}}
</pre>
</pre>
Regel 12: Regel 13:
{{#vardefine:varPageName|{{#if: {{{Page name|}}}| {{{Page name}}} | {{PAGENAME}} }} }}
{{#vardefine:varPageName|{{#if: {{{Page name|}}}| {{{Page name}}} | {{PAGENAME}} }} }}
{{#vardefine:varModel|{{#show: {{#var:varPageName}} | ?Model link | link=none | default={{#var:varPageName}} }} }}
{{#vardefine:varModel|{{#show: {{#var:varPageName}} | ?Model link | link=none | default={{#var:varPageName}} }} }}
{{#set:Semantic title={{#show: {{#var:varModel}} | ?Heading nl}} }}
{{#vardefine:varPrefLabel|{{ucfirst:{{#show: {{#var:varModel}} | ?prefLabel}} }} }}
</div><div id="page">
{{#vardefine:varHeadingNL|{{#show: {{#var:varModel}} | ?Heading nl}} }}
<!-- for debug purposes
{{#vardefine:varHeading|{{#show: {{#var:varModel}} | ?Heading}} }}
Page name: {{#var:varPageName}}
{{#vardefine:varSemanticTitle|{{#show: {{#var:varModel}} | ?Semantic title}} }}
Model: {{#var:varModel}}
{{#vardefine:varHeading|{{#if: {{#var:varHeading}} | {{#var:varHeading}} | {{{Heading|}}} }} }}
-->
{{#set:Semantic title|{{#var:varSemanticTitle}}}}
{{#set:prefLabel|{{#var:varPrefLabel}}}}
{{#set:Heading nl|{{#var:varHeadingNL}}}}
{{#set:Self={{PAGENAME}}}}
{{DISPLAYTITLE:{{#var:varHeading}}}}
{{#set:Heading={{#show:{{#var:varHeading}}}}}}
<!-- make sure that the Skos:properties narrower and hasPart are bidirectional -->
{{#set:Skosem:narrower={{#ask: [[Category:SKOS Concept VN]] [[Skosem:broader::{{#var:varPageName}}]] | link=none}}|+sep=,}}
{{#set:Skosem:hasPart={{#ask: [[Category:SKOS Concept VN]] [[Skosem:partOf::{{#var:varPageName}}]] | link=none}}|+sep=,}}
{{#set:Heading={{{Heading|}}}}}
<!-- derived properties -->
{{#set:Skos:definition={{#show: {{#var:varModel}} | ?Skos:definition}}}}
</div>
<!-- use this construct to create links without the " VN" part
<!-- use this construct to create links without the " VN" part
{{#arraymap: ''query (met link=none)'' |,|@@@@| {{Convert link | Link name VN=@@@@}} }}<br>
{{#arraymap: ''query (met link=none)'' |,|@@@@| {{Convert link | Link name VN=@@@@}} }}<br>
-->
<!--
{{Sidebar
|imgsrc=img/fietsers.jpg
|imgcaption=fietsers op dn diek
|relatedconcepts=
|relatedprocesses= process p, process q
|relatedfacts=Dijkvak X, Dijkvak Y
}}
-->
-->
<!--
<!--
Regel 47: Regel 51:
It works when rendered in a template, as in the follwing query
It works when rendered in a template, as in the follwing query
-->
-->
{{#ask: [[ {{#show: {{#var:varPageName}} | ?Model link | link=none  }} ]]
{{#ask: [[{{#var:varModel}}]]
| ?Skos:definition
| ?Skos:definition=
| mainlabel=-
| mainlabel=-
| format=template
| format=template
| template=Text formatter
| template=Text formatter
}}
}}
{{#widget:EM3DNavigator}}
<!-- use this construct to create links without the " VN" part
<!-- use this construct to create links without the " VN" part
{{#arraymap: ''query (met link=none)'' |,|@@@@| {{Convert link | Link name VN=@@@@}} }}<br>
{{#arraymap: ''query (met link=none)'' |,|@@@@| {{Convert link | Link name VN=@@@@}} }}<br>
-->
-->


<!-- obsolete, the use of Semantic title is the preferred way now instead of Convert link -->
<!--
''Thesaurus:'' {{#arraymap: {{#show:{{#var:varPageName}} | ?Skos:inScheme | link=none}} |,|@@@@| {{Convert link | Link name VN=@@@@}} }}<br>
''Thesaurus:'' {{#arraymap: {{#show:{{#var:varPageName}} | ?Skos:inScheme | link=none}} |,|@@@@| {{Convert link | Link name VN=@@@@}} }}<br>
''Deelgebied in thesaurus:'' {{#arraymap: {{#show:{{#var:varPageName}} | ?Context | link=none}}|,|@@@@| {{Convert link | Link name VN=@@@@}} }}<br>
''Deelgebied in thesaurus:'' {{#arraymap: {{#show:{{#var:varPageName}} | ?Context | link=none}}|,|@@@@| {{Convert link | Link name VN=@@@@}} }}<br>
-->
<!--''Naam:'' {{#show: {{#show: {{#var:varPageName}} | ?Model link | link=none}} | ?Skos:prefLabel }}<br>-->
<!--''Naam:'' {{#show: {{#show: {{#var:varPageName}} | ?Model link | link=none}} | ?Skos:prefLabel }}<br>-->
''Alternatieve naam:'' {{#show: {{#show: {{#var:varPageName}} | ?Model link | link=none}} | ?Skos:altLabel }}<br>
<!--''Alternatieve naam:'' {{#show: {{#show: {{#var:varPageName}} | ?Model link | link=none}} | ?Skos:altLabel }}<br>-->
''Breder concept:'' {{#arraymap: {{#show:{{#var:varPageName}} | ?Skosem:broader | link=none}}|,|@@@@| {{Convert link | Link name VN=@@@@}} }}<br>
<!--''Breder concept:'' {{#arraymap: {{#show:{{#var:varPageName}} | ?Skosem:broader | link=none}}|,|@@@@| {{Convert link | Link name VN=@@@@}} }}<br>-->
''Smaller concept:'' {{#arraymap: {{#ask: [[Category:SKOS Concept VN]] [[Skosem:broader::{{#var:varPageName}}]] | format=list | link=none}}|,|@@@@| {{Convert link | Link name VN=@@@@}} }}<br>
<!--''Breder concept:'' {{#show:{{#var:varPageName}} | ?Skosem:broader  }}<br>-->
''Onderdeel van:'' {{#arraymap: {{#show:{{#var:varPageName}} | ?Skosem:partOf | link=none}}|,|@@@@| {{Convert link | Link name VN=@@@@}} }}<br>
<!--''Smaller concept:'' {{#arraymap: {{#ask: [[Category:SKOS Concept VN]] [[Skosem:broader::{{#var:varPageName}}]] | format=list | link=none}}|,|@@@@| {{Convert link | Link name VN=@@@@}} }}<br>-->
''Bestaat uit:'' {{#arraymap: {{#ask: [[Category:SKOS Concept VN]] [[Skosem:partOf::{{#var:varPageName}}]] | format=list | link=none}}|,|@@@@| {{Convert link | Link name VN=@@@@}} }}<br>
<!--''Smaller concept:'' {{#show:{{#var:varPageName}} | ?Skosem:narrower }}<br>''Onderdeel van:'' {{#arraymap: {{#show:{{#var:varPageName}} | ?Skosem:partOf | link=none}}|,|@@@@| {{Convert link | Link name VN=@@@@}} }}<br>-->
''Gerelateerd concept:'' {{#arraymap: {{#show:{{#var:varPageName}} | ?Skos:related | link=none}}|,|@@@@| {{Convert link | Link name VN=@@@@}} }}<br>
<!--''Bestaat uit:'' {{#arraymap: {{#ask: [[Category:SKOS Concept VN]] [[Skosem:partOf::{{#var:varPageName}}]] | format=list | link=none}}|,|@@@@| {{Convert link | Link name VN=@@@@}} }}<br>-->
<!--''Gerelateerd concept:'' {{#arraymap: {{#show:{{#var:varPageName}} | ?Skos:related | link=none}}|,|@@@@| {{Convert link | Link name VN=@@@@}} }}<br>-->
'''Schema:''' {{#show: {{#var:varPageName}} | ?Skos:inScheme}},
'''Context:''' {{#show: {{#var:varPageName}} | ?Context}}
{{#vardefine:varBroader|{{#show: {{#var:varPageName}} | ?Skosem:broader}}}}{{#if: {{#var:varBroader}} | <br />'''Overkoepelend:''' {{#var:varBroader}} }}{{#vardefine:varNarrower|{{#show: {{#var:varPageName}} | ?Skosem:narrower}}}}{{#if: {{#var:varNarrower}} | <br />'''Specifiek:''' {{#var:varNarrower}} }}{{#vardefine:varPartOf|{{#show: {{#var:varPageName}} | ?Skosem:partOf}}}}{{#if: {{#var:varPartOf}} | <br />'''Onderdeel van:''' {{#var:varPartOf}} }}{{#vardefine:varHasPart|{{#ask: [[Category:SKOS Concept VN]][[Skosem:partOf::{{#var:varPageName}}]]}}}}{{#if: {{#var:varHasPart}} | <br />'''Onderdelen:''' {{#var:varHasPart}} }}{{#vardefine:varRelated|{{#show: {{#var:varPageName}} | ?Skos:related}}}}{{#if: {{#var:varRelated}} | <br />'''Verwant:''' {{#var:varRelated}} }}


{{#ifeq: {{#ask: [[Category:Context VN]] [[Concerns::{{#var:varPageName}}]] | format=count}} |0||
'''Betreft:''' <br />
{{#ask: [[Category:Context VN]] [[Concerns::{{#var:varPageName}}]]
| format=datatables
}}
}} <!-- end ifeq -->
<!--
<!--
{{Beeldmateriaal show|Page name={{#var:varModel}}}}
{{Beeldmateriaal show|Page name={{#var:varModel}}}}
-->
-->
</div>
{{Sidebar
{{Sidebar
|image={{#ask:[[Beeldmateriaal back link::{{#var:varModel}}]]
|image={{#ask:[[Beeldmateriaal back link::{{#var:varModel}}]]
Regel 82: Regel 99:
}}
}}
}}
}}
<br>
</includeonly>
</includeonly>

Huidige versie van 15 okt 2024 om 16:11

This is the "SKOS Concept show" template. It should be called in the following format:

{{SKOS Concept VN show
|Page name=
|Heading=
}}

Edit the page to see the template text.