Difference between revisions of "Template:Cite mag"

From DoomWiki.org

m (No line break!)
(Allow alternate non-structured date)
Line 1: Line 1:
<includeonly>{{#tag:ref|{{#if:{{{author|}}}|{{{author}}}. ({{#time:Y, F|{{{date}}}}}). {{condfullstop|{{{title}}}}} ''{{{magazine}}}'', {{{issue}}}{{#if:{{{pages|}}}|, {{{pages}}}}}.|{{condfullstop|{{{title}}}}} ({{#time:Y, F|{{{date}}}}}). ''{{{magazine}}}'', {{{issue}}}{{#if:{{{pages|}}}|, {{{pages}}}}}.}}}}</includeonly><noinclude>
+
<includeonly>{{#tag:ref|{{#if:{{{author|}}}|{{{author}}}. ({{#if:{{{altdate|}}}|{{{altdate}}}|{{#time:Y, F|{{{date}}}}}}}). {{condfullstop|{{{title}}}}} ''{{{magazine}}}'', {{{issue}}}{{#if:{{{pages|}}}|, {{{pages}}}}}.|{{condfullstop|{{{title}}}}} ({{#if:{{{altdate|}}}|{{{altdate}}}|{{#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==
 
* {{c|author}}: Principal author(s) or editor(s) of the article. Optional, but should be provided when available. Proper APA format is Last, First.
 
* {{c|author}}: Principal author(s) or editor(s) of the article. Optional, but should be provided when available. Proper APA format is Last, First.
* {{c|date}}: Date article was originally published. Required.
+
* {{c|date}}: Date article was originally published. Required unless {{c|altdate}} is provided.
 +
** {{c|altdate}}: Provide an alternate date that does not fit an ISO date format, such as for quarterly publications or special issues.
 
* {{c|title}}: Title of article. Required.
 
* {{c|title}}: Title of article. Required.
 
* {{c|magazine}}: Title of magazine. Required. Will be automatically italicized.
 
* {{c|magazine}}: Title of magazine. Required. Will be automatically italicized.

Revision as of 02:02, 15 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 unless altdate is provided.
    • altdate: Provide an alternate date that does not fit an ISO date format, such as for quarterly publications or special issues.
  • 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.