Difference between revisions of "Template:Cite mag"
From DoomWiki.org
(Magazine citation template) |
m (Most magazines don't have a day but the time function has no ability to optionally display parts of a date (fills in/guesses when not provided instead of omitting), so don't display it.) |
||
Line 1: | Line 1: | ||
<includeonly> | <includeonly> | ||
− | {{#tag:ref|{{#if:{{{author|}}}|{{{author}}}. ({{#time:Y, F | + | {{#tag:ref|{{#if:{{{author|}}}|{{{author}}}. ({{#time:Y, F|{{{date}}}}}). {{condfullstop|{{{title}}}}} ''{{{magazine}}}'', {{{issue}}}{{#if:{{{pages|}}}|, {{{pages}}}}}. {{#if:{{{pages|}}}|{{{pages}}}.}}|{{condfullstop|{{{title}}}}} ({{#time:Y, F|{{{date}}}}}). ''{{{magazine}}}'', {{{issue}}}{{#if:{{{pages|}}}|, {{{pages}}}}}.}}}}</includeonly><noinclude> |
Simple magazine {{wp|Wikipedia:Citing_sources|citation}} template, APA style. | Simple magazine {{wp|Wikipedia:Citing_sources|citation}} template, APA style. | ||
==Usage== | ==Usage== |
Revision as of 01:04, 13 February 2020
Simple magazine citation template, APA style.
Usage
- author: Principal author(s) or editor(s) of the article. Optional, but should be provided when available. Proper APA format is Last, First.
- date: Date article was originally published. Required.
- title: Title of article. Required.
- magazine: Title of magazine. Required. Will be automatically italicized.
- issue: Issue number. Required.
- pages: Page(s) cited. Optional.
Note that parameters taking a date will be passed to the {{#time}} parser function, and thus can be in any valid ISO date format, but must be in such a valid format or the following error text will appear: Error: Invalid time. For more information, see the official time function documentation.