Difference between revisions of "Template:Document"

From Wikispooks
Jump to navigation Jump to search
(Whitespace)
(Accept |Date as alternative format)
Line 5: Line 5:
 
<poem>
 
<poem>
 
{{DocProv
 
{{DocProv
 +
EITHER
 +
|Date=
 +
OR
 +
|DateYear=
 +
|DateMonth=
 +
|DateDay=
 +
AND:
 
|DocType=A {report, article, essay, paper, chapter, polemic etc.})
 
|DocType=A {report, article, essay, paper, chapter, polemic etc.})
 
|Source=Link to the original copy
 
|Source=Link to the original copy
 
|Local=Address of the wikispooks copy of the original (Recommended)
 
|Local=Address of the wikispooks copy of the original (Recommended)
 
|Author=
 
|Author=
|DateYear=
 
|DateMonth=
 
|DateDay=
 
 
|AuthorsNote= ''Author's Note'' subsection (Optional)
 
|AuthorsNote= ''Author's Note'' subsection (Optional)
 
|Note= (Optional)
 
|Note= (Optional)
Line 26: Line 30:
 
----
 
----
 
{{DocEditMsg}}  
 
{{DocEditMsg}}  
{{{DocType|}}} by '''{{{Author}}}''' {{#if: {{{DateYear|}}} |dated [[isdate::{{ISO8601 |DateYear= {{{DateYear|}}}|DateMonth= {{{DateMonth|}}}|DateDay= {{{DateDay|}}} }} ]] }}<br/>
+
{{{DocType|}}} by '''{{{Author}}}''' {{#if: {{{Date|}}} | dated [[isdate::{{{Date|}}} | 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 08:23, 11 November 2013

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

Usage:

{{DocProv
EITHER
 |Date=
OR
 |DateYear=
 |DateMonth=
 |DateDay=
AND:
|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= Author's Note subsection (Optional)
|Note= (Optional)
|Comment= Wikispooks Comment subsection about why this is relevant (Recommended)
|SeeAlso= See Also subsection (Optional)
|Leaked=1 (Optional, use for leaked documents)
|Review=1 (Optional, use for book reviews)
|Notoc=1 (Optional, use for suppress the table of contents)
}}