Difference between revisions of "Template:Document"

From Wikispooks
Jump to navigation Jump to search
m (leading 0 padding)
m (ISO 8601)
Line 25: Line 25:
 
==Document Provenance==
 
==Document Provenance==
 
{{DocEditMsg}}  
 
{{DocEditMsg}}  
{{{DocType|}}} by '''{{{Author}}}''' dated [[isdate::{{{DateYear|}}}-{{{DateMonth|}}}-{{#substring:0{{{DateDay|}}}|{{#expr: {{#strlen:{{{DateDay|}}}}} - 1}}|2}}]]<br/>
+
{{{DocType|}}} by '''{{{Author}}}''' dated [[isdate::{{{{ISO8601 |DateYear= {{{DateYear|}}}|DateMonth= {{{DateMonth|}}}|DateDay= {{{DateDay|}}} }} ]]<br/>
 
'''Source:''' {{{Source}}}<br/>
 
'''Source:''' {{{Source}}}<br/>
 
{{#if: {{{Local|}}} | '''Local copy:''' {{{Local|}}}<br/>|}}
 
{{#if: {{{Local|}}} | '''Local copy:''' {{{Local|}}}<br/>|}}

Revision as of 03:21, 11 November 2013

'Document Provenance' information. The template should be the first item on Document pages. See also template:FileProv

Usage:

{{DocProv
|DocType=A {report, article, essay, paper, chapter, polemic etc.})
|Source=Link to the original copy
|Local=Address of the wikispooks copy of the original (Recommended)
|Author=
|AuthorsNote= (Optional)
|DateYear=
|DateMonth=
|DateDay=
|Note= (Optional)
|Comment= Wikispooks Comment about why this is relevant (Recommended)
|SeeAlso= (Optional)
|Leaked=1 (Optional, use for leaked documents)
|Review=1 (Optional, use for book reviews)
|Review=1 (Optional, use for book reviews)
}}