Difference between revisions of "Template:Publication"

From Wikispooks
Jump to navigation Jump to search
(Automatic Title in Italics)
(Recipients param)
Line 32: Line 32:
 
|author_type=Explanatory note about authorship, e.g. "alleged"
 
|author_type=Explanatory note about authorship, e.g. "alleged"
 
|version=For versioned documents
 
|version=For versioned documents
 +
|{{GREEN|recipients}}= For emails, letters, speeches etc. ''([[Property:Has recipient]])''
 
|{{GREEN|constitutes}} = What the document constitutes ''([[Property:Constitutes]])''
 
|{{GREEN|constitutes}} = What the document constitutes ''([[Property:Constitutes]])''
 
|{{GREEN|ON_constitutes}}  = What the document ON constitutes ''([[Property:ON_constitutes]])''
 
|{{GREEN|ON_constitutes}}  = What the document ON constitutes ''([[Property:ON_constitutes]])''
Line 48: Line 49:
 
|authors_note= ''Author's Note'' subsection
 
|authors_note= ''Author's Note'' subsection
 
}}
 
}}
</poem></noinclude><includeonly>{{DISPLAYTITLE:''{{FULLPAGENAME}}''}}{{SMWObjectHeader|Publication}}{{#if: {{{logo|}}}|[[Has logo::Image:{{{logo}}}| ]][[Has logo2::Image:{{{logo}}}| ]]}}{{ONPropertyPair|constitutes|{{{constitutes|}}}|{{{ON_constitutes|}}}}}{{Description|{{{description|}}}}}{{#if: {{{type|}}}|[[Has documentType::{{{type}}}| ]]}}{{#if: {{{image|}}}|[[Has image::File:{{{image|}}}| ]][[Has image2::File:{{{image|}}}| ]]}}{{#if: {{{wikipedia|}}}|[[Has wikipediaPage::{{{wikipedia}}}| ]]}}{{#if: {{{WP|}}}|[[Has wikipediaPage::{{{WP}}}| ]]}}{{SMWDefaultMarkup}}{{#if: {{{key_properties|}}}|[[Has keyProperties::{{{key_properties|}}}| ]]}}{{#if: {{{key_property_headers|}}}|[[Has keyPropertyHeaders::{{{key_property_headers}}}| ]]}}{{ArrayMapProperty|{{{subjects|}}}|Is about}}<!--
+
</poem></noinclude><includeonly>{{DISPLAYTITLE:''{{FULLPAGENAME}}''}}{{SMWObjectHeader|Publication}}{{#if: {{{logo|}}}|[[Has logo::Image:{{{logo}}}| ]][[Has logo2::Image:{{{logo}}}| ]]}}{{ONPropertyPair|constitutes|{{{constitutes|}}}|{{{ON_constitutes|}}}}}{{Description|{{{description|}}}}}{{#if: {{{type|}}}|[[Has documentType::{{{type}}}| ]]}}{{#if: {{{image|}}}|[[Has image::File:{{{image|}}}| ]][[Has image2::File:{{{image|}}}| ]]}}{{#if: {{{wikipedia|}}}|[[Has wikipediaPage::{{{wikipedia}}}| ]]}}{{#if: {{{WP|}}}|[[Has wikipediaPage::{{{WP}}}| ]]}}{{SMWDefaultMarkup}}{{#if: {{{key_properties|}}}|[[Has keyProperties::{{{key_properties|}}}| ]]}}{{#if: {{{key_property_headers|}}}|[[Has keyPropertyHeaders::{{{key_property_headers}}}| ]]}}{{ArrayMapProperty|{{{recipients|}}}|Has recipient}}{{ArrayMapProperty|{{{subjects|}}}|Is about}}<!--
 
Wikipedia Display template
 
Wikipedia Display template
 
-->{{Infobox
 
-->{{Infobox
Line 60: Line 61:
 
| label2  = Publication&nbsp;date
 
| label2  = Publication&nbsp;date
 
| data2    = {{{publication_date|}}}
 
| data2    = {{{publication_date|}}}
| label3   = Author(s)
+
| label5  = Version
| data3   = {{#if: {{{authors|}}}|{{ArrayMapListLink|{{{authors|}}}}}|Unknown[[Category:Authorless publications]]}}{{#if: {{{author_type|}}} |&nbsp;({{{author_type}}})|}}
+
| data5    = {{{version|}}}
| label4   = Subjects
+
| label8   = Author(s)
| data4   = {{ArrayMapListLink|{{{subjects|}}}}}
+
| data8   = {{#if: {{{authors|}}}|{{ArrayMapListLink|{{{authors|}}}}}|Unknown[[Category:Authorless publications]]}}{{#if: {{{author_type|}}} |&nbsp;({{{author_type}}})|}}
| label5 =Publishers  
+
| label11  = Recipient(s)
| data5 ={{#if: {{{PublisherName|}}} | {{Agent|Has publisher|{{{publisher_name|}}}|{{#if: {{{publisher_URL|}}}| <nowiki>[</nowiki>[{{{publisher_URL}}} Link]<nowiki>]</nowiki>}} {{{publisher_detail|}}} }} |}}
+
| data11    = {{ArrayMapListLink|{{{recipients|}}}}}
| label6   = Classification
+
| label14   = Subjects
| data6   = {{DisplayClassification|{{{classification|}}}|{{{classification_detail|}}}|{{{Leaked|}}}|{{{declassified|}}}|{{{declassified_date|}}}|{{{declassified_detail|}}}}}
+
| data14   = {{ArrayMapListLink|{{{subjects|}}}}}
| label8  = Version
+
| label15 =Publishers  
| data8    = {{{version|}}}
+
| data15 ={{#if: {{{PublisherName|}}} | {{Agent|Has publisher|{{{publisher_name|}}}|{{#if: {{{publisher_URL|}}}| <nowiki>[</nowiki>[{{{publisher_URL}}} Link]<nowiki>]</nowiki>}} {{{publisher_detail|}}} }} |}}
 +
| label16   = Classification
 +
| data16   = {{DisplayClassification|{{{classification|}}}|{{{classification_detail|}}}|{{{Leaked|}}}|{{{declassified|}}}|{{{declassified_date|}}}|{{{declassified_detail|}}}}}
 
| label22  = Original&nbsp;language
 
| label22  = Original&nbsp;language
 
| data22    = {{ArrayMapListLink|{{{original_language|}}}}}
 
| data22    = {{ArrayMapListLink|{{{original_language|}}}}}

Revision as of 12:43, 24 August 2015

SMWObjects
Semantic Object Templates:        DecadePlaceTimelineYearDisambiguation
ConceptDocumentEmploymentEventGroupPersonPublicationWebsite

This template provides a standard format for pages about publications, whether leaflets, books or other such.

It is not for pages in the document: namespace - in this case, use Template:Document instead.

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 publication for a list of pages that use this template.

To do: A link to corresponding Document: namespace(s)? Usage:

{{Publication
ESSENTIAL DETAILS
|publication_date= PublicationDate (Property:Has publicationDate)
|type={article, essay, paper, book review, letter, memo etc.} (Property:Has documentType)
|source_URL=URL of an online source, if it is available online
|source_name=General name of the source, e.g. "Unwelcome Guests", "Cryptome", ... (Property:Sourced from)
|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)
OPTIONAL DETAILS:
|description= A human readable plaintext description of less than 500 characters.(Property:Description)
|subtitle=The subtitle, e.g. of a book
|collection=Yes (Use if this is a collection of documents)
|draft=Yes (Use for draft documents)
|image= An image for the publication (Recommended, for example the cover if the publication is a book)
|image_alt = Alt text for the image
|image_width = The default value is "250px"
|image_caption = Caption for the image
|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
|recipients= For emails, letters, speeches etc. (Property:Has recipient)
|constitutes = What the document constitutes (Property:Constitutes)
|ON_constitutes = What the document ON constitutes (Property:ON_constitutes)
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)
|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
}}

| image = | caption = | image2 = | caption2 = | label1 = Type | data1 = file of unspecified type | label2 = Publication date | data2 = | label5 = Version | data5 = | label8 = Author(s) | data8 = Unknown | label11 = Recipient(s) | data11 = | label14 = Subjects | data14 = | label15 =Publishers | data15 = | label16 = Classification | data16 = | label22 = Original language | data22 = | label26 = Original title | data26 = | label27 = Interest of | data27 = | label31 = Source | data31 = Unknown
| label34 = Website | data34 = | label36 = Wikipedia page | data36 = | label40 = Subpage(s) | data40 =


}}</includeonly>