Line 1: |
Line 1: |
− | <includeonly>* {{#if: {{{month|}}} | {{MONTHNAME | {{{month}}} }}{{#if: {{{day|}}} | <nowiki> </nowiki>{{{day}}},|}}|}} {{{year}}}: "{{{article_title}}}" {{#if: {{{author|}}} | by {{{author}}}|}}{{#if: {{{newspaper_title|}}}|{{#if:{{{author|}}}|,|}}}} {{#if: {{{newspaper_title|}}}|<nowiki> </nowiki>''{{{newspaper_title}}}''{{#if: {{{page|}}}|, p. {{{page}}}|}}|}}.</includeonly> | + | <noinclude>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): |
| + | {| 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&ndash31). |
| + | |- |
| + | || month |
| + | || MM |
| + | || The month of the year of publication, two digits (01–12). |
| + | |- |
| + | || page |
| + | || p |
| + | || A single digit or a range. |
| + | |- |
| + | || section |
| + | || S |
| + | || The section of the periodical. |
| + | |- |
| + | || author |
| + | || <nowiki>Jane {{Surname|Doe}}</nowiki> |
| + | || The author or authors. [[Template:Surname|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: |
| + | <pre> |
| + | {{Newspaper articles | |
| + | {{Daily Record article |
| + | | title = One Heckuva Big Buildings: Visitors Awed By Gerstenslager Co.'s Newest Facility |
| + | | year = 1955 |
| + | | day = 16 |
| + | | month = 12 |
| + | }} |
| + | {{Daily Record article |
| + | | title = Gerstenslager's Last Buggy in Marshallville |
| + | | year = 1967 |
| + | | day = 18 |
| + | | month = 04 |
| + | | 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. |
| + | |
| + | ==Sample output== |
| + | The two calls to [[Template:Daily Record article]] defined above produce the following: |
| + | {{Daily Record article |
| + | | title = One Heckuva Big Buildings: Visitors Awed By Gerstenslager Co.'s Newest Facility |
| + | | year = 1955 |
| + | | day = 16 |
| + | | month = 12 |
| + | }} |
| + | {{Daily Record article |
| + | | title = Gerstenslager's Last Buggy in Marshallville |
| + | | year = 1967 |
| + | | day = 18 |
| + | | month = 04 |
| + | | page = 3 |
| + | }} |
| + | </noinclude><includeonly>* {{#if: {{{month|}}} | {{MONTHNAME | {{{month}}} }}{{#if: {{{day|}}} | <nowiki> </nowiki>{{{day}}},|}}|}} {{{year}}}: "{{{article_title}}}" {{#if: {{{author|}}} | by {{{author}}}|}}{{#if: {{{newspaper_title|}}}|{{#if:{{{author|}}}|,|}}}} {{#if: {{{newspaper_title|}}}|<nowiki> </nowiki>''{{{newspaper_title}}}''{{#if: {{{page|}}}|, p. {{{page}}}|}}|}}.</includeonly> |