Difference between revisions of "Template:Concept collection"

From Multilingual Bookbinding Dictionary
Jump to navigation Jump to search
Line 65: Line 65:
 
-->}} contains the following concepts:'''
 
-->}} contains the following concepts:'''
  
{{#ask: [[{{ns:category}}:Concept]] [[vann:termGroup::{{PAGENAME}}]]
+
  -->{{#ask: [[Category:Concept]] [[skos:Collection::{{PAGENAME}}]]
| format=list
 
| default=No label defined yet of a concept.
 
| intro='''By label:''' 
 
|?#=
 
|?terms-internal:enLabel#=
 
| mainlabel=-
 
| sort=terms-internal:enLabel
 
| template=smwAsk_GenericPageLink
 
| sep= • 
 
}}<!--
 
--><br/><!--
 
  -->{{#ask: [[{{ns:category}}:Concept]] [[vann:termGroup::{{PAGENAME}}]]
 
 
| format=list
 
| format=list
 
| sep=&#32;•&#32;
 
| sep=&#32;•&#32;
Line 88: Line 76:
  
 
If the present collection has sub-collections, list those:
 
If the present collection has sub-collections, list those:
   -->{{#vardefine: n-sub-collections | {{#ask: [[{{ns:category}}:Concept collection]] [[vann:termGroup::{{PAGENAME}}]]|format=count}}}}<!--  
+
   -->{{#vardefine: n-sub-collections | {{#ask: [[Category:Concept]] [[skos:Collection::{{PAGENAME}}]]|format=count}}}}<!--  
 
   -->{{#ifexpr: {{#var: n-sub-collections}}<!-- 0 → false; > 1 true
 
   -->{{#ifexpr: {{#var: n-sub-collections}}<!-- 0 → false; > 1 true
 
   then-->|<nowiki></nowiki>
 
   then-->|<nowiki></nowiki>

Revision as of 18:42, 26 October 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