Template:Citation/core: Difference between revisions
m (Text replacement - " " to " ") |
(Created page with '<span class="citation {{{Citation class|{{{Citation type|}}}}}}" {{ #switch:{{{Ref|}}} ||none = |#default = id="{{anchorencode:{{{Ref}}}}}" |harv = {{#if:{{{Surname1|}}}{…') |
||
(4 intermediate revisions by 3 users not shown) | |||
Line 34: | Line 34: | ||
#if: {{{Surname2|}}} | #if: {{{Surname2|}}} | ||
|{{#ifexpr:{{{Trunc|8}}}<2 | |{{#ifexpr:{{{Trunc|8}}}<2 | ||
| et al | | ''et al''. | ||
|{{ | |{{ | ||
#iferror: {{ #expr: 1*0.0{{{AuthorMask|}}} }} | #iferror: {{ #expr: 1*0.0{{{AuthorMask|}}} }} | ||
Line 56: | Line 56: | ||
#if: {{{Surname3|}}} | #if: {{{Surname3|}}} | ||
|{{#ifexpr:{{{Trunc|8}}}<3 | |{{#ifexpr:{{{Trunc|8}}}<3 | ||
| et al | | ''et al''. | ||
|{{ | |{{ | ||
#if: {{{Surname4|}}} | #if: {{{Surname4|}}} | ||
Line 74: | Line 74: | ||
#if:{{{Surname4|}}} | #if:{{{Surname4|}}} | ||
|{{#ifexpr:{{{Trunc|8}}}<4 | |{{#ifexpr:{{{Trunc|8}}}<4 | ||
| et al | | ''et al''. | ||
|{{ | |{{ | ||
#if: {{{Surname5|}}} | #if: {{{Surname5|}}} | ||
Line 92: | Line 92: | ||
#if:{{{Surname5|}}} | #if:{{{Surname5|}}} | ||
|{{#ifexpr:{{{Trunc|8}}}<5 | |{{#ifexpr:{{{Trunc|8}}}<5 | ||
| et al | | ''et al''. | ||
|{{ | |{{ | ||
#if: {{{Surname6|}}} | #if: {{{Surname6|}}} | ||
Line 110: | Line 110: | ||
#if:{{{Surname6|}}} | #if:{{{Surname6|}}} | ||
|{{#ifexpr:{{{Trunc|8}}}<6 | |{{#ifexpr:{{{Trunc|8}}}<6 | ||
| et al | | ''et al''. | ||
|{{ | |{{ | ||
#if: {{{Surname7|}}} | #if: {{{Surname7|}}} | ||
Line 128: | Line 128: | ||
#if:{{{Surname7|}}} | #if:{{{Surname7|}}} | ||
|{{#ifexpr:{{{Trunc|8}}}<7 | |{{#ifexpr:{{{Trunc|8}}}<7 | ||
| et al | | ''et al''. | ||
|{{ | |{{ | ||
#if: {{{Surname8|}}} | #if: {{{Surname8|}}} | ||
Line 146: | Line 146: | ||
#if:{{{Surname8|}}} | #if:{{{Surname8|}}} | ||
|{{#ifexpr:{{{Trunc|8}}}<8 | |{{#ifexpr:{{{Trunc|8}}}<8 | ||
| et al | | ''et al''. | ||
|{{ | |{{ | ||
#if: {{{Surname9|}}} | #if: {{{Surname9|}}} | ||
Line 163: | Line 163: | ||
}}{{ | }}{{ | ||
#if:{{{Surname9|}}} | #if:{{{Surname9|}}} | ||
| et al | | ''et al''. | ||
}} | }} | ||
}} | }} | ||
Line 179: | Line 179: | ||
}} | }} | ||
}}{{ | }}{{ | ||
#if: {{{Date|}}} | #if: {{{Date|}}} | ||
Line 235: | Line 232: | ||
}}{{ | }}{{ | ||
#if:{{{EditorSurname4|}}} | #if:{{{EditorSurname4|}}} | ||
| et al | | et al. | ||
}} | }} | ||
}} | }} | ||
}}, ed{{#if:{{{EditorSurname2|}}}|s}}{{#ifeq:{{{Sep}}}|.| | }}, ed{{#if:{{{EditorSurname2|}}}|s}}{{#ifeq:{{{Sep|,}}}|.||.}}{{ | ||
#if: {{{Date|}}} | #if: {{{Date|}}} | ||
| ({{{Date}}}){{ | | ({{{Date}}}){{ | ||
Line 259: | Line 256: | ||
#if: {{{URL|}}} | #if: {{{URL|}}} | ||
|{{{URL}}} | |{{{URL}}} | ||
<!-- Only link URL if to a free full text - as at PubMedCentral (PMC)--> | |||
|{{#ifexpr:{{#time: U}} > {{#time: U | {{{Embargo|2001-10-10}}} }} | |||
|{{ | |||
#if: {{{PMC|}}} | |||
|http://www.pubmedcentral.nih.gov/articlerender.fcgi?tool=pmcentrez&artid={{{PMC}}} | |||
}} | |||
}} | |||
}} | }} | ||
}} | }} | ||
Line 291: | Line 295: | ||
|{{{Sep|,}}} {{ | |{{{Sep|,}}} {{ | ||
#if: {{{IncludedWorkTitle|}}} | #if: {{{IncludedWorkTitle|}}} | ||
| | |in  | ||
}}{{ | }}{{ | ||
#if: {{{Editorlink1|}}} | #if: {{{Editorlink1|}}} | ||
Line 335: | Line 339: | ||
}}{{ | }}{{ | ||
#if:{{{EditorSurname4|}}} | #if:{{{EditorSurname4|}}} | ||
| et al | | et al. | ||
}} | }} | ||
}} | }} | ||
Line 341: | Line 345: | ||
#if: {{{IncludedWorkTitle|}}} | #if: {{{IncludedWorkTitle|}}} | ||
| | | | ||
|{{{Sep|,}}} ed{{#if:{{{EditorSurname2|}}}|s}}{{#ifeq:{{{Sep}}}|.||.}} | |{{{Sep|,}}} ed{{#if:{{{EditorSurname2|}}}|s}}{{#ifeq:{{{Sep|,}}}|.||.}} | ||
}} | }} | ||
}} | }} | ||
Line 362: | Line 366: | ||
#if: {{{URL|}}} | #if: {{{URL|}}} | ||
|{{{URL}}} | |{{{URL}}} | ||
|{{ | |||
#ifexpr: {{#time: U}} > {{#time: U | {{{Embargo|2001-10-10}}} }} | {{ | |||
#if: {{{PMC|}}} | |||
| http://www.pubmedcentral.nih.gov/articlerender.fcgi?tool=pmcentrez&artid={{{PMC}}} | |||
}} | |||
}} | |||
}} | }} | ||
}} | }} | ||
Line 367: | Line 377: | ||
#if: {{{URL|}}} | #if: {{{URL|}}} | ||
|{{{URL}}} | |{{{URL}}} | ||
|{{#ifexpr:{{#time: U}} > {{#time: U | {{{Embargo|2001-10-10}}} }} |{{ | |||
#if: {{{PMC|}}} | |||
| http://www.pubmedcentral.nih.gov/articlerender.fcgi?tool=pmcentrez&artid={{{PMC}}} | |||
}} | |||
}} | |||
}} | }} | ||
}} | }} | ||
Line 408: | Line 423: | ||
}}{{ | }}{{ | ||
#if: {{{Volume|}}} | #if: {{{Volume|}}} | ||
|  | | '''<nowiki />{{{Volume}}}<nowiki />'''{{ | ||
#if: {{{Issue|}}} | #if: {{{Issue|}}} | ||
| ({{{Issue}}}) | | ({{{Issue}}}) | ||
Line 434: | Line 449: | ||
#if: {{{URL|}}} | #if: {{{URL|}}} | ||
|{{{URL}}} | |{{{URL}}} | ||
|{{#ifexpr:{{#time: U}} > {{#time: U | {{{Embargo|2001-10-10}}} }}|{{ | |||
#if: {{{PMC|}}} | |||
| http://www.pubmedcentral.nih.gov/articlerender.fcgi?tool=pmcentrez&artid={{{PMC}}} | |||
}}}} | |||
}} | }} | ||
}} | }} | ||
Line 439: | Line 458: | ||
#if: {{{URL|}}} | #if: {{{URL|}}} | ||
|{{{URL}}} | |{{{URL}}} | ||
|{{#ifexpr:{{#time: U}} > {{#time: U | {{{Embargo|2001-10-10}}} }}|{{ | |||
#if: {{{PMC|}}} | |||
| http://www.pubmedcentral.nih.gov/articlerender.fcgi?tool=pmcentrez&artid={{{PMC}}} | |||
}}}} | |||
}} | }} | ||
}} | }} | ||
Line 511: | Line 534: | ||
}} | }} | ||
}}{{ | }}{{ | ||
<!--============ | <!--===============DOI================--> | ||
#if:{{{DOI|}}} | |||
|{{{Sep|,}}} {{citation/identifier |identifier= | |{{{Sep|,}}} {{citation/identifier |identifier=doi |input1={{{DOI|}}} |input2={{{DoiBroken|}}} }} | ||
}}{{ | }}{{ | ||
<!--============ | <!--============ Misc. Identifier ============--> | ||
#if: {{{ | #if: {{{ID|}}} | ||
|{{{Sep|,}}}  | |{{ | ||
#if: {{{Surname1|}}}{{{EditorSurname1|}}}{{{IncludedWorkTitle|}}}{{{Periodical|}}}{{{Title|}}}{{{TransItalic|}}} | |||
|{{{Sep|,}}} {{{ID}}} | |||
|{{{ID}}} | |||
}} | |||
}}{{ | }}{{ | ||
<!--============ | <!--============ ISBN ============--> | ||
#if: {{{ISBN|}}} | #if: {{{ISBN|}}} | ||
|{{{Sep|,}}} {{citation/identifier |identifier=isbn |input1={{{ISBN|}}} }} | |{{{Sep|,}}} {{citation/identifier |identifier=isbn |input1={{{ISBN|}}} }} | ||
}}{{ | }}{{ | ||
<!--============ ISSN | <!--============ ISSN ============--> | ||
#if: {{{ISSN|}}} | #if: {{{ISSN|}}} | ||
|{{{Sep|,}}} {{citation/identifier |identifier=issn |input1={{{ISSN|}}} }} | |{{{Sep|,}}} {{citation/identifier |identifier=issn |input1={{{ISSN|}}} }} | ||
}}{{ | }}{{ | ||
<!--============ | <!--============ OCLC ============--> | ||
#if: {{{OCLC|}}} | #if: {{{OCLC|}}} | ||
|{{{Sep|,}}} {{citation/identifier |identifier=oclc |input1={{{OCLC|}}} }} | |{{{Sep|,}}} {{citation/identifier |identifier=oclc |input1={{{OCLC|}}} }} | ||
}}{{ | }}{{ | ||
<!--============ | <!--============ PMID ============--> | ||
#if: {{{PMID|}}} | #if: {{{PMID|}}} | ||
|{{{Sep|,}}} {{citation/identifier |identifier=pmid |input1={{{PMID|}}} }} | |{{{Sep|,}}} {{citation/identifier |identifier=pmid |input1={{{PMID|}}} }} | ||
}}{{ | }}{{ | ||
<!--============ | <!--============ PMC ============--> | ||
#if: {{{ | #if: {{{PMC|}}} | ||
|{{{Sep|,}}} {{citation/identifier |identifier= | |{{ | ||
#if: {{{URL|}}} | |||
|{{{Sep|,}}} {{citation/identifier |identifier=pmc |input1={{{PMC|}}} }} | |||
|{{only in print|{{{Sep|,}}} {{citation/identifier |identifier=pmc |input1={{{PMC|}}} }} }}<!--Should only display by default in print--> | |||
}} | |||
}}{{ | }}{{ | ||
<!--============ | <!--============ BIBCODE ============--> | ||
#if: {{{Bibcode|}}} | |||
|{{{Sep|,}}} {{citation/identifier |identifier=bibcode |input1={{{Bibcode|}}} }} | |||
#if: {{{ | |||
|{{{Sep|,}}} {{citation/identifier |identifier= | |||
}}{{ | }}{{ | ||
<!--============ Archive data, etc ===========--> | <!--============ Archive data, etc ===========--> | ||
Line 592: | Line 579: | ||
|{{ | |{{ | ||
#if:{{{ArchiveURL|}}}{{{ArchiveDate|}}} | #if:{{{ArchiveURL|}}}{{{ArchiveDate|}}} | ||
| {{{Sep|,}}}  | |{{{Sep|,}}} {{#ifeq:{{{Sep}}}|.|A|a}}rchived{{ | ||
#if:{{{OriginalURL|}}}{{{IncludedWorkURL|}}} | |||
|{{#if:{{{ArchiveURL|}}}| from {{Citation/make link|{{{OriginalURL|{{{IncludedWorkURL|}}}}}}|the original}}}} | |||
}}{{ | |||
#if:{{{ArchiveDate|}}} | |||
| on {{{ArchiveDate}}} | |||
}}{{ | |||
#if:{{#if:{{{ArchiveURL|}}}||A}}{{#if:{{{OriginalURL|}}}{{{IncludedWorkURL|}}}||B}}{{#if:{{{ArchiveDate|}}}||C}} | |||
}}{{#if:{{{ArchiveDate|}}}| on {{{ArchiveDate}}}}}{{ | |. {{citation error | ||
|If you specify <code>|{{#if:{{{ArchiveURL|}}}|archiveurl|archivedate}}=</code>, you must {{#if:{{{OriginalURL|}}}{{{IncludedWorkURL|}}}| also specify <code>|{{#if:{{{ArchiveURL|}}}|archivedate|archiveurl}}=</code>|first specify <code>|url=</code>}}}} | |||
|If you specify <code> | |||
}} | }} | ||
}} | }} | ||
}}{{ | }}{{ | ||
<!--============ URL and AccessDate ============--> | <!--============ URL and AccessDate ============--> | ||
#if: {{{URL|}}}{{{IncludedWorkURL|} | #if: {{{URL|}}}{{{IncludedWorkURL|}}} | ||
|{{ | |{{ | ||
#if: {{{Title|}}}{{{IncludedWorkTitle|}}}{{{TransTitle|}}} | #if: {{{Title|}}}{{{IncludedWorkTitle|}}}{{{TransTitle|}}} | ||
Line 623: | Line 608: | ||
}}{{ | }}{{ | ||
#if: {{{AccessDate|}}} | #if: {{{AccessDate|}}} | ||
| <span class="reference-accessdate">{{#ifeq:{{{Sep|}}}|,|, r|. R}}etrieved {{{AccessDate}}}</span> | | <span class="reference-accessdate">{{#ifeq:{{{Sep|,}}}|,|, r|. R}}etrieved {{{AccessDate}}}</span> | ||
}} | }} | ||
}}{{#if:{{{laysummary|}}} | }}{{#if:{{{laysummary|}}} | ||
|{{{Sep|,}}} [{{{laysummary}}} Lay summary]{{#if: {{{laysource|}}}| – ''<nowiki />{{{laysource}}}<nowiki />''}} | |{{{Sep|,}}} [{{{laysummary}}} Lay summary]{{#if: {{{laysource|}}}| – ''<nowiki />{{{laysource}}}<nowiki />''}} | ||
}}{{#if:{{{laydate|}}} | }}{{#if:{{{laydate|}}} | ||
|  ({{{laydate}}}) | |  ({{{laydate}}}) | ||
Line 702: | Line 687: | ||
#if: {{{Publisher|}}} |&rft.pub={{urlencode:{{{Publisher}}}}} | #if: {{{Publisher|}}} |&rft.pub={{urlencode:{{{Publisher}}}}} | ||
}}{{ | }}{{ | ||
#if: {{{ | #if: {{{DOI|}}} |&rft_id=info:doi/{{urlencode:{{{DOI}}}}} | ||
}}{{ | }}{{ | ||
#if: {{{ | #if: {{{PMID|}}} |&rft_id=info:pmid/{{urlencode:{{{PMID}}}}} | ||
}}{{ | }}{{ | ||
#if: {{{ | #if: {{{Bibcode|}}} |&rft_id=info:bibcode/{{urlencode:{{{Bibcode}}}}} | ||
}}{{ | }}{{ | ||
#if: {{{ | #if: {{{OCLC|}}} |&rft_id=info:oclcnum/{{urlencode:{{{OCLC}}}}} | ||
}}{{ | }}{{ | ||
#if: {{{ISBN|}}} |&rft.isbn={{urlencode:{{{ISBN}}}}} | #if: {{{ISBN|}}} |&rft.isbn={{urlencode:{{{ISBN}}}}} | ||
}}{{ | }}{{ | ||
#if: {{{ISSN|}}} |&rft.issn={{urlencode:{{{ISSN}}}}} | #if: {{{ISSN|}}} |&rft.issn={{urlencode:{{{ISSN}}}}} | ||
}}{{ | }}{{ | ||
#if: {{{URL|}}}{{{IncludedWorkURL|}}} |&rft_id={{urlencode:{{{URL|{{{IncludedWorkURL|}}}}}}}} | #if: {{{URL|}}}{{{IncludedWorkURL|}}} |&rft_id={{urlencode:{{{URL|{{{IncludedWorkURL|}}}}}}}} | ||
}}&rfr_id=info:sid/en.wikipedia.org:{{FULLPAGENAMEE}}"><span style="display: none;"> </span></span><noinclude> | }}&rfr_id=info:sid/en.wikipedia.org:{{FULLPAGENAMEE}}"><span style="display: none;"> </span></span><noinclude> | ||
{{Documentation}} | {{Documentation}} | ||
</noinclude> | </noinclude> |
Revision as of 11:57, 22 March 2010
The above documentation is transcluded from Template:Citation/core/doc. (editEditors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |