Difference between revisions of "Template:Document"

From Wikispooks
Jump to navigation Jump to search
m (typo)
(Automatically Link to {{{Author}}} if a page exists)
Line 30: Line 30:
 
----
 
----
 
{{DocEditMsg}}  
 
{{DocEditMsg}}  
{{{DocType|}}} by '''{{{Author}}}''' {{#if: {{{Date|}}} | dated [[Has publication date::{{{Date|}}}]] | dated [[Has publication date::{{ISO8601 |DateYear= {{{DateYear|}}}|DateMonth= {{{DateMonth|}}}|DateDay= {{{DateDay|}}} }} ]] }}<br/>
+
{{{DocType|}}} by '''{{#ifexist: {{{Author|}}} | [[{{{Author}}}]] | {{{Author|}}} }}''' {{#if: {{{Date|}}} | dated [[Has publication date::{{{Date|}}}]] | dated [[Has publication date::{{ISO8601 |DateYear= {{{DateYear|}}}|DateMonth= {{{DateMonth|}}}|DateDay= {{{DateDay|}}} }} ]] }}<br/>
 
'''Source:''' {{#if: {{{Source|}}}|{{{Source|}}}|<font color="red">Unknown</font>}}<br/>{{#if: {{{Local|}}} | '''Local copy:''' {{{Local|}}}<br/>|}}{{DocDisclaimer}}{{#if: {{{Note|}}} | <br/>{{{Note|}}} |}}{{#if: {{{AuthorsNote|}}} | <br/><br/><big><big>Author's Note</big></big>
 
'''Source:''' {{#if: {{{Source|}}}|{{{Source|}}}|<font color="red">Unknown</font>}}<br/>{{#if: {{{Local|}}} | '''Local copy:''' {{{Local|}}}<br/>|}}{{DocDisclaimer}}{{#if: {{{Note|}}} | <br/>{{{Note|}}} |}}{{#if: {{{AuthorsNote|}}} | <br/><br/><big><big>Author's Note</big></big>
 
----
 
----

Revision as of 04:12, 18 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/film etc reviews)
|Notoc=1 (Optional, use for suppress the table of contents)
}}