Difference between revisions of "Template:Newspaper article ref"
Line 84: | Line 84: | ||
#if: {{{day|}}} | #if: {{{day|}}} | ||
| <nowiki> </nowiki>{{{day}}}, | | <nowiki> </nowiki>{{{day}}}, | ||
− | | | + | |}} |
− | |||
}} {{{year}}}: "{{{article_title}}}" {{ | }} {{{year}}}: "{{{article_title}}}" {{ | ||
#if: {{{author|}}} | #if: {{{author|}}} | ||
| by {{{author}}} | | by {{{author}}} | ||
− | | | + | |}} |
− | }}{{ | + | {{ |
#if: {{{newspaper_title|}}} | #if: {{{newspaper_title|}}} | ||
|, ''{{{newspaper_title}}}''{{ | |, ''{{{newspaper_title}}}''{{ | ||
#if: {{{page|}}} | #if: {{{page|}}} | ||
|, {{{page}}} | |, {{{page}}} | ||
− | | | + | |}} |
− | |||
| | | | ||
}}.</includeonly> | }}.</includeonly> |
Revision as of 11:55, 23 September 2014
Generally, this template should not be used directly. Rather, one should usually 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.
Purpose
This template and its heirs add an explicitly semantic, machine-readable, bibliographic layer to a simple unordered list item.
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&ndash31). |
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. Surnames can be wikified, but should be done so manually. |
A series of template calls to the "newspaper article" template family should constitute the sole parameter of a call to Template:Newspaper articles.
Example source
A simple example of a semantic "Newspaper articles" section would be entered as so:
{{Newspaper articles | {{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.
Sample 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
- April 18, 1967: "Gerstenslager's Last Buggy in Marshallville"
, The Daily Record, p. 3.