Difference between revisions of "Template:DisplayDocType"

From Wikispooks
Jump to navigation Jump to search
(test)
(  after draft)
 
(19 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>'''Used to show the type of a document.''' If {{t|DocType}} is present, it adds a [[property:DocType]] statement.<br/>
+
<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]]'''. The parameters are as described in [[template:Document]].<br/>
The parameters are as described in the parent template [[template:DocProv]].<br/>
 
 
<br/>
 
<br/>
 
Usage:<br/>
 
Usage:<br/>
:{{t|<nowiki>{{DisplayDocType|DocType|DocTypeDraft|DocTypeCollection}}</nowiki>}}
+
:{{t|<nowiki>{{DisplayDocType|type|draft|collection}}</nowiki>}}
</noinclude><includeonly>{{#if: {{{1|}}} |[[Category:{{plural|{{{1|}}}}}]]{{#ifeq: {{{3|}}}|Yes| A collection of {{#ifeq: {{{2|}}}|Yes|draft}} [[:category:{{plural|{{{1|}}}}}|{{plural|{{{1|}}}}}]] [[DocType::{{{1|}}}| ]] | {{AORAN| {{#ifeq: {{{2|}}}|Yes|draft}} {{{1|}}}}} [[:category:{{plural|{{{1|}}}}}|[[DocType::{{{1|}}}]]]] }}| A file of [[:category:Untyped Documents|unspecified type]][[category:Untyped Documents]]}}{{{2}}}</includeonly>
+
</noinclude><includeonly>{{#ifeq: {{{2|}}}|Yes|[[Is draft::Yes| ]]|}}{{#if: {{{1|}}}|[[Constitutes::{{{1}}}| ]][[Category:{{plural|{{{1|}}}}}]]{{#ifeq: {{{3|}}}|Yes|collection of {{#ifeq: {{{2|}}}|Yes|draft&nbsp;}} [[:category:{{plural|{{{1|}}}}}|{{plural|{{{1|}}}}}]][[Has documentType::{{{1|}}}| ]] |[[:category:{{plural|{{{1|}}}}}|{{#ifeq: {{{2|}}}|Yes|draft&nbsp;|}}{{Uncapitalize|[[Has documentType::{{{1|}}}]]}}]] }}|file of [[:category:Untyped Documents|unspecified type]][[category:Untyped Documents]]}}</includeonly>

Latest revision as of 12:25, 9 November 2016

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 template:Document.

Usage:

{{DisplayDocType|type|draft|collection}}