Difference between revisions of "Template:Document"
(Add |DocTypeCollection parameter) |
(Description parameter) |
||
Line 20: | Line 20: | ||
|{{BLUE|Author}}=The name of the author. For a pseudonym, use single quotes. If anonymous, use ''Unknown''. ''([[Property:Has author]])'' | |{{BLUE|Author}}=The name of the author. For a pseudonym, use single quotes. If anonymous, use ''Unknown''. ''([[Property:Has author]])'' | ||
''OPTIONAL DETAILS:'' | ''OPTIONAL DETAILS:'' | ||
+ | |Description= ''A human readable plaintext description of less than 4 lines.''([[Property:Description]])'' | ||
|Badge= ''The name of an existing [[:category:Badge Templates|badge template]], e.g. "[[template:CryptomeBadge|CryptomeBadge]]"'' | |Badge= ''The name of an existing [[:category:Badge Templates|badge template]], e.g. "[[template:CryptomeBadge|CryptomeBadge]]"'' | ||
|ContentsTitle=Mainly for backward FileProv compatibility but useable for new Documents too | |ContentsTitle=Mainly for backward FileProv compatibility but useable for new Documents too | ||
− | |||
|SourceDetail=Specific details, e.g. "#675", "vol. 3, chapter 20", "pp.212-213"... | |SourceDetail=Specific details, e.g. "#675", "vol. 3, chapter 20", "pp.212-213"... | ||
|Source2URL=... |{{BLUE|SourceName2}}=... |SourceDetail2=... For more sources (Only 2 sources supported at the moment) | |Source2URL=... |{{BLUE|SourceName2}}=... |SourceDetail2=... For more sources (Only 2 sources supported at the moment) | ||
Line 39: | Line 39: | ||
|DeclassifiedDate=When the document was declassified | |DeclassifiedDate=When the document was declassified | ||
|DeclassifiedDetail= Optional Note about the declassification | |DeclassifiedDetail= Optional Note about the declassification | ||
+ | |{{BLUE|Constitutes}}= For topics which this document is not about, but directly constitutes(e.g. "censorship") | ||
|AuthorType=Explanatory note about authorship, e.g. "alleged" | |AuthorType=Explanatory note about authorship, e.g. "alleged" | ||
''FOR FOREIGN TRANSLATIONS:'' | ''FOR FOREIGN TRANSLATIONS:'' | ||
Line 56: | Line 57: | ||
</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 "PROVENENCE" HEADING <big><big><big>Document Provenance</big></big></big> | <!--REMOVED "PROVENENCE" HEADING <big><big><big>Document Provenance</big></big></big> | ||
− | ---- --> {{#if: {{{Badge|}}} | {{ {{{Badge}}} }} }}{{#if: {{{Image|}}} | [[File:{{{Image|}}}|right|250px|]] |}}{{#ifeq: {{{NAMESPACE}}}|Document|{{DocEditMsg}}|}} {{ | + | ---- --> {{#if: {{{Badge|}}} | {{ {{{Badge}}} }} }}{{#if: {{{Image|}}} | [[File:{{{Image|}}}|right|250px|]] |}}{{#ifeq: {{{NAMESPACE}}}|Document|{{DocEditMsg}}|}} {{#if: {{{DocType|}}} |[[Category:{{plural|{{{DocType|}}}}}]]{{AORAN|{{{DocType|}}}}} [[:category:{{plural|{{{DocType|}}}}}|[[DocType::{{{DocType|}}}]]]] | A file of [[:category:Untyped Documents|unspecified type]][[category:Untyped Documents]]}} {{#if: {{{Author|}}} | by {{AgentList|Has author|{{{Author|}}}|{{{AuthorDetail|}}}|{{{Author2|}}}|{{{Author2Detail|}}}|{{{Author3|}}}|{{{Author3Detail|}}}|{{{Author4|}}}|{{{Author4Detail|}}}|{{{Author5|}}}|{{{Author5Detail|}}}|{{{Author6|}}}|{{{Author6Detail|}}}|{{{Author7|}}}|{{{Author7Detail|}}}|{{{Author8|}}}|{{{Author8Detail|}}}|{{{Author9|}}}|{{{Author9Detail|}}}|{{{Author10|}}}|{{{Author10Detail|}}}|{{{Author11|}}}|{{{Author11Detail|}}}|{{{Author12|}}}|{{{Author12Detail|}}}|{{{Author13|}}}|{{{Author13Detail|}}}|{{{Author14|}}}|{{{Author14Detail|}}}|{{{Author15|}}}|{{{Author15Detail|}}}}}{{#if: {{{AuthorType|}}} | ({{{AuthorType}}})|}}|of unknown authorship [[Category:Authorless documents]]}} {{#if: {{{Recipient|}}} | to {{AgentList|Has recipient|{{{Recipient|}}}|{{{RecipientDetail|}}}|{{{Recipient2|}}}|{{{Recipient2Detail|}}}|{{{Recipient3|}}}|{{{Recipient3Detail|}}}|{{{Recipient4|}}}|{{{Recipient4Detail|}}}|{{{Recipient5|}}}|{{{Recipient5Detail|}}}|{{{Recipient6|}}}|{{{Recipient6Detail|}}}|{{{Recipient7|}}}|{{{Recipient7Detail|}}}|{{{Recipient8|}}}|{{{Recipient8Detail|}}}|{{{Recipient9|}}}|{{{Recipient9Detail|}}}|{{{Recipient10|}}}|{{{Recipient10Detail|}}}|{{{Recipient11|}}}|{{{Recipient11Detail|}}}|{{{Recipient12|}}}|{{{Recipient12Detail|}}}}}}} {{#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|}}}|{{{Subject6|}}}|{{{Subject6Detail|}}}|{{{Subject7|}}}|{{{Subject7Detail|}}}|{{{Subject8|}}}|{{{Subject8Detail|}}}|{{{Subject9|}}}|{{{Subject9Detail|}}}|{{{Subject10|}}}|{{{Subject10Detail|}}}}}<br/>|[[Category:Subjectless Documents]]}}{{DisplayClassification|{{{Classification|}}}|{{{ClassificationDetail|}}}|{{{Leaked|}}}|{{{Declassified|}}}|{{{DeclassifiedDate|}}}|{{{DeclassifiedDetail|}}}}}{{#if: {{{Source2Name|}}}|'''Sources:''' {{DisplaySource|{{{Source2URL|}}}|{{{Source2Name|}}}|{{{Source2Detail|}}}}}, |'''Source:'''}}{{DisplaySource|{{{SourceURL|}}}|{{{SourceName|}}}|{{{SourceDetail|}}}}}<br/>{{#if: {{{Local|}}} | '''Local copy:''' {{#ifexist: {{{Local|}}} | [[Has local copy::{{{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|Has translator|{{{Translator|}}}|{{{TranslatorDetail|}}}}} |}}}}|}}{{#if: {{{OriginalTitle|}}} | - Original title: ''{{{OriginalTitle|}}}'' |}}{{#if: {{{Credit|}}} | <br/>'''Credit: '''{{{Credit}}} |}}{{#if: {{{Note|}}} | <br/>{{{Note}}} |}}{{#if: {{{AuthorsNote|}}} | <br/><br/><big><big>Author{{#if: {{{Author2|}}}|s'|'s}} Note</big></big> | {{#if: {{{Subject|}}}|'''Subject{{#if: {{{Subject2|}}}|s|}}:''' {{AgentList|Is about|{{{Subject|}}}|{{{SubjectDetail|}}}|{{{Subject2|}}}|{{{Subject2Detail|}}}|{{{Subject3|}}}|{{{Subject3Detail|}}}|{{{Subject4|}}}|{{{Subject4Detail|}}}|{{{Subject5|}}}|{{{Subject5Detail|}}}|{{{Subject6|}}}|{{{Subject6Detail|}}}|{{{Subject7|}}}|{{{Subject7Detail|}}}|{{{Subject8|}}}|{{{Subject8Detail|}}}|{{{Subject9|}}}|{{{Subject9Detail|}}}|{{{Subject10|}}}|{{{Subject10Detail|}}}}}<br/>|[[Category:Subjectless Documents]]}}{{DisplayClassification|{{{Classification|}}}|{{{ClassificationDetail|}}}|{{{Leaked|}}}|{{{Declassified|}}}|{{{DeclassifiedDate|}}}|{{{DeclassifiedDetail|}}}}}{{#if: {{{Source2Name|}}}|'''Sources:''' {{DisplaySource|{{{Source2URL|}}}|{{{Source2Name|}}}|{{{Source2Detail|}}}}}, |'''Source:'''}}{{DisplaySource|{{{SourceURL|}}}|{{{SourceName|}}}|{{{SourceDetail|}}}}}<br/>{{#if: {{{Local|}}} | '''Local copy:''' {{#ifexist: {{{Local|}}} | [[Has local copy::{{{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|Has translator|{{{Translator|}}}|{{{TranslatorDetail|}}}}} |}}}}|}}{{#if: {{{OriginalTitle|}}} | - Original title: ''{{{OriginalTitle|}}}'' |}}{{#if: {{{Credit|}}} | <br/>'''Credit: '''{{{Credit}}} |}}{{#if: {{{Note|}}} | <br/>{{{Note}}} |}}{{#if: {{{AuthorsNote|}}} | <br/><br/><big><big>Author{{#if: {{{Author2|}}}|s'|'s}} Note</big></big> | ||
---- | ---- | ||
Line 63: | Line 64: | ||
{{{Comment}}} |}}{{#if: {{{SeeAlso|}}} | <br/><br/><big><big>See Also</big></big> | {{{Comment}}} |}}{{#if: {{{SeeAlso|}}} | <br/><br/><big><big>See Also</big></big> | ||
---- | ---- | ||
− | {{{SeeAlso}}} |}}</div> | + | {{{SeeAlso}}} |}}{{#if: {{{Description|}}} | [[Description::{{{Description}}}]] |}}</div> |
[[Category:Doc]]{{#ifeq: {{{Leaked|}}} | Yes | [[Category:Leaked Documents]] |}} [[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]] |}} [[Category:Doc]]{{#ifeq: {{{Leaked|}}} | Yes | [[Category:Leaked Documents]] |}} {{#if: {{{DateYear|}}} | {{DateCategory|Date={{{DateYear|}}}}} | {{DateCategory|Date={{#time: Y | {{{Date|}}} }} }} }} | ||
{{#ifexist: Document_talk:{{PAGENAME}} | [[Document_talk:{{PAGENAME}} | ★ Join the Discussion about this document]] | [[Document_talk:{{PAGENAME}} | ★ Start a Discussion about this document]]}} {{#if: {{{ContentsTitle|}}} | <br/><br/><big><big>{{{ContentsTitle}}}</big></big> |}} | {{#ifexist: Document_talk:{{PAGENAME}} | [[Document_talk:{{PAGENAME}} | ★ Join the Discussion about this document]] | [[Document_talk:{{PAGENAME}} | ★ Start a Discussion about this document]]}} {{#if: {{{ContentsTitle|}}} | <br/><br/><big><big>{{{ContentsTitle}}}</big></big> |}} | ||
---- | ---- | ||
</includeonly> | </includeonly> |
Revision as of 09:33, 23 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=
ESSENTIAL DETAILS
|DocType={article, essay, paper, chapter, letter, memo etc.} (Property:DocType)
|SourceURL=URL of the source, if it is available online
|SourceName=General name of the source, e.g. "Unwelcome Guests", "Cryptome", ... (Property:Sourced from)
|Local=Address of the wikispooks copy (Property:Has local copy)
|Subject=What the document is about (Property:Is about)
|Author=The name of the author. For a pseudonym, use single quotes. If anonymous, use Unknown. (Property:Has author)
OPTIONAL DETAILS:
|Description= A human readable plaintext description of less than 4 lines.(Property:Description)
|Badge= The name of an existing badge template, e.g. "CryptomeBadge"
|ContentsTitle=Mainly for backward FileProv compatibility but useable for new Documents too
|SourceDetail=Specific details, e.g. "#675", "vol. 3, chapter 20", "pp.212-213"...
|Source2URL=... |SourceName2=... |SourceDetail2=... For more sources (Only 2 sources supported at the moment)
|Subject2= |Subject3=... For more subjects
|Author2=... |Author3=... For more authors
|Recipient= For emails, letters, speeches etc. (Property:Has recipient)
|Recipient2=... |Recipient3=... For more recipients
|Image=
|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"... (Property:Has classification)
|ClassificationDetail= Optional note about the security classification
|Leaked=Yes (Use for leaked documents)
|Declassified=Yes (Use for declassified documents)
|DeclassifiedDate=When the document was declassified
|DeclassifiedDetail= Optional Note about the declassification
|Constitutes= For topics which this document is not about, but directly constitutes(e.g. "censorship")
|AuthorType=Explanatory note about authorship, e.g. "alleged"
FOR FOREIGN TRANSLATIONS:
|OriginalLanguage=Language name for non-English originals (Property:Has original language)
|OriginalTitle=The title of the original document (Property:Has original title)
|Translator=Who translated it (Property:Has translator)
|TranslatorDetail=Short note on the translator
OPTIONAL NOTES:
|Note=
|Credit= Note of thanks
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) (DEPRECATED as of December 2013)
}}