Difference between revisions of "Template:Document"

From Wikispooks
Jump to navigation Jump to search
m (]])
(trim whitespace)
Line 40: Line 40:
 
{{{Comment}}} |}}{{#if: {{{SeeAlso|}}} | <br/><br/><big><big>See Also</big></big>
 
{{{Comment}}} |}}{{#if: {{{SeeAlso|}}} | <br/><br/><big><big>See Also</big></big>
 
----
 
----
{{{SeeAlso}}} |}}
+
{{{SeeAlso}}} |}}</div>
</div>
+
{{#ifeq: {{{Notoc|}}} | 1 | __NOTOC__ | }}[[Category:Doc]]{{#if: {{{Leaked|}}} | [[Category:Leaked Documents]] |}}{{#if: {{{Review|}}} | [[Category:Reviews]] |}}{{DateCategory|Date={{{DateYear|}}}}}</includeonly>
[[Category:Doc]]
 
{{#if: {{{Leaked|}}} | [[Category:Leaked Documents]] |}}
 
{{#if: {{{Review|}}} | [[Category:Reviews]] |}}
 
<br/>
 
{{DateCategory|Date={{{DateYear|}}}}}
 
</includeonly>
 
{{#ifeq: {{{Notoc|}}} | 1 | __NOTOC__ | }}
 

Revision as of 08:45, 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)
}}