Template:Citation/fcite journal

{{main other|2=<span class="citation journal" {{ |{{#ifeq:{{{ref}}}|harv | id="CITEREF{{anchorencode:{{     #if:{{{last|{{{last1|{{{author|{{{author1|}}} }}} }}} }}}      |{{{last|{{{last1|{{{author|{{{author1}}}}}}}}}}}}{{{last2|{{{author2|}}}}}}{{{last3|{{{author3|}}}}}}{{{last4|{{{author4|}}}}}}|{{{editor-last|{{{editor1-last|}}}}}}{{{editor2-last|}}}{{{editor3-last|}}}{{{editor4-last|}}}      }}{{{year|{{             #if: {{{date|}}}             |{{               #iferror: {{#time:Y|{{{date|}}} }}               |{{#iferror: {{#time:Y|{{{publication-date|einval}}} }}                 ||{{#time:Y|{{{publication-date|}}} }} }}               | {{#time:Y|{{{date|}}} }}              }}             |{{{publication-date|}}}             }}}}}|}}" | id="{{anchorencode:{{{ref}}}}}" }} }}>{{
 * if:{{{ref|}}}

#if:{{{author|}}}|{{ #if:{{{authorlink|{{{author1-link|}}} }}}|{{{author1-link}}}}}}|{{{author}}}|{{{author}}}}}|{{ #if:{{{last|{{{last1|{{{author1|}}} }}} }}}|{{ #if:{{{authorlink|{{{author1-link|}}} }}}|{{{author1-link}}}}}}|{{{last|{{{last1|{{{author1}}}}}}}}}{{       #if:{{{first|{{{first1|}}}}}}|, {{{first|{{{first1}}}}}} }}|{{{last|{{{last1|{{{author1}}}}}}}}}{{ #if:{{{first|{{{first1|}}}}}}|, {{{first|{{{first1}}}}}}}}}}}}}}{{#if: {{{last2|{{{author2|{{{coauthors|{{{coauthor|}}} }}} }}} }}}| {{{author-separator|;}}} {{{last2|{{{author2|{{{coauthors|{{{coauthor}}}}}}}}}}}}{{ #if:{{{first2|}}}|, {{{first2}}}}}{{ #if:{{{last3|{{{author3|}}} }}} | {{{author-separator|;}}} {{{last3|{{{author3}}}}}}{{ #if:{{{first3|}}}|, {{{first3}}} }}{{ #if:{{{last4|{{{author4|}}} }}} | {{{author-separator|;}}} {{{last4|{{{author4}}}}}}{{ #if:{{{first4|}}}|, {{{first4}}} }}{{ #if:{{{last5|{{{author5|}}} }}} | {{{author-separator|;}}} {{{last5|{{{author5}}}}}}{{ #if:{{{first5|}}}|, {{{first5}}} }} }}{{             #if:{{{last6|{{{author6|}}} }}} | {{{author-separator|;}}} {{{last6|{{{author6}}}}}}{{ #if:{{{first6|}}}|, {{{first6}}} }} }}{{             #if:{{{last7|{{{author7|}}} }}} | {{{author-separator|;}}} {{{last7|{{{author7}}}}}}{{ #if:{{{first7|}}}|, {{{first7}}} }} }}{{             #if:{{{last8|{{{author8|}}} }}} | {{{author-separator|;}}} {{{last8|{{{author8}}}}}}{{ #if:{{{first8|}}}|, {{{first8}}} }} }}           }}          }}     }}{{  #if:{{{editor|{{{editor-last|{{{editor1-last|}}} }}} }}} |{{#if:{{{author|{{{last|{{{last1|{{{author1|}}} }}} }}} }}} | {{{author-separator|;}}}&#32;}}{{{editor|{{{editor-last|{{{editor1-last}}}}}}}}}{{ #if:{{{editor1-first|}}}|, {{{editor1-first}}} }}{{   #if:{{{editor2-last|}}} | {{{author-separator|;}}} {{{editor2-last}}}{{ #if:{{{editor2-first|}}}|, {{{editor2-first}}} }}{{     #if:{{{editor3-last|}}} | {{{author-separator|;}}} {{{editor3-last}}}{{ #if:{{{editor3-first|}}}|, {{{editor3-first}}} }}{{       #if:{{{editor4-last|}}} | {{{author-separator|;}}} {{{editor4-last}}}{{ #if:{{{editor4-first|}}}|, {{{editor4-first}}} }} }}     }} {{{author-separator|;}}} eds.&#32; | {{{author-separator|;}}} ed.&#32; }} }}{{  #if:{{{last|{{{author|{{{last1|{{{author1|{{{editor|{{{editor-last|{{{editor1-last|}}} }}} }}} }}} }}} }}} }}} |{{   #if:{{{date|{{{year|{{{month|}}} }}} }}} |&#32;({{{date|{{        #if:{{{month|}}}           |{{{month}}}{{#if:{{{year|}}}&#32;}}         }}{{{year|}}}|}}}){{ #if:{{{origyear|}}}|&#32;[{{{origyear}}}] }}{{{sep|.}}}&#32; | {{{author-separator|;}}}&#32;}}}}{{#if:{{{work|{{{journal|{{{periodical|{{{magazine|{{{newspaper|{{{encyclopedia|}}} }}} }}} }}} }}} }}} |{{#if:{{{url|}}} |{{#if:{{{title|}}}|[{{{url|http://www.HuH.com}}}{{{urlx|}}} "{{{title}}}"]{{ #if:{{{language|}}}|&#32;({{{language}}})}}{{{sep|.}}} {{{work|{{{journal|{{{periodical|{{{magazine|{{{newspaper|{{{encyclopedia}}} }}} }}} }}} }}} }}}|[{{{url|http://www.HuH.com}}}{{{urlx|}}} {{{work|{{{journal|{{{periodical|{{{magazine|{{{newspaper|{{{encyclopedia}}} }}} }}} }}} }}} }}}]}}|{{ #if:{{{title|}}}|"{{{title}}}"{{ #if:{{{language|}}}|&#32;({{{language}}})}} }}{{{sep|.}}} {{{work|{{{journal|{{{magazine|{{{periodical|{{{newspaper|{{{encyclopedia}}} }}} }}} }}} }}} }}}}}{{ #if:{{{title|}}}||{{ #if:{{{language|}}}|&#32;({{{language}}}) }} }} |{{#if:{{{url|}}} |[{{{url|http://www.HuH.com/SearCh}}}{{{urlx|}}} {{{title}}}]{{ #if:{{{language|}}}|&#32;({{{language}}})}}|{{ #if:{{{pmc|}}} |"{{{title}}}"{{ #if:{{{language|}}}|&#32;({{{language}}})}}|{{#if:{{{title| x }}} |{{{title}}}{{ #if:{{{language|}}}|&#32;({{{language}}})}} }}      }}     }}   }}{{  #if:{{{volume|{{{publisher|{{{edition|{{{agency|{{{location|}}} }}} }}} }}} }}} |{{   #if:{{{series|{{{version|}}} }}} |{{{sep|.}}} {{{series|{{{version}}}}}} }}{{ #if:{{{edition|}}} |&#32;({{{edition}}})}}{{ #if:{{{journal|{{{periodical|{{work|}}} }}} }}}|{{ #if:{{{location|{{{publisher|{{{agency|}}} }}} }}} |&#32;({{       #if:{{{location|}}}          |{{{location|London}}}{{            #if:{{{publisher|{{{agency|}}} }}}            | : {{{publisher|{{{agency|Reuters}}}}}} }}          |{{{publisher|{{{agency|Reuters}}}}}}          }}) }}   }}{{    #if:{{{volume|}}} | {{{volume|I}}}}}{{ #if:{{{volumename|}}} |, {{{volumename|Volume: Africa}}} }}{{ #if:{{{issue|{{{number|}}} }}} |&#32;({{{issue|{{{number}}}}}})}} }}{{ #if:{{{date|{{{year|{{{month|}}} }}} }}} |{{   #if:{{{last|{{{author|{{{last1|{{{author1|{{{editor|{{{editor-last|{{{editor1-last|}}} }}} }}} }}} }}} }}} }}} |      |{{{sep|,}}} {{{month|}}} {{{date|{{{year|}}}}}}{{ #if:{{{origyear|}}}|&#32;[{{{origyear}}}] }} }}}}{{ #if:{{{archiveurl|}}} |. Archived from [{{{archiveurl}}}{{{archiveurlx|}}} the original]{{ #if:{{{archivedate|}}} | &#32;on {{{archivedate}}} }}}}{{ #if:{{{pages|{{{page|{{{at|}}} }}} }}} |{{   #if:{{{volume|}}}|&#58;|{{{sep|.}}} }}{{ #if:{{{work|{{{journal|{{{periodical|{{{magazine|{{{newspaper|{{{encyclopedia|}}} }}} }}} }}} }}} }}} |&#32;{{{pages|{{{page|{{{at}}}}}}}}} |{{     #if:{{{page|}}} |&#32;{{#if:{{{nopp|}}}||p. }}{{{page|}}} |{{       #if:{{{pages|}}} |&#32;{{#if:{{{nopp|}}}||pp. }}{{{pages|7-9}}} |&#32;{{{at}}} }}     }}    }}  }}{{  #if:{{{isbn|{{{issn|{{{ISSN|}}} }}} }}} |{{   #if:{{{isbn|}}} |{{{sep|.}}} |ISBN {{{isbn}}} }}{{   #if:{{{issn|{{{ISSN|}}} }}} |{{{sep|.}}} ISSN |{{{ISSN}}}}}} {{#tag:nowiki|{{{issn|{{{ISSN}}}}}}}} }} }}{{  |{{  #if: {{{pmc|}}} |{{{sep|.}}} {{citation/identifier |identifier=pmc |input1={{{pmc}}} }} }}{{ #if: {{{pmid|}}} |{{{sep|.}}} PMID {{{pmid}}} }}{{ #if:{{{doi|}}} |{{{sep|.}}} {{citation/identifier |identifier=doi |input1={{{doi}}}  |input2={{{doibroken|}}} |input3={{{template doc demo|}}}}} }} }}{{
 * if:{{{pmc|}}}{{{pmid|}}}{{{doi|}}}
 * if:{{{arxiv|{{{asin|{{{bibcode|{{{jfm|{{{jstor|{{{lccn|{{{mr|{{{oclc|{{{ol|{{{osti|{{{rfc|{{{ssrn|{{{zbl|{{{id|}}} }}} }}} }}} }}} }}} }}} }}} }}} }}} }}} }}} }}} }}}

#if: {{{arxiv|}}} |{{{sep|.}}} {{citation/identifier |identifier=arxiv |input1={{{arxiv}}} }} }}{{

#if: {{{asin|}}} |{{{sep|,}}} {{citation/identifier |identifier=asin |input1={{{asin}}} |input2={{{ASIN-TLD|}}} }} }}{{

#if: {{{bibcode|}}} |{{{sep|,}}} {{citation/identifier |identifier=bibcode |input1={{{bibcode}}} }} }}{{

#if: {{{jfm|}}} |{{{sep|,}}} {{citation/identifier |identifier=jfm |input1={{{jfm}}} }} }}{{

#if: {{{jstor|}}} |{{{sep|,}}} {{citation/identifier |identifier=jstor |input1={{{jstor}}} }} }}{{

#if: {{{lccn|}}} |{{{sep|,}}} {{citation/identifier |identifier=lccn |input1={{{lccn}}} }} }}{{

#if: {{{mr|}}} |{{{sep|,}}} {{citation/identifier |identifier=mr |input1={{{mr|}}} }} }}{{

#if: {{{oclc|}}} |{{{sep|,}}} {{citation/identifier |identifier=oclc |input1={{{oclc|}}} }} }}{{

#if: {{{ol|}}} |{{{sep|,}}} {{citation/identifier |identifier=ol |input1={{{ol|}}} }} }}{{

#if: {{{osti|}}} |{{{sep|,}}} {{citation/identifier |identifier=osti |input1={{{osti}}} }} }}{{

#if: {{{rfc|}}} |{{{sep|,}}} {{citation/identifier |identifier=rfc|input1={{{rfc}}} }} }}{{

#if: {{{ssrn|}}} |{{{sep|,}}} {{citation/identifier |identifier=ssrn |input1={{{ssrn}}} }} }}{{

#if: {{{zbl|}}} |{{{sep|,}}} {{citation/identifier |identifier=zbl |input1={{{zbl}}} }} }}{{

#if: {{{id|}}} |{{{sep|,}}} {{{id}}} }} }}{{ #if:{{{accessdate|{{{acc|}}} }}} |. Retrieved {{{accessdate|{{{acc|2010-06-21}}} }}} }}{{ #if:{{{laysummary|}}} |{{{sep|.}}}&#32;[{{{laysummary}}} Lay summary]{{ #if: {{{laysource|}}} | –  {{{laysource}}} }} }}{{  #if:{{{laydate|}}} | &#32;({{{laydate}}}) }}.{{ #if:{{{quote|}}} |&#32;"{{{quote}}}"}}{{ #if:{{{postscript|{{{notes|}}} }}} |&#32;{{{postscript|{{{notes}}}}}} }} {{ #ifeq:{{{1|}}}|help|{{ #if:{{{author-1|{{{ISBN|{{{last-1|{{{last-2|{{{author-link1|{{{day|}}} }}} }}} }}} }}} }}} | Fcite_journal: Found unknown parameters - }}{{ #if:{{{ISBN|}}}| Fcite_journal: Found "ISBN=" - use "isbn=". }}{{ #if:{{{author-1|}}}| Fcite_journal: Found "author-1=" - use "author=". }}{{ #if:{{{authorlink1|}}} | Fcite_journal: Found "authorlink1=" - use "authorlink=". }}{{ #if:{{{last-1|}}}| Fcite_journal: Found "last-1=" - use "last1=". }}{{ #if:{{{last-2|}}}| Fcite_journal: Found "last-2=" - use "last2=". }}{{ #if:{{{last-3|}}}| Fcite_journal: Found "last-3=" - use "last3=". }}{{ #if:{{{surname1|}}}| Fcite_journal: Found "surname1=" - use "last1=". }}{{ #if:{{{surname3|}}}| Fcite_journal: Found "surname3=" - use "last3=". }}{{ #if:{{{editor-1|}}}| Fcite_journal: Found "editor-1=" - use "editor=". }}{{ #if:{{{editorlast|}}}| Fcite_journal: Found "editorlast=" - use "editor1-last=". }}{{ #if:{{{editor2|}}}| Fcite_journal: Found "editor2=" - use "editor2-last". }}{{ #if:{{{editor3|}}}| Fcite_journal: Found "editor3=" - use "editor3-last". }}{{ #if:{{{author-link1|}}} | Fcite_journal: Found "author-link1=" - use "author1-link=". }}{{ #if:{{{publication-date|}}} | Fcite_journal: Found "publication-date=" - use "date=". }}{{ #if:{{{day|}}}| Fcite_journal: Found "day=" - use "date=". }} }} }}{{  |{{  #if:{{{surname|}}}| Fcite_journal: Found "surname=" - use "last=". }}{{ #if:{{{surname1|}}}| Fcite_journal: Found "surname1=" - use "last=". }}{{ #if:{{{surname2|}}}| Fcite_journal: Found "surname2=" - use "last2=". }}{{ #if:{{{editor1|}}}| Fcite_journal: Found "editor1=" - use "editor=". }}{{ #if:{{{editor2|}}}| Fcite_journal: Found "editor2=" - use {Cite_journal}. }} }} }} <!-- --- --NOTES: --     This template matches the format of Help:Citation_style_1. -- -- NOTE A1: This template checks parameters for some common --     misspellings & allows splitting a long URL as 2 parts. --     The optional parameter "urlx=" can be used to append --     more url text for a longer URL address. -- -- NOTE C2: When the url is hyperlinked to the title=zzz, --     then the website name in parameter url=xx is first --     downcased to become all lower-case text in the link. --     Example: url=MyWeb.coM links as "http://myweb.com". --     This lowercase formatting, of the website name, is --      typical for all Wikipedia hyperlinks to external --     websites. The URL's CGI text (following another "/") --     is NOT downcased but rather, left as mixed-case text. -- -- NOTE U3: The check of the url=xxx examines the prefix of --     the parameter "url" and if not "http:/" then it --      prepends "http://" to the {url} text in the link. --
 * 1) ifeq:{{{1|none}}}|none|.|{{
 * if:{{{surname1|{{{editor1|}}} }}}

--HISTORY: --04Jul12 Created to run {cite_journal} fast & validate parameters. --04Jul12 Put NOTES comments to explain template coding. --04Jul12 Put HISTORY comments to log major changes. --04Jul12 Added parameters: urlx to extend URL & acc for accessdate. --05Jul12 Added parameters: edition, quote, notes, language. --05Jul12 Optimized to skip options unless publisher/location or pages. --09Jul12 Optimized to only check authorlink when author/last set. --09Jul12 Optimized to only check journal options when no isbn/issn. --09Jul12 Fixed to show date in "" if editor set. --11Jul12 Added parameters last1, last2 & last3 for CITEREF anchors. --12Jul12 Added parameters first1, first2, first3 but warn of last4. --12Jul12 Optimized check for "author" as 2 #if's (was 7). --13Jul12 Fixed by " " to allow any separator such as ";" or ":". --13Jul12 Added parameter "coauthor" same as plural "coauthors". --13Jul12 Put location/publisher in "" to match Cite_journal. --13Jul12 Supported parameter "ref=harv" as in Cite_web, Cite_book, etc. --14Jul12 Added: arvix, asin, bibcode, doi, lccn, mr, oclc, pmc, ssrn, zbl. --14Jul12 Set doc text as separate /doc for interwiki links. --14Jul12 Linked ISBN & ISSN by {hide in print} & {only in print}. --17Jul12 Supported "author1-link"; linked title to PMC site if no {url}. --19Jul12 New parameter {1}=help will validate parameters. --19Jul12 New parameter {1}= will activate rare parameters. --19Jul12 New: ISSN, origyear, laysummary, laysource, laydate, postscript. --19Jul12 Italicized '{title}' if no {work}/{journal}; warned if "surname=". --20Jul12 New parameters: encyclopedia, series/version, number, nopp. --21Jul12 New parameters: last5/first5, last6/first6,... last8/first8. --22Jul12 For {ref}=harv, defaulted {year} as {#time:Y|date/publication-date}. --22Jul12 New parameters: editor2-last/editor2-first... editor4-last/first. --22Jul12 Process omitted date 3x faster (checked before author/editor names). --23Jul12 For {ref}=harv, also linked by editor[1]-last or editor2-last. --01Aug12 Set to to handle "ref=". --06Sep12 Used non-nested "#if:{pmc|}{pmid|}{doi|}" was {pmc |{pmid |{doi}}}. -->