Changes

From DoomWiki.org

Template:Cite mag text

1,686 bytes added, 07:10, 15 February 2020
Created page with "<includeonly>{{#if:{{{author|}}}|{{{author}}}. ({{#if:{{{altdate|}}}|{{{altdate}}}|{{#time:Y, F|{{{date}}}}}}}). {{condfullstop|{{{title}}}}} ''{{{magazine}}}'', {{{issue}}}{{..."
<includeonly>{{#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>
Generates text for a simple magazine {{wp|Wikipedia:Citing_sources|citation}}, APA style. Use manual ref tags with this template; allows for advanced usage such as named references.
==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|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|magazine}}: Title of magazine. Required. Will be automatically italicized.
* {{c|issue}}: Issue number. Required.
* {{c|pages}}: Page(s) cited. Optional.

Note that parameters taking a date will be passed to the {{c|<nowiki>{{#time}}</nowiki>}} 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: <span style="font-size: larger; font-weight: bold; color: #c00; background-color: inherit;">Error: Invalid time.</span> For more information, see the official [[mw:Help:Extension:ParserFunctions#.23time|time]] function documentation.

[[Category:Citation templates]]
</noinclude>