Difference between revisions of "Template:Concept collection"

From Multilingual Bookbinding Dictionary
Jump to navigation Jump to search
Line 39: Line 39:
 
'''Collection URI:''' {{{collection uri}}}
 
'''Collection URI:''' {{{collection uri}}}
 
}}{{
 
}}{{
#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|}}}]]”}}.
+
#if: {{{preferred namespace uri|}}}|''Namespace URI'': {{{preferred namespace uri|}}}{{#set: preferredNamespaceUri={{{preferred namespace uri|}}}}}{{#if: {{{preferred namespace prefix|}}}|<nowiki></nowiki> with preferred namespace prefix “[[preferredNamespacePrefix::{{{preferred namespace prefix|}}}]]”}}.
  
 
<nowiki></nowiki><!--
 
<nowiki></nowiki><!--
Line 59: Line 59:
 
}}<!-- end preferred namespace URI  
 
}}<!-- end preferred namespace URI  
 
-->{{
 
-->{{
#ifexpr: {{#ask: [[vann:termGroup::{{PAGENAME}}]] [[{{ns:category}}:Concept]]|format=count}} <!-- 0 interpreted as false
+
#ifexpr: {{#ask: [[{{PAGENAME}}]] [[Category:Concept]]|format=count}} <!-- 0 interpreted as false
 
then-->|{{#if: {{{concept scheme|}}}<!--  
 
then-->|{{#if: {{{concept scheme|}}}<!--  
 
then-->|'''This is a collection within the [[{{{concept scheme|}}}]]. It <!--
 
then-->|'''This is a collection within the [[{{{concept scheme|}}}]]. It <!--
Line 85: Line 85:
  
  
'''{{PAGENAME}} has {{plural: {{#var: n-sub-collections}}|a sub-collection|several sub-collections}}:''' {{#ask: [[{{ns:category}}:Concept collection]] [[vann:termGroup::{{PAGENAME}}]]|format=ul}}<!--
+
'''{{PAGENAME}} has {{plural: {{#var: n-sub-collections}}|a sub-collection|several sub-collections}}:''' {{#ask: [[Category:Concept collection]] [[{{PAGENAME}}]]|format=ul}}<!--
 
   -->}}<!-- end ifexpr  
 
   -->}}<!-- end ifexpr  
 
    
 
    
 
If present collection is a subcollection, list sibling collections in the same subcollection:
 
If present collection is a subcollection, list sibling collections in the same subcollection:
 
-->{{#if: {{{concept collection|}}}|<!--  
 
-->{{#if: {{{concept collection|}}}|<!--  
  -->{{#vardefine: n-collections |{{#ask: [[{{ns:category}}:Concept collection]] [[vann:termGroup::{{{concept collection|}}}]] |format=count}} }}<!--  
+
  -->{{#vardefine: n-collections |{{#ask: [[Category:Concept collection]] [[{{{concept collection|}}}]] |format=count}} }}<!--  
 
  --><nowiki></nowiki>
 
  --><nowiki></nowiki>
  
Line 97: Line 97:
  
  
'''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):''' <!--
+
'''This concept collection is itself member of collection [[{{{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}}<!--
+
   -->{{#ask: [[Category:Concept collection]] [[skos:inScheme::{{{concept scheme|}}}]] [[{{{concept collection|}}}]] |format=ul}}<!--
 
-->}}
 
-->}}
 
}}<!-- end if subcollection -->
 
}}<!-- end if subcollection -->

Revision as of 00:33, 30 November 2020

[edit] [[[:Template:Purge]]] Template-info.svg Template documentation

This is the "Concept collection" template and should be used on Category-pages.

Usage

It should be called in the following format:

{{Concept collection
|description=                 → optional (property:dc:description)
|notes=                       → optional (property:skos:note)
|concept collection=          → optional member of another collection (property:vann:termGroup)
|concept scheme =             → optional (property: skos:inScheme)
|collection uri =             → optional canonical URI where collection is used as a class (esp. value lists)
|preferred namespace prefix=  → optional (property: vann:preferredNamespacePrefix)
|preferred namespace uri=     → optional (property: vann:preferredNamespaceUri)
}}

Technical documentation

This template is used by Form:Concept collection. Dependencies:

Additional properties/Classes

See also