Difference between revisions of "Template:Concept collection"

From Multilingual Bookbinding Dictionary
Jump to navigation Jump to search
 
(43 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<includeonly>{{#set: dc:title={{PAGENAME}}}}<!--
+
{{#if: {{{description|}}}|''Description:'' {{{description|}}}{{#set: skos:scopeNote={{{description|}}}}} }}
 +
{{#if: {{{notes|}}}|''Notes:'' {{{notes|}}}{{#set: skos:note={{{notes|}}}}}}}
 +
{{#if: {{{member|}}}|{{#set: skos:member={{{member|}}}|+sep=,}}}}
 +
{{Translations}}
  
Start output with INFOBOX
+
{{#if: {{{concept scheme|}}}|{{#set: InScheme={{{concept scheme|}}} }}  
--><table class="infobox floatright" style="max-width:300px"><!--
+
''Scheme:''[[{{{concept scheme|}}}]]|}}
  -->{{#if: {{{concept scheme|}}}<!--
 
then-->|{{#set: skos:inScheme={{{concept scheme|}}}}}<!--
 
      --><caption style="border-bottom:1px solid #ccc; padding-bottom:0.5ex; margin-bottom:0.8ex;"><!--
 
        -->''Scheme:'' {{#ifexist: {{{concept scheme|}}} <!--
 
      then-->|<span class="hover-explain" id="skos:inScheme" title="skos:inScheme">[[{{{concept scheme|}}}]]</span> {{#formlink:
 
            form=Concept scheme<!--
 
            -->|link text=[[File:Pencil.png|x16px|link=]]<!--
 
            -->|target={{{concept scheme|}}}<!--
 
            -->|tooltip=Edit this concept scheme<!--
 
          -->}}<!--
 
      else-->|<span class="hover-explain" id="skos:inScheme" title="skos:inScheme">{{#formlink:
 
            form=Concept scheme<!--
 
            -->|link text={{{concept scheme|}}} [[File:Pencil add.png|x16px|link=]]<!--
 
            -->|target={{{concept scheme|}}}<!--
 
            -->|tooltip=Create “{{{concept scheme|}}}” as concept scheme<!--
 
          -->}}</span><!--
 
      -->}}<!--
 
    --></caption><!--
 
  -->}}<!-- end if
 
  Browse RDF/Property
 
    --><tr><td><!--
 
      --><div class="rdflink" style="float:right;">[[Special:ExportRDF/{{FULLPAGENAME}}|RDF feed]]&nbsp;│&nbsp;[[Special:Browse/{{#replace: {{FULLPAGENAMEE}}|-|-2D}} |Browse properties]]</div><!--
 
    --></td></tr><!--
 
END OF INFOBOX
 
  --></table>
 
{{
 
#if: {{{description|}}}|''Description:'' {{{description|}}}{{#set: dc:description={{{description|}}}}}
 
  
<nowiki></nowiki>}}{{
+
{{#if: {{{member|}}}|'''This collection contains the following concepts:'''
#if: {{{notes|}}}|''Notes:'' {{{notes|}}}{{#set: skos:note={{{notes|}}}}}
+
{{#ask: [[skos:Collection::{{PAGENAME}}]] OR [[-skos:member::{{PAGENAME}}]] OR [[{{PAGENAME}}::skos:member]]
 
+
|format=ul
<nowiki></nowiki>}}{{
+
|limit=50
#if: {{{collection uri|}}}|<nowiki></nowiki>
+
|offset=0
 
+
|link=all
'''Collection URI:''' {{{collection uri}}}
+
|sort=
}}{{
+
|order=asc
#if: {{{preferred namespace uri|}}}|''Namespace URI'': {{{preferred namespace uri|}}}{{#set: vann:preferredNamespaceUri={{{preferred namespace uri|}}}}}{{#if: {{{preferred namespace prefix|}}}|<nowiki></nowiki> with preferred namespace prefix “[[vann:preferredNamespacePrefix::{{{preferred namespace prefix|}}}]]”}}.
+
|headers=hide
 
+
|searchlabel=... further results
<nowiki></nowiki><!--
+
|propsep=,
-->{{#vardefine: preferredNamespacePrefixes | {{#ask: [[vann:preferredNamespacePrefix::{{{preferred namespace prefix|}}}]] | mainlabel=- | link=none | ?vann:preferredNamespacePrefix#= | format=list | default=}} }}<!--
+
|valuesep=, 
-->{{#vardefine: preferredNamespaceUris | {{#ask: [[vann:preferredNamespacePrefix::{{{preferred namespace prefix|}}}]] [[vann:preferredNamespaceUri::+]] | mainlabel=- | link=none | ?vann:preferredNamespaceUri#= | format=list | default=}} }}<!--
+
|named args=1
 
+
|sep=,
  check namespace conflict: ERROR message
+
}}
-->{{#if: {{{preferred namespace prefix|}}} | {{#ifeq: {{#var: preferredNamespacePrefixes}} | {{{preferred namespace prefix|}}} <!--
+
}}
then-->|<!-- nothing
+
{{#if: {{{collection uri|}}}|<nowiki></nowiki>'''Collection URI:''' {{{collection uri}}}|}}
else-->|{{Warning about non-unique namespace prefix
+
{{#if: {{{concept collection|}}}|It is itself a member of the [[{{{concept collection|}}}]] concept collection{{#set: skos:Collection={{{concept collection|}}} }}, which also includes:
|concept namespace prefix={{{preferred namespace prefix|}}}
+
{{#ask: [[skos:Collection::{{{concept collection}}}]]
}}
+
|format=ultree
[[Category: Check semantic properties]]
+
|limit=50
 +
|offset=0
 +
|link=all
 +
|sort=
 +
|order=asc
 +
|headers=hide
 +
|searchlabel=... further results
 +
|import-annotation=1
 +
|propsep=,
 +
|valuesep=, 
 +
|named args=1
 +
|sep=,
 +
|parent=skos:Collection
 +
|start level=1
 +
}}| }}
 +
{{#ask: [[Links to.skos:Collection::{{PAGENAME}}]] OR [[Links to.skos:Collection.skos:Collection::{{PAGENAME}}]] OR [[Links to.skos:Collection.skos:member::{{PAGENAME}}]]
 +
|?Links to
 +
|format=gallery
 +
|limit=100
 +
|offset=0
 +
|link=all
 +
|sort=
 +
|order=asc
 +
|headers=hide
 +
|searchlabel=... further results
 +
|class=sortable wikitable smwtable
 +
|navigation=auto
 +
|heights=200
 +
| widths=300
 +
|autocaptions=1
 +
|captionproperty=Description
 +
|redirects=Links to
 
}}
 
}}
}}<!--
+
{{Related images}}
 
 
  check URI conflict: ERROR message
 
-->{{Validate and render identifier URI | namespace prefix={{{preferred namespace prefix|}}} }}
 
}}<!-- end preferred namespace URI
 
-->{{
 
#ifexpr: {{#ask: [[vann:termGroup::{{PAGENAME}}]] [[{{ns:category}}:Concept]]|format=count}} <!-- 0 interpreted as false
 
then-->|{{#if: {{{concept scheme|}}}<!--
 
then-->|'''This is a collection within the [[{{{concept scheme|}}}]]. It <!--
 
else-->|'''This collection <!--
 
-->}} contains the following concepts:'''
 
 
 
-->{{#ask: [[Category:Concept]] [[skos:Collection::{{PAGENAME}}]]
 
| format=list
 
| sep=&#32;•&#32;
 
| default=No concept defined yet.
 
| intro='''By concept name:'''&#32;
 
| sort=terms-internal:lowercasePagename
 
}}<!--
 
else-->|'''This collection contains no concepts yet.'''<!--
 
-->}}<!--
 
 
 
If the present collection has sub-collections, list those:
 
  -->{{#vardefine: n-sub-collections | {{#ask: [[Category:Concept]] [[skos:Collection::{{PAGENAME}}]]|format=count}}}}<!--
 
  -->{{#ifexpr: {{#var: n-sub-collections}}<!-- 0 → false; > 1 true
 
  then-->|<nowiki></nowiki>
 
 
 
 
 
----
 
 
 
 
 
'''{{PAGENAME}} has {{plural: {{#var: n-sub-collections}}|a sub-collection|several sub-collections}}:''' {{#ask: [[{{ns:category}}:Concept collection]] [[vann:termGroup::{{PAGENAME}}]]|format=ul}}<!--
 
  -->}}<!-- end ifexpr
 
 
 
If present collection is a subcollection, list sibling collections in the same subcollection:
 
-->{{#if: {{{concept collection|}}}|<!--
 
-->{{#vardefine: n-collections |{{#ask: [[{{ns:category}}:Concept collection]] [[vann:termGroup::{{{concept collection|}}}]] |format=count}} }}<!--
 
--><nowiki></nowiki>
 
 
 
 
 
----
 
 
 
 
 
'''This concept collection is itself member of collection [[vann:termGroup::{{{concept collection|}}}]]. {{#ifexpr: {{#var: n-collections}} > 1 | {{{concept collection|}}} contains the following collections (sibling collections):''' <!--
 
  -->{{#ask: [[{{ns:category}}:Concept collection]] [[skos:inScheme::{{{concept scheme|}}}]] [[vann:termGroup::{{{concept collection|}}}]] |format=ul}}<!--
 
-->}}
 
}}<!-- end if subcollection -->
 
 
 
{{#if: {{{concept scheme|}}}||'''Note: No “concept scheme” has been specified (yet) that belongs to this collection.'''}}
 
 
 
 
 
 
[[Category:Concept collection]]
 
[[Category:Concept collection]]
</includeonly><noinclude>
 
{{Documentation}}
 
</noinclude>
 

Latest revision as of 18:06, 21 July 2022








Gallery