Difference between revisions of "Template:Publication"
(test) |
|||
(19 intermediate revisions by the same user not shown) | |||
Line 20: | Line 20: | ||
|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) | ||
+ | |{{PURPLE|modernhistoryproject}} = URL of the document's modernhistoryproject page, if any ''([[Property:Has modernhistoryproject]])'' | ||
|{{PURPLE|wikipedia}} = URL of the document's Wikipedia page, if any ''([[Property:Has wikipediaPage]])'' | |{{PURPLE|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]])'' | + | |{{ORANGE|wikipedia_protection}} = Set to 1 if the wikipedia page is edit protected, 0 or empty otherwise ''([[Property:Has wikipediaProtection]])'' |
+ | |{{GREEN|wikipedia_problems}} = A comma-separated list of problems, 1 or more of the following possibilities: {censored, bias, gaps, twisted, unclear} ''([[Property:Has wikipediaProblem]])'' {{RED|Not Implemented As of July 2017}} | ||
+ | |{{PURPLE|wikiquote}} = URL of the document's wikiquote page, if any ''([[Property:Has wikiquote]])'' | ||
+ | |{{PURPLE|amazon}} = URL of the document's Amazon page, if any ''([[Property:Has amazon]])'' | ||
+ | |{{BLUE|local}}=Address of the wikispooks copy ''([[Property:Has localCopy]])'' | ||
|image= An image for the publication (Recommended, for example the cover if the publication is a book) | |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_alt = Alt text for the image | ||
Line 33: | Line 38: | ||
|declassified_detail= Optional Note about the declassification | |declassified_detail= Optional Note about the declassification | ||
|author_type=Explanatory note about authorship, e.g. "alleged" | |author_type=Explanatory note about authorship, e.g. "alleged" | ||
+ | |{{ORANGE|titular_logo}} = Set to 1 if the logo includes the title ''([[Property:Has titularLogo]])'' | ||
|version=For versioned documents | |version=For versioned documents | ||
|{{GREEN|editors}}= Comma separated list of editors. For pseudonyms, use single quotes. If anonymous, use ''Unknown''. ''([[Property:Has editor]])'' | |{{GREEN|editors}}= Comma separated list of editors. For pseudonyms, use single quotes. If anonymous, use ''Unknown''. ''([[Property:Has editor]])'' | ||
Line 39: | Line 45: | ||
|{{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]])'' | ||
+ | ''FOR LAWS'' | ||
+ | |{{NAVY|effective_date}}= When this law was/will become effective ''([[Property:Has effectiveDate]])'' | ||
''FOR PERIODICALS, MAGAZINES, etc:'' | ''FOR PERIODICALS, MAGAZINES, etc:'' | ||
|ISBN= ISBN number ''([[Property:Has ISBN]])'' | |ISBN= ISBN number ''([[Property:Has ISBN]])'' | ||
Line 56: | Line 64: | ||
|{{PURPLE|imdb}} = URL of the publications's IMDB page ''([[Property:Has imdb]])'' | |{{PURPLE|imdb}} = URL of the publications's IMDB page ''([[Property:Has imdb]])'' | ||
}} | }} | ||
− | </poem></noinclude><includeonly>{{DISPLAYTITLE:''{{FULLPAGENAME}}''}}{{SMWObjectHeader|Publication}}[[Has publicationDate::{{{ | + | </poem></noinclude><includeonly>{{DISPLAYTITLE:''{{FULLPAGENAME}}''}}{{SMWObjectHeader|Publication}}[[Has publicationDate::{{{publication_date|}}}| ]]{{#if: {{{logo|}}}|[[Has logo::Image:{{{logo}}}| ]][[Has logo2::Image:{{{logo}}}| ]]}}{{ONPropertyPair|constitutes|{{{constitutes|}}}|{{{ON_constitutes|}}}}}{{#if: {{{type|}}}|[[Has documentType::{{{type}}}| ]]}}{{#if: {{{image|}}}|[[Has image::File:{{{image|}}}| ]][[Has image2::File:{{{image|}}}| ]]}}<!-- |
+ | -->{{#if: {{{amazon|}}}|[[Has amazon::{{{amazon}}}| ]]}}<!-- | ||
+ | -->{{#if: {{{wikipedia|}}}|[[Has wikipediaPage2::{{{wikipedia}}}| ]]}}{{#if: {{{WP|}}}|[[Has wikipediaPage2::{{{WP}}}| ]]}}{{SMWDefaultMarkup}}{{ArrayMapProperty|{{{founders|}}}|Has founder}}{{#if: {{{key_properties|}}}|[[Has keyProperties::{{{key_properties|}}}| ]]}}{{#if: {{{key_property_headers|}}}|[[Has keyPropertyHeaders::{{{key_property_headers}}}| ]]}}[[Start::{{{start|}}}| ]][[End::{{{end|}}}| ]][[Has ISBN::{{{ISBN|}}}| ]][[Has imdb::{{{imdb|}}}| ]]{{ArrayMapProperty|{{{recipients|}}}|Has recipient}}{{ArrayMapProperty|{{{subjects|}}}|Is about}}{{#if: {{{titular_logo|}}}|[[Has titularLogo::true| ]]}}<!-- | ||
Wikipedia Display template | Wikipedia Display template | ||
-->{{Infobox | -->{{Infobox | ||
− | | above = <span class="fn">{{Infobox class icon}} {{{name|{{PAGENAME}}}}}</span | + | | above = <span class="fn">{{Infobox class icon}} {{{name|{{PAGENAME}}}}}</span>{{#if: {{{glossary|}}}| [[image:Glossary.png|link=Wikispooks:Glossary|26px]]}}{{#if: {{{wikipedia_protection|}}}|{{External icons/Xicon|{{{wikipedia|}}}|Has wikipediaPage|wikipedia-padlock-icon.png}}|{{External icons/Xicon|{{{wikipedia|}}}|Has wikipediaPage|wikipedia-icon.png}}}}{{#if: {{{constitutes|}}}|<br/>({{ArrayMapListLink|{{{constitutes|}}}}})}}{{External icons |
+ | |amazon = {{{amazon|}}} | ||
+ | |facebook = {{{facebook|}}} | ||
+ | |historycommons = {{{historycommons|}}} | ||
+ | |imdb = {{{imdb|}}} | ||
+ | |linkedin = {{{linkedin|}}} | ||
+ | |modernhistoryproject = {{{modernhistoryproject|}}} | ||
+ | |namebase = {{{namebase|}}} | ||
+ | |nndb = {{{nndb|}}} | ||
+ | |powerbase = {{{powerbase|}}} | ||
+ | |sourcewatch = {{{sourcewatch|}}} | ||
+ | |spartacus = {{{spartacus|}}} | ||
+ | |twitter = {{{twitter|}}} | ||
+ | |wikiquote = {{{wikiquote|}}} | ||
+ | |youtube = {{{youtube|}}} | ||
+ | }} | ||
| image = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|}}}|size={{{image_width|}}}|sizedefault=250px|alt={{{image_alt|}}}}} | | image = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|}}}|size={{{image_width|}}}|sizedefault=250px|alt={{{image_alt|}}}}} | ||
| caption = {{{image_caption|}}} | | caption = {{{image_caption|}}} | ||
Line 68: | Line 93: | ||
| label2 = Publication date | | label2 = Publication date | ||
| data2 = {{{publication_date|}}} | | data2 = {{{publication_date|}}} | ||
− | | label3 = Founder(s) | + | | label3 = Effective date |
− | | | + | | data3 = {{{effective_date|}}} |
+ | | label4 = Founder(s) | ||
+ | | data4 = {{ArrayMapListLink|{{{founders|}}}}} | ||
| label5 = Version | | label5 = Version | ||
| data5 = {{{version|}}} | | data5 = {{{version|}}} | ||
Line 77: | Line 104: | ||
| data7 = {{{end|}}} | | data7 = {{{end|}}} | ||
| label8 = Author(s) | | label8 = Author(s) | ||
− | | data8 = {{#if: {{{authors|}}}|{{ArrayMapPropertyBulletedListLink|{{{authors|}}}|Has author}}| | + | | data8 = {{#if: {{{authors|}}}|{{ArrayMapPropertyBulletedListLink|{{{authors|}}}|Has author}}|[[Category:Authorless publications]]}}{{#if: {{{author_type|}}} | ({{{author_type}}})|}} |
| label9 = Producer(s) | | label9 = Producer(s) | ||
− | | data9 = {{{producers|}}} | + | | data9 = {{ArrayMapListLink|{{{producers|}}}}} |
| label10 = Editor(s) | | label10 = Editor(s) | ||
| data10 = {{{editors|}}} | | data10 = {{{editors|}}} | ||
Line 100: | Line 127: | ||
| label27 = Interest of | | label27 = Interest of | ||
| data27 = {{ArrayMapBulletedList|{{#ask: [[Has interest::{{PAGENAME}}]]}}}} | | data27 = {{ArrayMapBulletedList|{{#ask: [[Has interest::{{PAGENAME}}]]}}}} | ||
+ | | label28 = Interests | ||
+ | | data28 = {{ArrayMapPropertyListLink|{{{interests|}}}|Has interest}} | ||
| label29 = Founder of | | label29 = Founder of | ||
| data29 = {{ArrayMapBulletedList|{{#ask: [[Has founder::{{PAGENAME}}]]}}}} | | data29 = {{ArrayMapBulletedList|{{#ask: [[Has founder::{{PAGENAME}}]]}}}} | ||
Line 106: | Line 135: | ||
| label34 = Website | | label34 = Website | ||
| data34 = {{{Website|}}} | | data34 = {{{Website|}}} | ||
− | |||
− | |||
− | |||
− | |||
| label40 = Subpage(s) | | label40 = Subpage(s) | ||
| data40 = {{SubpageList}} | | data40 = {{SubpageList}} | ||
+ | | label44 = Local copy | ||
+ | | data44 = {{#ifexist: {{{local|}}} | [[Has localCopy::{{{local}}}]] | {{#if:{{#pos:{{{local|}}}|http}} | [{{{local}}} Here] }} }} | ||
+ | |below=[[Has description::{{{description|}}}]] | ||
}}</includeonly> | }}</includeonly> |
Latest revision as of 11:38, 16 May 2024
![]() |
Concept • Document • Employment • Event • Group • Person • Publication • Website |
This template provides a standard format for pages about publications, whether films, leaflets, books, magazines or other such.
It is not for pages in the document: namespace - in this case, use Template:Document instead. Also do not use it for websites - use Template:Website 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.
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)
|modernhistoryproject = URL of the document's modernhistoryproject page, if any (Property:Has modernhistoryproject)
|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)
|wikipedia_problems = A comma-separated list of problems, 1 or more of the following possibilities: {censored, bias, gaps, twisted, unclear} (Property:Has wikipediaProblem) Not Implemented As of July 2017
|wikiquote = URL of the document's wikiquote page, if any (Property:Has wikiquote)
|amazon = URL of the document's Amazon page, if any (Property:Has amazon)
|local=Address of the wikispooks copy (Property:Has localCopy)
|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"
|titular_logo = Set to 1 if the logo includes the title (Property:Has titularLogo)
|version=For versioned documents
|editors= Comma separated list of editors. For pseudonyms, use single quotes. If anonymous, use Unknown. (Property:Has editor)
|producers= Comma separated list of producers. For pseudonyms, use single quotes. If anonymous, use Unknown. (Property:Has producer)
|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 LAWS
|effective_date= When this law was/will become effective (Property:Has effectiveDate)
FOR PERIODICALS, MAGAZINES, etc:
|ISBN= ISBN number (Property:Has ISBN)
|start = When the concept was founded (Property:Start)
|end = (Where applicable), when the concept ended (Property:End)[Example Needed]
|founders= Comma separated list of founders (Property:Has founder)
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
FOR FILMS:
|imdb = URL of the publications's IMDB page (Property:Has imdb)
}}