Difference between revisions of "Template:Newspaper article ref"
(Created page with "<includeonly>* {{#if {{{month|}}} | {{{month}}}|}}{{#if: {{{day|}}} | {{{day}}},|}} {{{year}}}: ''{{{article_title}}}''{{ #if: {{{author|}}} | by {{{author}}} |}}{{#if {{{news...") |
m (WikiVisor moved page Template:Newspaper article to Template:Newspaper article ref without leaving a redirect) |
||
(30 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | <includeonly>* {{#if {{{month|}}} | {{{month}}} | + | <noinclude> |
+ | ==Purpose== | ||
+ | This template and its heirs add an explicitly semantic, machine-readable, bibliographic layer to a simple unordered list item. | ||
+ | |||
+ | ==Article templates for specific publications== | ||
+ | When possible, one should use the appropriate subtemplate of this template. To see a list of available newspaper titles or to request the creation of a new subtemplate, please see [[User:Merlin/spellbook/newspapers]]. | ||
+ | |||
+ | ===Usage=== | ||
+ | To create a single bibliographic item, locate the appropriate subtemplate and provide the following parameters (when known and applicable): | ||
+ | {| class="wikitable" | ||
+ | |- | ||
+ | ! Parameter name | ||
+ | ! Example value | ||
+ | ! Note | ||
+ | |- | ||
+ | || title | ||
+ | || The Title of the Newspaper Article | ||
+ | || Just the title in plaintext. Do not add quotation marks, style, etc. | ||
+ | |- | ||
+ | || year | ||
+ | || YYYY | ||
+ | || The year of publication, four digits. | ||
+ | |- | ||
+ | || day | ||
+ | || DD | ||
+ | || The day of the month of publication, two digits (01–31). | ||
+ | |- | ||
+ | || month | ||
+ | || MM | ||
+ | || The month of the year of publication, two digits (01–12). | ||
+ | |- | ||
+ | || page | ||
+ | || <nowiki>{{Cite page|1}}</nowiki> | ||
+ | || See [[Template:Cite page]] or [[Template:Cite pages]]. | ||
+ | |- | ||
+ | || section | ||
+ | || S | ||
+ | || The section of the periodical. | ||
+ | |- | ||
+ | || author | ||
+ | || <nowiki>Jane {{Surname|Doe}}</nowiki> | ||
+ | || The author or authors. [[Template:Surname]] can be used to identify surnames. | ||
+ | |} | ||
+ | |||
+ | A series of template calls to the "newspaper article" template family should constitute the sole parameter of a call to [[Template:Newspaper article refs]]. | ||
+ | ===Example source=== | ||
+ | A simple example of a semantic "Newspaper articles" section would be entered as so: | ||
+ | <pre> | ||
+ | {{Daily Record article | ||
+ | | title = One Heckuva Big Buildings: Visitors Awed By Gerstenslager Co.'s Newest Facility | ||
+ | | author = Jane {{Surname|Bablack}} | ||
+ | | year = 1955 | ||
+ | | day = 16 | ||
+ | | month = 12 | ||
+ | }} | ||
+ | {{Daily Record article | ||
+ | | title = Gerstenslager's Last Buggy in Marshallville | ||
+ | | year = 1967 | ||
+ | | day = 18 | ||
+ | | month = 04 | ||
+ | | page = {{Cite page|3}} | ||
+ | }} | ||
+ | </pre> | ||
+ | The whitespace (empty spaces, new lines, etc.) is [https://meta.wikimedia.org/wiki/Help:Newlines_and_spaces mostly ignored] by the wiki software; it is stylized above solely for the sake of readability. | ||
+ | |||
+ | ===Example output=== | ||
+ | The two calls to [[Template:Daily Record article]] defined above produce the following:<div class="mw-code"> | ||
+ | {{Daily Record article | ||
+ | | title = One Heckuva Big Buildings: Visitors Awed By Gerstenslager Co.'s Newest Facility | ||
+ | | author = Jane {{Surname|Bablack}} | ||
+ | | year = 1955 | ||
+ | | day = 16 | ||
+ | | month = 12 | ||
+ | }} | ||
+ | {{Daily Record article | ||
+ | | title = Gerstenslager's Last Buggy in Marshallville | ||
+ | | year = 1967 | ||
+ | | day = 18 | ||
+ | | month = 04 | ||
+ | | page = {{Cite page|3}} | ||
+ | }} | ||
+ | </div> | ||
+ | |||
+ | ==Direct use of this template== | ||
+ | When a publication is likely to be relevant to the project only once or twice, direct use of this template is appropriate. Usage is similar to above, with one notable exception: there is no <code>title</code> parameter. Rather, there is an <code>article_title</code> parameter and a <code>newspaper_title</code> parameter. The <code>newspaper_title</code>, if supplied, will be displayed in the same location as "The Daily Record" examples above and it will be italicized, but it will not a link unless that brackets are added manually. | ||
+ | |||
+ | ===Example source=== | ||
+ | <pre> | ||
+ | {{Newspaper article ref | ||
+ | | article_title=From Carriages to Cars: Over the Years, The Gerstenslager Co. Has Seen the Ride Go From Horse-Drawn to Horsepower | ||
+ | | year=1997 | ||
+ | | day=17 | ||
+ | | month=1 | ||
+ | | author=[[Wooster Area Chamber of Commerce]] | ||
+ | }} | ||
+ | {{Newspaper article ref | ||
+ | | newspaper_title=The Plain Dealer | ||
+ | | article_title=Wooster—To Native of Wayne County, The Name George Gerstenslager is What the Name Henry Ford is to Detroiters | ||
+ | | year=1968 | ||
+ | | month=07 | ||
+ | | day=19 | ||
+ | }} | ||
+ | </pre> | ||
+ | |||
+ | ===Example output=== | ||
+ | The two calls to [[Template:Newspaper article ref]] defined above produce the following:<div class="mw-code"> | ||
+ | {{Newspaper article ref | ||
+ | | article_title=From Carriages to Cars: Over the Years, The Gerstenslager Co. Has Seen the Ride Go From Horse-Drawn to Horsepower | ||
+ | | year=1997 | ||
+ | | day=17 | ||
+ | | month=1 | ||
+ | | author=[[Wooster Area Chamber of Commerce]] | ||
+ | }} | ||
+ | {{Newspaper article ref | ||
+ | | newspaper_title=The Plain Dealer | ||
+ | | article_title=Wooster—To Native of Wayne County, The Name George Gerstenslager is What the Name Henry Ford is to Detroiters | ||
+ | | year=1968 | ||
+ | | month=07 | ||
+ | | day=19 | ||
+ | }} | ||
+ | </div> | ||
+ | </noinclude><includeonly>* {{ | ||
+ | #if: {{{month|}}} | ||
+ | | {{MONTHNAME | ||
+ | | {{{month}}} }}{{ | ||
+ | #if: {{{day|}}} | ||
+ | | <nowiki> </nowiki>{{{day}}}, | ||
+ | |}} | ||
+ | }} {{{year}}}: "{{{article_title}}}"{{ | ||
+ | #if: {{{author|}}} | ||
+ | | <nowiki> </nowiki>by {{{author}}} | ||
+ | |}}{{ | ||
+ | #if: {{{newspaper_title|}}} | ||
+ | |, ''{{{newspaper_title}}}''{{ | ||
+ | #if: {{{page|}}} | ||
+ | |, {{{page}}} | ||
+ | |}} | ||
+ | |}}.</includeonly> |
Latest revision as of 05:32, 12 August 2022
Purpose
This template and its heirs add an explicitly semantic, machine-readable, bibliographic layer to a simple unordered list item.
Article templates for specific publications
When possible, one should use the appropriate subtemplate of this template. To see a list of available newspaper titles or to request the creation of a new subtemplate, please see User:Merlin/spellbook/newspapers.
Usage
To create a single bibliographic item, locate the appropriate subtemplate and provide the following parameters (when known and applicable):
Parameter name | Example value | Note |
---|---|---|
title | The Title of the Newspaper Article | Just the title in plaintext. Do not add quotation marks, style, etc. |
year | YYYY | The year of publication, four digits. |
day | DD | The day of the month of publication, two digits (01–31). |
month | MM | The month of the year of publication, two digits (01–12). |
page | {{Cite page|1}} | See Template:Cite page or Template:Cite pages. |
section | S | The section of the periodical. |
author | Jane {{Surname|Doe}} | The author or authors. Template:Surname can be used to identify surnames. |
A series of template calls to the "newspaper article" template family should constitute the sole parameter of a call to Template:Newspaper article refs.
Example source
A simple example of a semantic "Newspaper articles" section would be entered as so:
{{Daily Record article | title = One Heckuva Big Buildings: Visitors Awed By Gerstenslager Co.'s Newest Facility | author = Jane {{Surname|Bablack}} | year = 1955 | day = 16 | month = 12 }} {{Daily Record article | title = Gerstenslager's Last Buggy in Marshallville | year = 1967 | day = 18 | month = 04 | page = {{Cite page|3}} }}
The whitespace (empty spaces, new lines, etc.) is mostly ignored by the wiki software; it is stylized above solely for the sake of readability.
Example output
The two calls to Template:Daily Record article defined above produce the following:
- December 16, 1955: "One Heckuva Big Buildings: Visitors Awed By Gerstenslager Co.'s Newest Facility" by Jane Bablack, The Daily Record.
- April 18, 1967: "Gerstenslager's Last Buggy in Marshallville", The Daily Record, p. 3.
Direct use of this template
When a publication is likely to be relevant to the project only once or twice, direct use of this template is appropriate. Usage is similar to above, with one notable exception: there is no title
parameter. Rather, there is an article_title
parameter and a newspaper_title
parameter. The newspaper_title
, if supplied, will be displayed in the same location as "The Daily Record" examples above and it will be italicized, but it will not a link unless that brackets are added manually.
Example source
{{Newspaper article ref | article_title=From Carriages to Cars: Over the Years, The Gerstenslager Co. Has Seen the Ride Go From Horse-Drawn to Horsepower | year=1997 | day=17 | month=1 | author=[[Wooster Area Chamber of Commerce]] }} {{Newspaper article ref | newspaper_title=The Plain Dealer | article_title=Wooster—To Native of Wayne County, The Name George Gerstenslager is What the Name Henry Ford is to Detroiters | year=1968 | month=07 | day=19 }}
Example output
The two calls to Template:Newspaper article ref defined above produce the following:
- January 17, 1997: "From Carriages to Cars: Over the Years, The Gerstenslager Co. Has Seen the Ride Go From Horse-Drawn to Horsepower" by Wooster Area Chamber of Commerce.
- July 19, 1968: "Wooster—To Native of Wayne County, The Name George Gerstenslager is What the Name Henry Ford is to Detroiters", The Plain Dealer.