Difference between revisions of "Template:Concept collection"
Jump to navigation
Jump to search
| Line 65: | Line 65: | ||
-->}} contains the following concepts:''' | -->}} contains the following concepts:''' | ||
| − | + | -->{{#ask: [[Category:Concept]] [[skos:Collection::{{PAGENAME}}]] | |
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | -->{{#ask: [[ | ||
| format=list | | format=list | ||
| sep= •  | | sep= •  | ||
| 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: [[ | + | -->{{#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 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:
- template: Logo
- template: Generate concept formlinks from SMW import page
- template: Validate and render identifier URI
Additional properties/Classes
- page title is mapped to property:dc:title.
- Category:Concept collection will be set by this template automatically.