Difference between revisions of "Template:Document"

From Wikispooks
Jump to navigation Jump to search
m (fix3)
(|Declassified etc)
Line 33: Line 33:
 
|AuthorDetail= Short note about the author, (e.g. "Home Office accredited forensic pathologist")
 
|AuthorDetail= Short note about the author, (e.g. "Home Office accredited forensic pathologist")
 
|Author2Detail=Short note about the author2
 
|Author2Detail=Short note about the author2
...
+
|Classification=Original security classification, e.g. "official", "secret", "top secret"...
 +
|Leaked=Yes (Use for leaked documents)
 +
|Declassified=Yes (Use for declassified documents)
 +
|DeclassifiedDetail= Note about the declassification
 +
|Image=
 
|AuthorType=Explanatory note about authorship, e.g. "alleged"
 
|AuthorType=Explanatory note about authorship, e.g. "alleged"
 
''FOR FOREIGN TRANSLATIONS:''
 
''FOR FOREIGN TRANSLATIONS:''
Line 44: Line 48:
 
|AuthorsNote= ''Author's Note'' subsection
 
|AuthorsNote= ''Author's Note'' subsection
 
|Comment= ''Wikispooks Comment'' subsection about why this is relevant (Recommended)
 
|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)
 
|SeeAlso= ''See Also'' subsection (Use for related pages which cannot be linked in from the text)
|Leaked=1 (Use for leaked documents)
 
 
}}
 
}}
 
</poem>
 
</poem>
Line 53: Line 55:
 
---- --> {{#if: {{{Badge|}}} | {{ {{{Badge}}} }} }}{{#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&nbsp;[[Has publication date::{{ISO8601 |DateYear= {{{DateYear|}}}|DateMonth= {{{DateMonth|}}}|DateDay= {{{DateDay|}}} }} ]] }}<br/>
 
---- --> {{#if: {{{Badge|}}} | {{ {{{Badge}}} }} }}{{#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&nbsp;[[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/>}}
{{#if: {{{Source2Name|}}}|'''Sources:''' {{DisplaySource|{{{Source2|}}}|{{{Source2URL|}}}|{{{Source2Name|}}}|{{{Source2Detail|}}}}}, |'''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|}}} | {{#ifeq: {{{OriginalLanguage|}}} | English || <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>
+
{{#if: {{{Classification|}}}{{{Declassified|}}}|'''Security Classification:''' {{{Classification|}}} {{#if: {{{Declassified|}}}|(Declassified{{#if: {{{DeclassifiedDetail|}}}| {{{DeclassifiedDetail|}}}|}})|}}<br/>|}}{{#if: {{{Source2Name|}}}|'''Sources:''' {{DisplaySource|{{{Source2|}}}|{{{Source2URL|}}}|{{{Source2Name|}}}|{{{Source2Detail|}}}}}, |'''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|}}} | {{#ifeq: {{{OriginalLanguage|}}} | English || <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>
Line 60: Line 62:
 
----
 
----
 
{{{SeeAlso}}} |}}</div>
 
{{{SeeAlso}}} |}}</div>
[[Category:Doc]]{{#ifeq: {{{Leaked|}}} | Yes | [[Category:Leaked Documents]] |}} {{#if: {{{DateYear|}}} | {{DateCategory|Date={{{DateYear|}}}}} | {{DateCategory|Date={{#time: Y | {{{Date|}}} }} }} }}
+
[[Category:Doc]]{{#ifeq: {{{Leaked|}}} | Yes | [[Category:Leaked Documents]] |}} {{DateCategory|Date={{{DateYear|}}}}} {{DateCategory|Date={{#time: Y | {{{Date|}}} }} }}
<!-- Extra categories depending upon media type. DEPRECATED. USE SEMANTIC PROPERTIES INSTEAD -->
+
{{#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|}}} | 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>
 

Revision as of 13:48, 8 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"...


|Badge= The name of an existing badge template, e.g. "CryptomeBadge"
|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:
|Source2URL=... |SourceName2=... |SourceDetail2=... For more sources
|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
|Classification=Original security classification, e.g. "official", "secret", "top secret"...
|Leaked=Yes (Use for leaked documents)
|Declassified=Yes (Use for declassified documents)
|DeclassifiedDetail= Note about the declassification
|Image=
|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)
|SeeAlso= See Also subsection (Use for related pages which cannot be linked in from the text)
}}