Difference between revisions of "Template:Document"

From Wikispooks
Jump to navigation Jump to search
m (test)
m (remove horizonal divs and float the image)
Line 60: Line 60:
 
</poem>
 
</poem>
 
</noinclude><includeonly><div style="border-style:solid; border-width:1px; border-color:#a7d7f9; margin:0px; background-color:#f5f5f5; padding: 1.0em; margin-right:0px;">
 
</noinclude><includeonly><div style="border-style:solid; border-width:1px; border-color:#a7d7f9; margin:0px; background-color:#f5f5f5; padding: 1.0em; margin-right:0px;">
 
+
{{#if: {{{Badge|}}} | <div style="float:right;"> {{ {{{Badge}}} }} </div> }}
{| cellspacing="0" cellpadding="0" style="margin:1em 0em 1em; width:100%"
+
{{#if: {{{Image|}}} | <div style="float:right;"> [[File:{{{Image|}}}|250px]] </div>}}
| style="width:70%; vertical-align:top; border:0px solid #9a9a9a; background-color:#f6f6f6;" |
 
<div style="padding:0.0em 0.0em 0.0em 0.0em;font-size:100%;">
 
 
 
 
{{Description|{{{Description|}}}}}
 
{{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}}})|}}|&nbsp;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/>
 
{{#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}}})|}}|&nbsp;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/>
 
{{#if: {{{Subjects|}}}|'''Subjects:''' {{#arraymap:{{{Subjects|}}}|,|@@@@|[[Is about::@@@@]]}} {{{SubjectsDetail|}}}<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/>|{{#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/>
 
{{#if: {{{Subjects|}}}|'''Subjects:''' {{#arraymap:{{{Subjects|}}}|,|@@@@|[[Is about::@@@@]]}} {{{SubjectsDetail|}}}<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/>|{{#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>
+
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/>}}
| style="padding:0 0.5em;" |
+
{{#if: {{{Note|}}} | {{{Note}}} }}  
| style="width:30%; vertical-align:top; border:0px solid #9a9a9a; background-color:#f6f6f6;" |
+
{{#if: {{{Comment|}}} | <br/><br/><big><big>Wikispooks Comment</big></big>
<div style="padding:0.0em 0.0em 0.0em 0.0em;font-size:100%;">
 
{{#if: {{{Badge|}}} | {{ {{{Badge}}} }} }}
 
{{#if: {{{Image|}}} | [[File:{{{Image|}}}|right|250px|]]|}}</div>
 
|}{{#if: {{{Comment|}}} | <br/><br/><big><big>Wikispooks Comment</big></big>
 
 
----
 
----
 
{{{Comment}}} |}}{{#if: {{{AuthorsNote|}}} | <br/><br/><big><big>Author{{#if: {{{Author2|}}}|s'|'s}} Note</big></big>
 
{{{Comment}}} |}}{{#if: {{{AuthorsNote|}}} | <br/><br/><big><big>Author{{#if: {{{Author2|}}}|s'|'s}} Note</big></big>

Revision as of 08:03, 10 February 2014

Bug1.jpg This template has problems: This template needs minor adjustment to fix a whitespace issue. See, for example, What We Need to Learn From TE Lawrence. Use the discussion page to see the debate about this.

This template provides a standard format for documents. It must be included at the top of all pages in the document: namespace.
The blue parameters not be marked up at all; they should be Wikispooks page names (whether or not the page yet exists).
Usage:

{{DocProv
ESSENTIAL DETAILS
|Date= PublicationDate (Property:Has publicationDate)
|DocType={article, essay, paper, book review, letter, memo etc.} (Property:Has documentType)
|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 localCopy)
|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 500 characters.(Property:Description)
|DocTypeCollection=Yes (Use if this is a collection of documents)
|DocTypeDraft=Yes (Use for draft documents)
|Badge= The name of an existing badge template, e.g. "[[template: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
|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
|Constitutes2=... |Constitutes3=... For more things which this document constitutes
|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
|SubjectDetail=
|Subject2Detail= short note about Subject2 ... Subject3Detail=... for more subject details
|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
|AuthorType=Explanatory note about authorship, e.g. "alleged"
|Version=For versioned documents
FOR FOREIGN TRANSLATIONS:
|OriginalLanguage=Language name for non-English originals (Property:Has original language)
|OriginalTitle=The title of the original document (Property:Has originalTitle)
|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)
SMWTEST
|Subjects= Comma separated list of subject items
|SubjectsDetail= note about subjects when preferred comma-delimited subject format is used
}}