Difference between revisions of "Template:Publication"
(Call for input) |
(Stub) |
||
Line 13: | Line 13: | ||
|type={article, essay, paper, book review, letter, memo etc.} ''([[Property:Has documentType]])'' | |type={article, essay, paper, book review, letter, memo etc.} ''([[Property:Has documentType]])'' | ||
|{{PURPLE|source_URL}}=URL of an online source, if it is available online | |{{PURPLE|source_URL}}=URL of an online source, if it is available online | ||
− | |||
|{{BLUE|source_name}}=General name of the source, e.g. "[[Unwelcome Guests]]", "[[Cryptome]]", ... ''([[Property:Sourced from]])'' | |{{BLUE|source_name}}=General name of the source, e.g. "[[Unwelcome Guests]]", "[[Cryptome]]", ... ''([[Property:Sourced from]])'' | ||
− | |||
|{{GREEN|authors}}= Comma separated list of authors. For pseudonyms, use single quotes. If anonymous, use ''Unknown''. ''([[Property:Has author]])'' | |{{GREEN|authors}}= Comma separated list of authors. For pseudonyms, use single quotes. If anonymous, use ''Unknown''. ''([[Property:Has author]])'' | ||
|{{GREEN|subjects}}= Comma separated list of subject items. For pseudonyms, use single quotes. If anonymous, use ''Unknown''. ''([[Property:Is about]])'' | |{{GREEN|subjects}}= Comma separated list of subject items. For pseudonyms, use single quotes. If anonymous, use ''Unknown''. ''([[Property:Is about]])'' | ||
Line 23: | Line 21: | ||
|collection=Yes (Use if this is a collection of documents) | |collection=Yes (Use if this is a collection of documents) | ||
|draft=Yes (Use for draft documents) | |draft=Yes (Use for draft documents) | ||
− | |image= | + | |image= An image for the publication (Recommended, for example the cover if the publication is a book) |
− | |image_width= The default value is "250px" | + | |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=Original security classification, e.g. "official", "secret", "top secret"... ''([[Property:Has classification]])'' | ||
|classification_detail= Optional note about the security classification | |classification_detail= Optional note about the security classification | ||
Line 33: | Line 33: | ||
|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|constitutes}} = What the document constitutes ''([[Property:Constitutes]])'' | ||
+ | |{{GREEN|ON_constitutes}} = What the document ON constitutes ''([[Property:ON_constitutes]])'' | ||
''FOR FOREIGN TRANSLATIONS:'' | ''FOR FOREIGN TRANSLATIONS:'' | ||
|original_language=Language name for non-English originals ''([[Property:Has originalLanguage]])'' | |original_language=Language name for non-English originals ''([[Property:Has originalLanguage]])'' | ||
Line 47: | Line 49: | ||
|authors_note= ''Author's Note'' subsection | |authors_note= ''Author's Note'' subsection | ||
}} | }} | ||
− | </poem> | + | </poem></noinclude><includeonly>{{SMWObjectHeader|Concept}}{{#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}}<!-- |
+ | Wikipedia Display template | ||
+ | -->{{Infobox | ||
+ | | above = <span class="fn">{{Infobox class icon}} {{{name|{{PAGENAME}}}}}</span></includeonly>{{#if: {{{glossary|}}}| [[image:Glossary.png|link=WikiSpooks:Glossary|26px]]}}{{#if: {{{constitutes|}}}|<br/>({{ArrayMapListLink|{{{constitutes|}}}}})}} | ||
+ | | image = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|}}}|size={{{image_width|}}}|sizedefault=250px|alt={{{image_alt|}}}}} | ||
+ | | caption = {{{image_caption|}}} | ||
+ | | image2 = {{#invoke:InfoboxImage|InfoboxImage|image={{{logo|}}}|ize={{{logo_width|}}}|sizedefault=250px|alt={{{logo_alt|}}}}} | ||
+ | | caption2 = {{{logo_caption|}}} | ||
+ | | label1 = Type | ||
+ | | data1 = {{DisplayDocType|{{{type|}}}|{{{draft|}}}|{{{collection|}}}}} | ||
+ | | label2 = Publication date | ||
+ | | data2 = {{{publication_date|}}} | ||
+ | | label3 = Author(s) | ||
+ | | data3 = {{#if: {{{authors|}}}|{{ArrayMapListLink|{{{authors|}}}}}|Unknown[[Category:Authorless publications]]}}{{#if: {{{author_type|}}} | ({{{author_type}}})|}} | ||
+ | | label4 = Subjects | ||
+ | | data4 = {{ArrayMapListLink|{{{subjects|}}}}} | ||
+ | | label5 =Publishers | ||
+ | | data5 ={{#if: {{{PublisherName|}}} | {{Agent|Has publisher|{{{publisher_name|}}}|{{#if: {{{publisher_URL|}}}| <nowiki>[</nowiki>[{{{publisher_URL}}} Link]<nowiki>]</nowiki>}} {{{publisher_detail|}}} }} |}} | ||
+ | | label6 = Classification | ||
+ | | data6 = {{DisplayClassification|{{{classification|}}}|{{{classification_detail|}}}|{{{Leaked|}}}|{{{declassified|}}}|{{{declassified_date|}}}|{{{declassified_detail|}}}}} | ||
+ | | label8 = Version | ||
+ | | data8 = {{{version|}}} | ||
+ | | label22 = Original language | ||
+ | | data22 = {{ArrayMapListLink|{{{original_language|}}}}} | ||
+ | | label26 = Original title | ||
+ | | data26 = {{ArrayMapListLink|{{{original_title|}}}}} | ||
+ | | label27 = Interest of | ||
+ | | data27 = {{ArrayMapBulletedList|{{#ask: [[Has interest::{{PAGENAME}}]]}}}} | ||
+ | | label31 = Source | ||
+ | | data31 = {{#if: {{{source_name|}}}{{{source_URL|}}{{{source_detail|}}}|{{DisplaySource|{{{source_URL|}}}|{{{source_name|}}}|{{{source_detail|}}}}}<br/>}} | ||
+ | | label34 = Website | ||
+ | | data34 = {{{Website|}}} | ||
+ | | label36 = [[Wikipedia]] page | ||
+ | | data36 = {{WikipediaLink|{{{wikipedia|{{{WP|}}}}}}|{{{wikipedia_protection|}}}}} | ||
+ | | label40 = Subpage(s) | ||
+ | | data40 = {{SubpageList}} | ||
+ | }}</includeonly> |
Revision as of 12:23, 24 August 2015
Concept • Document • Employment • Event • Group • Person • Publication • Website |
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 parameterswere 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.
NOT YET OPERATIONAL. DRAFT FORMAT ONLY - Seeking input from other Editors
Idea: How about 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
|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 =
| label3 = Author(s)
| data3 = Unknown
| label4 = Subjects
| data4 =
| label5 =Publishers
| data5 =
| label6 = Classification
| data6 =
| label8 = Version
| data8 =
| 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>