Difference between revisions of "Template:Document"

From Wikispooks
Jump to navigation Jump to search
m (white space)
m (add source_URL)
 
(191 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<noinclude>[[category:Object Templates]]
+
<noinclude>{{WStemplate
'''This template provides a standard format for documents'''. It must be included at the top of all pages in the {{NS|document}}.<br/>
+
|summary=This template provides a standard format for documents.
{{BLUE|The blue parameters not be marked up at all; they should be Wikispooks page names (whether or not the page yet exists).}}<br/>
+
|description=It ''must'' be included at the top of all pages in the {{NS|document}}.
 +
|object=document
 +
}}
 +
For pages in the {{NS|main}} ''about'' documents, use [[Template:Publication]].<br/>
 
'''Usage:'''
 
'''Usage:'''
 
<poem>
 
<poem>
{{DocProv'
+
{{Document
 
ESSENTIAL DETAILS
 
ESSENTIAL DETAILS
|Date= PublicationDate
+
|{{NAVY|publication_date}}= PublicationDate ''([[Property:Has publicationDate]])''
|DocType={article, essay, paper, book review, letter, memo etc.} ''([[Property:Has documentType]])''
+
|type={article, essay, paper, book review, letter, memo etc.} ''([[Property:Has documentType]])''
|SourceURL=URL of the source, if it is available online
+
|{{GREEN|authors}}= Comma separated list of authors. For pseudonyms, use single quotes. If anonymous, use ''[[Unknown]]''. ''([[Property:Has author]])''
|{{BLUE|SourceName}}=General name of the source, e.g. "[[Unwelcome Guests]]", "[[Cryptome]]", ... ''([[Property:Sourced from]])''
+
|{{GREEN|subjects}}= Comma separated list of subject items. For pseudonyms, use single quotes. If anonymous, use ''Unknown''. ''([[Property:Is about]])''
|{{BLUE|Local}}=Address of the wikispooks copy ''([[Property:Has localCopy]])''
+
|description= ''A human readable plaintext description of less than 500 characters.''([[Property:Description]])''<!--
|{{BLUE|Subject}}=What the document is about ''([[Property:Is about]])''
+
|{{BLUE|source_name}}=General name of the source, e.g. "[[Unwelcome Guests]]", "[[Cryptome]]", ... ''([[Property:Sourced from]])''
|{{BLUE|Author}}=The name of the author. For a pseudonym, use single quotes. If anonymous, use ''Unknown''. ''([[Property:Has author]])''
+
|{{PURPLE|source_URL}}=URL of the source, if it is available online ''([[Property:Has sourceURL]])''
 
''OPTIONAL DETAILS:''
 
''OPTIONAL DETAILS:''
|Description= ''A human readable plaintext description of less than 500 characters.''([[Property:Description]])''
+
|subtitle=The subtitle, e.g. of a book -->
|DocTypeCollection=Yes (Use if this is a collection of documents)
+
|source_details            = Extra details for the reference, e.g. "#675", "vol. 3, chapter 20", "pp.212-213"... (For ISBNs, use '|ISBN') ''([[Property:Has sourceDetails]])''
|DocTypeDraft=Yes (Use for draft documents)
+
|updated_date=When the document was updated {{RED|Not Yet Implemented}}
|Badge= ''The name of an existing [[:category:Badge Templates|badge template]], e.g. "[[template:CryptomeBadge|]]"''
+
|{{PURPLE|iframe_URL}}=URL of page for display in an iframe.
|ContentsTitle=Mainly for backward FileProv compatibility but useable for new Documents too
+
|{{PURPLE|source_URL}}=Link to the source of the document
|SourceDetail=Specific details, e.g. "#675", "vol. 3, chapter 20", "pp.212-213"...
+
|{{BLUE|local}}=Address of the wikispooks copy ''([[Property:Has localCopy]])''
|Source2URL=... |{{BLUE|SourceName2}}=... |SourceDetail2=... For more sources (Only 2 sources supported at the moment)
+
|{{GREEN|subjects_detail}}= note about subjects {{RED|Deprecate?}}
|{{BLUE|Subject2}}= |{{BLUE|Subject3}}=... For more subjects
+
|{{ORANGE|collection}}=Yes (Use if this is a collection of documents)
|{{BLUE|Author2}}=... |{{BLUE|Author3}}=... For more authors
+
|{{ORANGE|draft}}=Yes (Use for draft documents)
|{{BLUE|Recipient}}= For emails, letters, speeches etc. ''([[Property:Has recipient]])''
+
|title=Document title. Usually this is implicit - only specify this if the pagename is different for some reason (such as illegal characters) {{RED|Not yet implemented?}}
|{{BLUE|Recipient2}}=... |{{BLUE|Recipient3}}=...  For more recipients
+
|{{GREEN|recipients}}= For emails, letters, speeches etc. ''([[Property:Has recipient]])''
|{{BLUE|Constitutes}}= For topics which this document is not about, but directly constitutes (e.g. "censorship", "war propaganda") ''([[Property:Constitutes]])''
+
|{{GREEN|constitutes}}= For topics which this document is not about, but directly constitutes (e.g. "censorship", "war propaganda") ''([[Property:Constitutes]])''
|ConstitutesDetail= Short note of explanation about the Constitutes parameter
+
|image= AN image for the document (Recommended, for example the cover if the document is a book)
|{{BLUE|Constitutes2}}=... |{{BLUE|Constitutes3}}=...  For more things which this document constitutes
+
|image_caption=Caption for the image
|Image=
+
|image_width= The default value is "250px"
|RecipientDetail=Short note about recipient #1
+
<s>|AuthorDetail= Short note about the author, (e.g. "Home Office accredited forensic pathologist")</s>
|AuthorDetail= Short note about the author, (e.g. "Home Office accredited forensic pathologist")
+
|classification=Original security classification, e.g. "official", "secret", "top secret"... ''([[Property:Has classification]])''
|Author2Detail...=Short note about the author2
+
|classification_detail= Optional note about the security classification
|Classification=Original security classification, e.g. "official", "secret", "top secret"... ''([[Property:Has classification]])''
+
|{{ORANGE|leaked}}=Yes (Use for leaked documents)
|ClassificationDetail= Optional note about the security classification
+
|{{ORANGE|declassified}}=Yes (Use for declassified documents)
|Leaked=Yes (Use for leaked documents)
+
|declassified_date=When the document was declassified
|Declassified=Yes (Use for declassified documents)
+
|declassified_detail= Optional Note about the declassification
|DeclassifiedDate=When the document was declassified
+
|author_type=Explanatory note about authorship, e.g. "alleged"
|DeclassifiedDetail= Optional Note about the declassification
+
|version=For versioned documents
|AuthorType=Explanatory note about authorship, e.g. "alleged"
+
|warning=Plaintext warning
|Version=For versioned documents
 
 
''FOR FOREIGN TRANSLATIONS:''
 
''FOR FOREIGN TRANSLATIONS:''
|OriginalLanguage=Language name for non-English originals ''([[Property:Has original language]])''
+
|original_language=Language name for non-English originals ''([[Property:Has originalLanguage]])''
|OriginalTitle=The title of the original document ''([[Property:Has originalTitle]])''
+
|original_title=The title of the original document ''([[Property:Has originalTitle]])''
|{{BLUE|Translator}}=Who translated it ''([[Property:Has translator]])''
+
|{{GREEN|translators}}=Who translated it ''([[Property:Has translator]])''
|TranslatorDetail=Short note on the translator
+
|translators_detail=Short note on the translators
 +
''FOR AUDIO (readings):''
 +
|{{PURPLE|audio_URL}}=URL of this audio version
 +
|{{BLUE|audio_name}}=Name of the source of the audio version
 +
''FOR BOOKS:''
 +
|{{PURPLE|webpage}}=URL of this book
 +
|ISBN= ISBN number ''([[Property:Has ISBN]])''
 +
|{{PURPLE|publisher_URL}}=Web address of the publishers
 +
|{{BLUE|publisher_name}}=Name of the publishers
 +
|publisher_detail=Optional extra note about the publishers
 
''OPTIONAL NOTES:''
 
''OPTIONAL NOTES:''
|Note=
+
|note= Random spare note
|Credit= Note of thanks
+
|credit= Note of thanks
 
''OPTIONAL SUBSECTIONS:''
 
''OPTIONAL SUBSECTIONS:''
|AuthorsNote= ''Author's Note'' subsection
+
|{{PURPLE|wikipedia}}        = URL of the document's Wikipedia page, if any ''([[Property:Has wikipediaPage]])''
|Comment= ''Wikispooks Comment'' subsection about why this is relevant (Recommended)
+
|wikipedia_protection      = Set to 1 if the wikipedia page is edit protected, 0 or empty otherwise ''([[Property:Has wikipediaProtection]])''
|SeeAlso= ''See Also'' subsection (Use for related pages which cannot be linked in from the text) (DEPRECATED as of December 2013)
+
|authors_note= ''Author's Note'' subsection
''SMWTEST''
+
<s>|comment= ''Wikispooks Comment'' subsection about why this is relevant (Recommended)</s> ''Depreceated, please use [[Template:Rate]] about the document on your user page instead''<ref>Ask an administrator if you need help with this.</ref>
|Subjects= Comma separated list of subject items
+
<s>|see_also= ''See Also'' subsection (Use for related pages which cannot be linked in from the text)</s> ''Deprecated, but still available in emergencies''
 
}}
 
}}
 
</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>{{DISPLAYTITLE:''{{FULLPAGENAME}}''}}{{SMWObjectHeader|Document}}<div style="border-style:solid; border-width:1px; border-color:#a7d7f9; margin:0px; background-color:#f5f5f5; padding: 1.0em; margin-right:0px;">{{Wikispooks:Site Status}}[[Has objectClass::Document| ]][[Has objectClass2::Document| ]]{{#if: {{{Badge|}}} | <div style="float:right;"> {{ {{{Badge}}} }} </div> }}{{#if: {{{image|}}} |[[Has image::File:{{{image|}}}| ]][[Has image2::File:{{{image|}}}| ]] <div style="float:right; margin:0 0 0 12px"> [[File:{{{image|}}}|{{#if: {{{image_width|}}}|{{{image_width|}}}|250px}}]] {{#if: {{{image_caption|}}} |<br/>{{{image_caption|}}}}}</div>}}{{Description|{{{description|}}}}}
 
+
{{DocDisclaimer}}{{#ifeq: {{{NAMESPACE}}}|Document|{{DocEditMsg}}|}}{{Infobox class icon}}'''<big>&nbsp;<!--
{| cellspacing="0" cellpadding="0" style="margin:1em 0em 1em; width:100%"
+
Comment this out until we get it working...
| style="width:70%; vertical-align:top; border:0px solid #9a9a9a; background-color:#f6f6f6;" |
+
{{AORAN|{{DisplayDocType|{{{type|}}}|{{{draft|}}}|{{{collection|}}}}}}}&nbsp;-->{{DisplayDocType|{{{type|}}}|{{{draft|}}}|{{{collection|}}}}}{{#if: {{{authors|}}} | &nbsp; by {{ArrayMapPropertyListLink|{{{authors|}}}|Has author}}{{#if: {{{author_type|}}} | &nbsp;({{{author_type}}})|}}|&nbsp;of unknown authorship [[Category:Authorless documents]]}}{{#if: {{{recipients|}}}| &nbsp; to {{#arraymap:{{{recipients|}}}|,|@@@@|[[Has recipient::@@@@]]}}}} {{#if: {{{PublisherName|}}}|{{#if: {{{publication_date|}}} | published {{LinkYear|[[Has publicationDate::{{{publication_date|}}}]]}}}} {{#if: {{{PublisherName|}}} | by {{Agent|Has publisher|{{{publisher_name|}}}|{{#if: {{{publisher_URL|}}}| <nowiki>[</nowiki>[{{{publisher_URL}}} Link]<nowiki>]</nowiki>}} {{{publisher_detail|}}} }} |}}|{{#if: {{{publication_date|}}} |dated [[Has publicationDate::{{{publication_date|}}}]]}}}}</big>'''<hr/>{{#if: {{{ISBN|}}}|'''ISBN:''' {{ArrayMapPropertyListLink|{{{ISBN|}}}|Has ISBN}} <br/>}}{{#if: {{{wikipedia|}}} | <br/>'''Wikipedia: '''{{WikipediaLink|{{{wikipedia|}}}|{{{wikipedia_protection|}}}}}<br/>}}{{#if: {{{subjects|}}}|'''Subjects:''' {{#arraymap:{{{subjects|}}}|,|@@@@|[[Is about::@@@@]]}} {{{Subjects_detail|}}}<br/>|[[Category:Subjectless Documents]]}}{{#if: {{{constitutes|}}} | '''Example of:''' {{#arraymap: {{{constitutes|}}}|,|@@@@|[[Constitutes::@@@@]]}}<br/>}} {{DisplayClassification|{{{classification|}}}|{{{classification_detail|}}}|{{{Leaked|}}}|{{{declassified|}}}|{{{declassified_date|}}}|{{{declassified_detail|}}}}}{{#if: {{{source_name|}}}{{{source_URL|}}{{{source_detail|}}}|'''Source:'''&nbsp;{{DisplaySource|{{{source_URL|}}}|{{{source_name|}}}|{{{source_detail|}}}}}<br/>}}{{#if: {{{local|}}} | '''Local copy:''' {{#ifexist: {{{local|}}} | [[Has localCopy::{{{local}}}]] | {{#if:{{#pos:{{{local|}}}|http}} | [{{{local}}} Here] | {{RED|Broken Link: [[{{{local}}}]] }} }} }}<br/>|}}{{#if: {{{audio_URL|}}} | '''Audio version:''' [{{{audio_URL}}} Here] {{#if: {{{audio_name|}}}|from [[{{{audio_name}}}]]}}<br/>|}}{{#if: {{{original_language|}}} | {{#ifeq: {{{original_language|}}} | English |[[Has originalLanguage::English| ]]| <br/>Translated from [[Has originalLanguage::{{{original_language|}}}]] {{#if: {{{translators|}}} | by {{ArrayMapPropertyListLink|{{{translators|}}}|Has translator|}} {{{translators_detail|}}} |}}}}|}}{{#if: {{{original_title|}}} |&nbsp;- Original title: ''[[Has originalTitle::{{{original_title|}}}]]'' |}}{{#if: {{{Credit|}}} | <br/>'''Credit: '''{{{credit}}}}}{{#if: {{{version|}}}|'''Version:''' {{{version}}}<br/>}}{{#if: {{{warning|}}}|'''Warning:''' {{{warning}}}<br/>}}{{#if: {{{note|}}} |<br/>{{{note}}} }}{{#if: {{{comment|}}} | <br/><br/><big><big>Wikispooks Comment</big></big>
<div style="padding:0.5em 0.5em 0.5em 0.5em;font-size:100%;">
+
----
 
+
{{{comment}}}|}}{{#if: {{{authors_note|}}} |<br/><br/><big><big>Author{{#if: {{{Author2|}}}|s'|'s}} Note</big></big>
{{Description|{{{Description|}}}}}
 
{{#ifeq: {{{NAMESPACE}}}|Document|{{DocEditMsg}}|}} {{DisplayDocType|{{{DocType|}}}|{{{DocTypeDraft|}}}|{{{DocTypeCollection|}}}}}{{#if: {{{Author|}}} | &nbsp; 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|}}} | &nbsp;({{{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 publicationDate::{{{Date|}}}]]}}<br/>
 
{{#arraymap:{{{Subjects|}}}|,|@@@@|[[Is about::@@@@]]}}
 
{{#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/>|{{#if: {{{Subjects|}}}||[[Category:Subjectless Documents]]}}}}{{#if: {{{Constitutes|}}} | '''Example of:''' {{AgentList|Constitutes|{{{Constitutes|}}}|{{{ConstitutesDetail|}}}|{{{Constitutes2|}}}|{{{Constitutes2Detail|}}}|{{{Constitutes3|}}}|{{{Constitutes3Detail|}}}|{{{Constitutes4|}}}|{{{Constitutes4Detail|}}}|{{{Constitutes5|}}}|{{{Constitutes5Detail|}}}|{{{Constitutes6|}}}|{{{Constitutes6Detail|}}}|{{{Constitutes7|}}}|{{{Constitutes7Detail|}}}|{{{Constitutes8|}}}|{{{Constitutes8Detail|}}}|{{{Constitutes9|}}}|{{{Constitutes9Detail|}}}|{{{Constitutes10|}}}}}<br/>}} {{DisplayClassification|{{{Classification|}}}|{{{ClassificationDetail|}}}|{{{Leaked|}}}|{{{Declassified|}}}|{{{DeclassifiedDate|}}}|{{{DeclassifiedDetail|}}}}}{{#if: {{{Source2Name|}}}|'''Sources:'''&nbsp; {{DisplaySource|{{{Source2URL|}}}|{{{Source2Name|}}}|{{{Source2Detail|}}}}}, |'''Source:'''&nbsp;}}{{DisplaySource|{{{SourceURL|}}}|{{{SourceName|}}}|{{{SourceDetail|}}}}}<br/> {{#if: {{{Local|}}} | '''Local copy:''' {{#ifexist: {{{Local|}}} | [[Has localCopy::{{{Local}}}]] | {{#if:{{#pos:{{{Local|}}}|http}} | [{{{Local}}} Here] | {{RED|Broken Link: {{{Local}}} }} }} }}<br/>|}}{{DocDisclaimer}}{{#if: {{{OriginalLanguage|}}} | {{#ifeq: {{{OriginalLanguage|}}} | English |[[Has original language::English| ]]| <br/>
 
Translated from [[Has original language::{{{OriginalLanguage|}}}]] {{#if: {{{Translator|}}} | by {{Agent|Has translator|{{{Translator|}}}|{{{TranslatorDetail|}}}}} |}}}}|}}{{#if: {{{OriginalTitle|}}} |&nbsp;- Original title: ''[[Has originalTitle::{{{OriginalTitle|}}}]]'' |}}
 
{{#if: {{{Credit|}}} | <br/>'''Credit: '''{{{Credit}}} |}}{{#if: {{{Version|}}}|'''Version:''' {{{Version}}}<br/>}}
 
{{#if: {{{Note|}}} | {{{Note}}} |}}
 
</div>
 
| style="padding:0 0.5em;" |
 
| style="width:30%; vertical-align:top; border:0px solid #9a9a9a; background-color:#f6f6f6;" |
 
<div style="padding:0.5em 0.5em 0.5em 0.5em;font-size:100%;">
 
{{#if: {{{Badge|}}} | {{ {{{Badge}}} }} }}
 
{{#if: {{{Image|}}} | [[File:{{{Image|}}}|right|250px|]]|}}
 
</div>
 
|}
 
{{#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>
+
{{{authors_note|}}} |}}{{DisplayRatings}}{{#if: {{{permission|}}} |<br>
 
----
 
----
{{{Comment}}} |}}{{#if: {{{SeeAlso|}}} | <br/><br/><big><big>See Also</big></big>
+
'' © {{{publication_date|}}} {{ArrayMapListLink|{{{authors|}}}}}. Republished with permission. All rights reserved. You may not republish this without explicit permission from {{{authors|}}}.''}}{{#if: {{{see_also|}}} | <br/><big><big>See Also</big></big>
 
----
 
----
{{{SeeAlso}}} |}}</div>
+
{{{see_also}}} |}}</div>
{{#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: {{{title|}}} | <br/><big><big>{{{title}}}</big></big> |}}
 
----
 
----
 
+
{{#if: {{{iframe_URL|}}} |[[Category:IframeDoc]]<br/>{{#widget:Iframe |url={{{iframe_URL}}} |width=900 |height=800 |border=0}} }}
[[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|}}} }} }} }}
+
{{#ifeq: {{{Leaked|}}} | Yes | [[Category:Leaked Documents]] |}} {{#if: {{{DateYear|}}} | {{DateCategory|publication_date={{{DateYear|}}}}} | {{DateCategory|publication_date={{#time: Y | {{{Date|}}} }} }} }}{{#ifeq: {{{Leaked|}}} | Yes | [[Category:Leaked Documents]] |}}
 
 
 
{{SMWDefaultMarkup}}</includeonly>
 
{{SMWDefaultMarkup}}</includeonly>

Latest revision as of 13:28, 4 July 2023

SMWObjects
Semantic Object Templates:        DecadePlaceTimelineYearDisambiguation
ConceptDocumentEmploymentEventGroupPersonPublicationWebsite

This template provides a standard format for documents.

It must be included at the top of all pages in the document: namespace.

Blue parameters are for a single Wikispooks page name (If no suitable page exists, then pick a title for a future page)
Brown parameters are for numbers
Green parameters are for comma-separated lists of page names (Or planned page names).
Navy parameters are for dates
Orange parameters are for booleans. (Usually, either "Yes" or just leave blank).
Purple parameters are URLs.
Violet parameters are slash-separated lists.
Pink parameters are for coordinates.
Crossed out parameters were formerly available, but have been upgraded. Some may still work, but do not use these.

See document for a list of pages that use this template.

For pages in the main: namespace about documents, use Template:Publication.
Usage:

{{Document
ESSENTIAL DETAILS
|publication_date= PublicationDate (Property:Has publicationDate)
|type={article, essay, paper, book review, letter, memo etc.} (Property:Has documentType)
|authors= Comma separated list of authors. For pseudonyms, use single quotes. If anonymous, use Unknown. (Property:Has author)
|subjects= Comma separated list of subject items. For pseudonyms, use single quotes. If anonymous, use Unknown. (Property:Is about)
|description= A human readable plaintext description of less than 500 characters.(Property:Description)
|source_details = Extra details for the reference, e.g. "#675", "vol. 3, chapter 20", "pp.212-213"... (For ISBNs, use '|ISBN') (Property:Has sourceDetails)
|updated_date=When the document was updated Not Yet Implemented
|iframe_URL=URL of page for display in an iframe.
|source_URL=Link to the source of the document
|local=Address of the wikispooks copy (Property:Has localCopy)
|subjects_detail= note about subjects Deprecate?
|collection=Yes (Use if this is a collection of documents)
|draft=Yes (Use for draft documents)
|title=Document title. Usually this is implicit - only specify this if the pagename is different for some reason (such as illegal characters) Not yet implemented?
|recipients= For emails, letters, speeches etc. (Property:Has recipient)
|constitutes= For topics which this document is not about, but directly constitutes (e.g. "censorship", "war propaganda") (Property:Constitutes)
|image= AN image for the document (Recommended, for example the cover if the document is a book)
|image_caption=Caption for the image
|image_width= The default value is "250px"
|AuthorDetail= Short note about the author, (e.g. "Home Office accredited forensic pathologist")
|classification=Original security classification, e.g. "official", "secret", "top secret"... (Property:Has classification)
|classification_detail= Optional note about the security classification
|leaked=Yes (Use for leaked documents)
|declassified=Yes (Use for declassified documents)
|declassified_date=When the document was declassified
|declassified_detail= Optional Note about the declassification
|author_type=Explanatory note about authorship, e.g. "alleged"
|version=For versioned documents
|warning=Plaintext warning
FOR FOREIGN TRANSLATIONS:
|original_language=Language name for non-English originals (Property:Has originalLanguage)
|original_title=The title of the original document (Property:Has originalTitle)
|translators=Who translated it (Property:Has translator)
|translators_detail=Short note on the translators
FOR AUDIO (readings):
|audio_URL=URL of this audio version
|audio_name=Name of the source of the audio version
FOR BOOKS:
|webpage=URL of this book
|ISBN= ISBN number (Property:Has ISBN)
|publisher_URL=Web address of the publishers
|publisher_name=Name of the publishers
|publisher_detail=Optional extra note about the publishers
OPTIONAL NOTES:
|note= Random spare note
|credit= Note of thanks
OPTIONAL SUBSECTIONS:
|wikipedia = URL of the document's Wikipedia page, if any (Property:Has wikipediaPage)
|wikipedia_protection = Set to 1 if the wikipedia page is edit protected, 0 or empty otherwise (Property:Has wikipediaProtection)
|authors_note= Author's Note subsection
|comment= Wikispooks Comment subsection about why this is relevant (Recommended) Depreceated, please use Template:Rate about the document on your user page instead[1]
|see_also= See Also subsection (Use for related pages which cannot be linked in from the text) Deprecated, but still available in emergencies
}}

  1. Ask an administrator if you need help with this.