Difference between revisions of "Template:Concept collection"
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 | + | #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: [[ | + | #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: [[ | + | '''{{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: [[ | + | -->{{#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 [[ | + | '''This concept collection is itself member of collection [[{{{concept collection|}}}]]. {{#ifexpr: {{#var: n-collections}} > 1 | {{{concept collection|}}} contains the following collections (sibling collections):''' <!-- |
| − | -->{{#ask: [[ | + | -->{{#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 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.