Difference between revisions of "Template:Document"

From Wikispooks
Jump to navigation Jump to search
(Clarify description)
(Trim notoc and review arguments)
Line 45: Line 45:
 
|SeeAlso= ''See Also'' subsection (Use for related pages which cannot be linked in from the text)
 
|SeeAlso= ''See Also'' subsection (Use for related pages which cannot be linked in from the text)
 
|Leaked=1 (Use for leaked documents)
 
|Leaked=1 (Use for leaked documents)
|Review=1 (Use for book/film etc reviews)
 
|Notoc=1 (Use for suppress the table of contents)
 
 
}}
 
}}
 
</poem>
 
</poem>
Line 60: Line 58:
 
----
 
----
 
{{{SeeAlso}}} |}}</div>
 
{{{SeeAlso}}} |}}</div>
{{#ifeq: {{{Notoc|}}} | 1 | __NOTOC__ | }}[[Category:Doc]]{{#if: {{{Leaked|}}} | [[Category:Leaked Documents]] |}}{{#if: {{{Review|}}} | [[Category:Reviews]] |}}{{DateCategory|Date={{{DateYear|}}}}}
+
[[Category:Doc]]{{#if: {{{Leaked|}}} | [[Category:Leaked Documents]] |}}{{DateCategory|Date={{{DateYear|}}}}}
<!-- Extra categories depending upon media type-->
+
<!-- Extra categories depending upon media type. DEPRECATED. USE SEMANTIC PROPERTIES INSTEAD -->
{{#ifeq: {{{DocType|}}} | An email | [[Category:Emails]]| }}
+
<!-- {{#ifeq: {{{DocType|}}} | An email | [[Category:Emails]]| }}
{{#ifeq: {{{DocType|}}} | A speech | [[Category:Speeches]]| }}{{#ifexist: Document_talk:{{PAGENAME}} | [[Document_talk:{{PAGENAME}} | ★ Join the Discussion about this document]] | [[Document_talk:{{PAGENAME}} | ★ Start a Discussion about this document]]}}</includeonly>
+
{{#ifeq: {{{DocType|}}} | A speech | [[Category:Speeches]]| }-->{{#ifexist: Document_talk:{{PAGENAME}} | [[Document_talk:{{PAGENAME}} | ★ Join the Discussion about this document]] | [[Document_talk:{{PAGENAME}} | ★ Start a Discussion about this document]]}}</includeonly>

Revision as of 14:36, 2 December 2013

'Document Provenance' information. The template should be the first item on Document pages. See also template:FileProv.
The blue parameters not be marked up at all; they should be Wikispooks page names (whether or not the page yet exists).
Usage:

{{DocProv
EITHER
 |Date=
OR
 |DateYear=
 |DateMonth=
 |DateDay=


EITHER
|Source=Link to the original copy (Deprecated, i.e. old style)
OR
|SourceURL=URL of the source, if it is available online
|SourceName=General name of the source, e.g. "Unwelcome Guests"
|SourceDetail=Specific details, e.g. "#675", "vol. 3, chapter 20", "pp.212-213"...


|DocType={article, essay, paper, chapter, letter, memo etc.}
|Local=Address of the wikispooks copy
|Subject=What the document is about
|Author=The name of the author
OPTIONAL DETAILS:
|Subject2= |Subject3=... For more subjects
|Author2=... |Author3=... For more authors
|Recipient= For emails, letters, speeches etc.
|Recipient2=... |Recipient3=... For more recipients
|RecipientDetail=Short note about recipient #1
|AuthorDetail= Short note about the author, (e.g. "Home Office accredited forensic pathologist")
|Author2Detail=Short note about the author2
...
|AuthorType=Explanatory note about authorship, e.g. "alleged"
FOR FOREIGN TRANSLATIONS:
|OriginalLanguage=Language name for non-English originals
|Translator=Who translated it
|TranslatorDetail=Short note on the translator
OPTIONAL NOTE:
|Note=
OPTIONAL SUBSECTIONS:
|AuthorsNote= Author's Note subsection
|Comment= Wikispooks Comment subsection about why this is relevant (Recommended)
|Image=
|SeeAlso= See Also subsection (Use for related pages which cannot be linked in from the text)
|Leaked=1 (Use for leaked documents)
}}