Difference between revisions of "Template:DisplayDocType"
Jump to navigation
Jump to search
m (Text replacement - "|DocTypeCollection" to "|collection") |
m (Text replacement - "|DocType" to "|type") |
||
Line 1: | Line 1: | ||
− | <noinclude>'''Used to show the type of a document, and if {{t| | + | <noinclude>'''Used to show the type of a document, and if {{t|type}} is present, to declare its type to SMW with [[Property:Has documentType]] and [[Property:Constitutes]]'''.<br/> |
The parameters are as described in the parent template [[template:DocProv]].<br/> | The parameters are as described in the parent template [[template:DocProv]].<br/> | ||
<br/> | <br/> | ||
Usage:<br/> | Usage:<br/> | ||
− | :{{t|<nowiki>{{DisplayDocType| | + | :{{t|<nowiki>{{DisplayDocType|type|typeDraft|collection}}</nowiki>}} |
</noinclude><includeonly>{{#ifeq: {{{2|}}}|Yes|[[Is draft::Yes| ]]|}}{{#if: {{{1|}}}|[[Constitutes::{{{1}}}| ]][[Category:{{plural|{{{1|}}}}}]]{{#ifeq: {{{3|}}}|Yes| A collection of {{#ifeq: {{{2|}}}|Yes|draft }} [[:category:{{plural|{{{1|}}}}}|{{plural|{{{1|}}}}}]][[Has documentType::{{{1|}}}| ]] | {{AORAN| {{#ifeq: {{{2|}}}|Yes|draft }} {{{1|}}}}} [[:category:{{plural|{{{1|}}}}}|{{#ifeq: {{{2|}}}|Yes|draft|}}{{Uncapitalize|[[Has documentType::{{{1|}}}]]}}]] }}| A file of [[:category:Untyped Documents|unspecified type]][[category:Untyped Documents]]}}</includeonly> | </noinclude><includeonly>{{#ifeq: {{{2|}}}|Yes|[[Is draft::Yes| ]]|}}{{#if: {{{1|}}}|[[Constitutes::{{{1}}}| ]][[Category:{{plural|{{{1|}}}}}]]{{#ifeq: {{{3|}}}|Yes| A collection of {{#ifeq: {{{2|}}}|Yes|draft }} [[:category:{{plural|{{{1|}}}}}|{{plural|{{{1|}}}}}]][[Has documentType::{{{1|}}}| ]] | {{AORAN| {{#ifeq: {{{2|}}}|Yes|draft }} {{{1|}}}}} [[:category:{{plural|{{{1|}}}}}|{{#ifeq: {{{2|}}}|Yes|draft|}}{{Uncapitalize|[[Has documentType::{{{1|}}}]]}}]] }}| A file of [[:category:Untyped Documents|unspecified type]][[category:Untyped Documents]]}}</includeonly> |
Revision as of 13:46, 24 June 2014
Used to show the type of a document, and if type is present, to declare its type to SMW with Property:Has documentType and Property:Constitutes.
The parameters are as described in the parent template template:DocProv.
Usage:
- {{DisplayDocType|type|typeDraft|collection}}