Difference between revisions of "Template:Document"

From Wikispooks
Jump to navigation Jump to search
(tidy description)
(DisplaySource template)
Line 50: Line 50:
 
</poem>
 
</poem>
 
</noinclude><includeonly><div style="border-style:solid; border-width:1px; border-color:#a7d7f9; margin:0px; background-color:#f5f5f5; padding: 0.5em; margin-right:0px;">
 
</noinclude><includeonly><div style="border-style:solid; border-width:1px; border-color:#a7d7f9; margin:0px; background-color:#f5f5f5; padding: 0.5em; margin-right:0px;">
<!--REMOVED THIS "PROVENENCE" HEADING - TIDIER WITHOUT?
+
<!--REMOVED "PROVENENCE" HEADING <big><big><big>Document Provenance</big></big></big>
<big><big><big>Document Provenance</big></big></big>
 
 
---- --> {{#if: {{{Image|}}} | [[File:{{{Image|}}}|right|250px|]] |}}{{DocEditMsg}} {{AORAN|{{{DocType|}}}}} [[DocType::{{{DocType|}}}]] by {{AgentList|Is author|{{{Author|}}}|{{{AuthorDetail|}}}|{{{Author2|}}}|{{{Author2Detail|}}}|{{{Author3|}}}|{{{Author3Detail|}}}|{{{Author4|}}}|{{{Author4Detail|}}}|{{{Author5|}}}|{{{Author5Detail|}}}|{{{Author6|}}}|{{{Author6Detail|}}}|{{{Author7|}}}|{{{Author7Detail|}}}|{{{Author8|}}}|{{{Author8Detail|}}}|{{{Author9|}}}|{{{Author9Detail|}}}|{{{Author10|}}}|{{{Author10Detail|}}}}}{{#if: {{{AuthorType|}}} | ({{{AuthorType}}})|}} {{#if: {{{Recipient|}}} | to {{AgentList|Is recipient|{{{Recipient|}}}|{{{RecipientDetail|}}}|{{{Recipient2|}}}|{{{Recipient2Detail|}}}|{{{Recipient3|}}}|{{{Recipient3Detail|}}}|{{{Recipient4|}}}|{{{Recipient4Detail|}}}|{{{Recipient5|}}}|{{{Recipient5Detail|}}}|{{{Recipient6|}}}|{{{Recipient6Detail|}}}|{{{Recipient7|}}}|{{{Recipient7Detail|}}}|{{{Recipient8|}}}|{{{Recipient8Detail|}}}|{{{Recipient9|}}}|{{{Recipient9Detail|}}}|{{{Recipient10|}}}|{{{Recipient10Detail|}}}}}}} {{#if: {{{Date|}}} |dated [[Has publication date::{{{Date|}}}]] |dated [[Has publication date::{{ISO8601 |DateYear= {{{DateYear|}}}|DateMonth= {{{DateMonth|}}}|DateDay= {{{DateDay|}}} }} ]] }}<br/>
 
---- --> {{#if: {{{Image|}}} | [[File:{{{Image|}}}|right|250px|]] |}}{{DocEditMsg}} {{AORAN|{{{DocType|}}}}} [[DocType::{{{DocType|}}}]] by {{AgentList|Is author|{{{Author|}}}|{{{AuthorDetail|}}}|{{{Author2|}}}|{{{Author2Detail|}}}|{{{Author3|}}}|{{{Author3Detail|}}}|{{{Author4|}}}|{{{Author4Detail|}}}|{{{Author5|}}}|{{{Author5Detail|}}}|{{{Author6|}}}|{{{Author6Detail|}}}|{{{Author7|}}}|{{{Author7Detail|}}}|{{{Author8|}}}|{{{Author8Detail|}}}|{{{Author9|}}}|{{{Author9Detail|}}}|{{{Author10|}}}|{{{Author10Detail|}}}}}{{#if: {{{AuthorType|}}} | ({{{AuthorType}}})|}} {{#if: {{{Recipient|}}} | to {{AgentList|Is recipient|{{{Recipient|}}}|{{{RecipientDetail|}}}|{{{Recipient2|}}}|{{{Recipient2Detail|}}}|{{{Recipient3|}}}|{{{Recipient3Detail|}}}|{{{Recipient4|}}}|{{{Recipient4Detail|}}}|{{{Recipient5|}}}|{{{Recipient5Detail|}}}|{{{Recipient6|}}}|{{{Recipient6Detail|}}}|{{{Recipient7|}}}|{{{Recipient7Detail|}}}|{{{Recipient8|}}}|{{{Recipient8Detail|}}}|{{{Recipient9|}}}|{{{Recipient9Detail|}}}|{{{Recipient10|}}}|{{{Recipient10Detail|}}}}}}} {{#if: {{{Date|}}} |dated [[Has publication date::{{{Date|}}}]] |dated [[Has publication date::{{ISO8601 |DateYear= {{{DateYear|}}}|DateMonth= {{{DateMonth|}}}|DateDay= {{{DateDay|}}} }} ]] }}<br/>
 
{{#if: {{{Subject|}}}|'''Subject{{#if: {{{Subject2|}}}|s|}}:''' {{AgentList|Is about|{{{Subject|}}}|{{{SubjectDetail|}}}|{{{Subject2|}}}|{{{Subject2Detail|}}}|{{{Subject3|}}}|{{{Subject3Detail|}}}|{{{Subject4|}}}|{{{Subject4Detail|}}}|{{{Subject5|}}}|{{{Subject5Detail|}}}}}<br/>}}
 
{{#if: {{{Subject|}}}|'''Subject{{#if: {{{Subject2|}}}|s|}}:''' {{AgentList|Is about|{{{Subject|}}}|{{{SubjectDetail|}}}|{{{Subject2|}}}|{{{Subject2Detail|}}}|{{{Subject3|}}}|{{{Subject3Detail|}}}|{{{Subject4|}}}|{{{Subject4Detail|}}}|{{{Subject5|}}}|{{{Subject5Detail|}}}}}<br/>}}
'''Source:''' {{#if: {{{Source|}}}|{{{Source|}}}|{{RED|Unknown}}[[Category:Unsourced Documents]]}}<br/>{{#if: {{{Local|}}} | '''Local copy:''' {{#ifexist: {{{Local|}}} | [[{{{Local}}}]] | {{#if:{{#pos:{{{Local|}}}|http}} | [{{{Local}}} Here] | {{RED|Broken Link: {{{Local}}} }} }} }}<br/>|}}{{DocDisclaimer}}{{#if: {{{OriginalLanguage|}}} | <br/>Translated from {{{OriginalLanguage|}}} {{#if: {{{Translator|}}} | by {{Agent|Is translator|{{{Translator|}}}|{{{TranslatorDetail|}}}}} |}}|}}{{#if: {{{Note|}}} | <br/>{{{Note|}}} |}}{{#if: {{{AuthorsNote|}}} | <br/><br/><big><big>Author{{#if: {{{Author2|}}}|s'|'s}} Note</big></big>
+
'''Source:''' {{DisplaySource|{{{Source|}}}|{{{SourceURL|}}}|{{{SourceName|}}}|{{{SourceDetail|}}}}}<br/>{{#if: {{{Local|}}} | '''Local copy:''' {{#ifexist: {{{Local|}}} | [[{{{Local}}}]] | {{#if:{{#pos:{{{Local|}}}|http}} | [{{{Local}}} Here] | {{RED|Broken Link: {{{Local}}} }} }} }}<br/>|}}{{DocDisclaimer}}{{#if: {{{OriginalLanguage|}}} | <br/>Translated from {{{OriginalLanguage|}}} {{#if: {{{Translator|}}} | by {{Agent|Is translator|{{{Translator|}}}|{{{TranslatorDetail|}}}}} |}}|}}{{#if: {{{Note|}}} | <br/>{{{Note|}}} |}}{{#if: {{{AuthorsNote|}}} | <br/><br/><big><big>Author{{#if: {{{Author2|}}}|s'|'s}} Note</big></big>
 
----
 
----
 
{{{AuthorsNote}}} |}}{{#if: {{{Comment|}}} | <br/><br/><big><big>Wikispooks Comment</big></big>
 
{{{AuthorsNote}}} |}}{{#if: {{{Comment|}}} | <br/><br/><big><big>Wikispooks Comment</big></big>

Revision as of 03:53, 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 of 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)
|Review=1 (Use for book/film etc reviews)
|Notoc=1 (Use for suppress the table of contents)
}}