Template:Citation/core: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
Amalthea (talk | contribs)
Fixes, per talk page: 1) Archive url oddities with IncludedWorkURL. 2) Title nested italification error. 3) single quote conflicts
editprotected, per talk page request. Template_talk:Citation/core#Multiple_bugfixes_and_updates
Line 171: Line 171:
}}
}}
}}
}}
}}
}}
}}
}}
}}
}}
Line 178: Line 178:
}}
}}
}}
}}

}}{{
}}{{
#if: {{{Date|}}}
#if: {{{Date|}}}
Line 245: Line 245:
}}{{
}}{{
<!--============ Title of included work ============-->
<!--============ Title of included work ============-->
#if: {{{IncludedWorkTitle|}}}
#if: {{{IncludedWorkTitle|}}}{{#if:{{{Periodical|}}}||{{#if:{{{TransItalic|}}}||{{{TransTitle|}}}}}}}
{{
#if:{{{Periodical|}}}||{{#if:{{{TransItalic|}}}||{{{TransTitle|}}}}}
}}
|{{
|{{
#if:{{{Surname1|}}}{{{EditorSurname1|}}}
#if:{{{Surname1|}}}{{{EditorSurname1|}}}
|{{{Sep|,}}}&#32;
|{{{Sep|,}}}&#32;
}}{{#if:{{{Periodical|}}}||"}}{{Citation/make link
}}{{Citation/make link
| 1={{
| 1={{
#if: {{{IncludedWorkURL|}}}
#if: {{{IncludedWorkURL|}}}
Line 271: Line 268:
#if: {{{Periodical|}}}
#if: {{{Periodical|}}}
|''<nowiki />{{{IncludedWorkTitle}}}<nowiki />''
|''<nowiki />{{{IncludedWorkTitle}}}<nowiki />''
|{{{IncludedWorkTitle|}}}{{
|"{{{IncludedWorkTitle|}}}{{
#if: {{{TransTitle|}}}
#if: {{{TransTitle|}}}
|{{
|{{#if: {{{IncludedWorkTitle|}}}|&#32;}}&#91;{{{TransTitle}}}&#93;}}
#if: {{{IncludedWorkTitle|}}}
|&#32;
}}&#91;{{{TransTitle}}}&#93;
}}"
}}
}}
}}
}}{{#if:{{{Periodical|}}}||"}}
}}{{
}}{{
<!--============ Place (if different than PublicationPlace) ============-->
<!--============ Place (if different than PublicationPlace) ============-->
Line 284: Line 285:
|{{
|{{
#if: {{{Surname1|}}}{{{EditorSurname1|}}}{{{IncludedWorkTitle|}}}
#if: {{{Surname1|}}}{{{EditorSurname1|}}}{{{IncludedWorkTitle|}}}
|{{{Sep|,}}} written at {{{Place}}}
|{{{Sep|,}}}&#32;written at {{{Place}}}
}}
}}
}}
}}
Line 292: Line 293:
|{{
|{{
#if: {{{Surname1|}}}
#if: {{{Surname1|}}}
|{{{Sep|,}}} {{
|{{{Sep|,}}}&#32;{{
#if: {{{IncludedWorkTitle|}}}
#if: {{{IncludedWorkTitle|}}}
|in&#32;
|in&#32;
Line 344: Line 345:
#if: {{{IncludedWorkTitle|}}}
#if: {{{IncludedWorkTitle|}}}
|
|
|{{{Sep|,}}} ed{{#if:{{{EditorSurname2|}}}|s}}{{#ifeq:{{{Sep|,}}}|.||.}}
|{{{Sep|,}}}&#32;ed{{#if:{{{EditorSurname2|}}}|s}}{{#ifeq:{{{Sep|,}}}|.||.}}
}}
}}
}}
}}
Line 351: Line 352:
#if: {{{Periodical|}}}
#if: {{{Periodical|}}}
|{{
|{{
#if: {{{Other|}}}
#if: {{{Other|}}}
|{{{Sep|,}}} {{{Other|}}}
|{{{Sep|,}}}&#32;{{{Other|}}}
}}{{
}}{{
#if: {{{Surname1|}}}{{{EditorSurname1|}}}
#if: {{{Surname1|}}}{{{EditorSurname1|}}}{{{IncludedWorkTitle|}}}
|{{{Sep|,}}}&#32;}}{{
|{{{Sep|,}}}&#32;}}{{
#if: {{{Title|}}}{{{TransTitle|}}}
#if: {{{Title|}}}{{{TransTitle|}}}
|"{{Citation/make link
|{{Citation/make link
| 1={{
| 1={{
#if: {{{IncludedWorkTitle|}}}
#if: {{{IncludedWorkTitle|}}}
Line 367: Line 368:
|{{
|{{
#ifexpr: {{#time: U}} > {{#time: U | {{{Embargo|2001-10-10}}} }} | {{
#ifexpr: {{#time: U}} > {{#time: U | {{{Embargo|2001-10-10}}} }} | {{
#if: {{{PMC|}}}
#if: {{{PMC|}}}
| http://www.pubmedcentral.nih.gov/articlerender.fcgi?tool=pmcentrez&artid={{{PMC}}}
| http://www.pubmedcentral.nih.gov/articlerender.fcgi?tool=pmcentrez&artid={{{PMC}}}
}}
}}
Line 376: Line 377:
#if: {{{URL|}}}
#if: {{{URL|}}}
|{{{URL}}}
|{{{URL}}}
|{{#ifexpr:{{#time: U}} > {{#time: U | {{{Embargo|2001-10-10}}} }} |{{
|{{#ifexpr:{{#time: U}} > {{#time: U | {{{Embargo|2001-10-10}}} }} |{{
#if: {{{PMC|}}}
#if: {{{PMC|}}}
| http://www.pubmedcentral.nih.gov/articlerender.fcgi?tool=pmcentrez&artid={{{PMC}}}
| http://www.pubmedcentral.nih.gov/articlerender.fcgi?tool=pmcentrez&artid={{{PMC}}}
}}
}}
Line 383: Line 384:
}}
}}
}}
}}
| 2={{{Title}}}{{
| 2="{{{Title}}}{{
#if: {{{TransTitle|}}}
#if: {{{TransTitle|}}}
|{{
|{{#if: {{{Title|}}}|&#32;}}&#91;{{{TransTitle}}}&#93;}}
}}"{{
#if: {{{Title|}}}
|&#32;
}}&#91;{{{TransTitle}}}&#93;
}}"
}}{{
#if: {{{TitleNote|}}}
#if: {{{TitleNote|}}}
|{{{Sep|,}}}&#32;{{{TitleNote}}}
|{{{Sep|,}}}&#32;{{{TitleNote}}}
}}
}}
}}
}}
}}{{
}}{{
#if: {{{language|}}}
#if: {{{language|}}}
|&#32;(in {{{language}}})
|&#32;(in {{{language}}})
}}{{#if: {{{format|}}}
}}{{
#if: {{{format|}}}
|&#32;({{{format}}})
|&#32;({{{format}}})
}}{{
}}{{
#if: {{{Periodical|}}}|{{
#if: {{{Periodical|}}}
|{{
#if:{{{IncludedWorkTitle|}}}{{{Title|}}}{{{TransTitle|}}}|{{{Sep|,}}}&#32;}}''<nowiki />{{{Periodical}}}<nowiki />''{{
#if:{{{IncludedWorkTitle|}}}{{{Title|}}}{{{TransTitle|}}}
|{{{Sep|,}}}&#32;
}}''<nowiki />{{{Periodical}}}<nowiki />''{{
#if: {{{Series|}}}
#if: {{{Series|}}}
|{{{Sep|,}}} {{{Series}}}
|{{{Sep|,}}}&#32;{{{Series}}}
}}{{
}}{{
#if: {{{PublicationPlace|}}}
#if: {{{PublicationPlace|}}}
Line 431: Line 440:
|{{
|{{
#if: {{{Surname1|}}}{{{EditorSurname1|}}}{{{IncludedWorkTitle|}}}{{{Periodical|}}}
#if: {{{Surname1|}}}{{{EditorSurname1|}}}{{{IncludedWorkTitle|}}}{{{Periodical|}}}
|{{{Sep|,}}}&#32;|&#32;
|{{{Sep|,}}}
}}{{Citation/make link
}}&#32;{{Citation/make link
| 1={{
| 1={{
#if: {{{IncludedWorkTitle|}}}
#if: {{{IncludedWorkTitle|}}}
Line 440: Line 449:
#if: {{{URL|}}}
#if: {{{URL|}}}
|{{{URL}}}
|{{{URL}}}
|{{#ifexpr:{{#time: U}} > {{#time: U | {{{Embargo|2001-10-10}}} }}|{{
|{{#ifexpr:{{#time: U}} > {{#time: U | {{{Embargo|2001-10-10}}} }}|{{
#if: {{{PMC|}}}
#if: {{{PMC|}}}
| http://www.pubmedcentral.nih.gov/articlerender.fcgi?tool=pmcentrez&artid={{{PMC}}}
| http://www.pubmedcentral.nih.gov/articlerender.fcgi?tool=pmcentrez&artid={{{PMC}}}
}}}}
}}}}
Line 449: Line 458:
#if: {{{URL|}}}
#if: {{{URL|}}}
|{{{URL}}}
|{{{URL}}}
|{{#ifexpr:{{#time: U}} > {{#time: U | {{{Embargo|2001-10-10}}} }}|{{
|{{#ifexpr:{{#time: U}} > {{#time: U | {{{Embargo|2001-10-10}}} }}|{{
#if: {{{PMC|}}}
#if: {{{PMC|}}}
| http://www.pubmedcentral.nih.gov/articlerender.fcgi?tool=pmcentrez&artid={{{PMC}}}
| http://www.pubmedcentral.nih.gov/articlerender.fcgi?tool=pmcentrez&artid={{{PMC}}}
}}}}
}}}}
}}
}}
Line 457: Line 466:
| 2=''<nowiki />{{{Title|}}}{{
| 2=''<nowiki />{{{Title|}}}{{
#if:{{{TransItalic|}}}|&#32;&#91;{{{TransItalic}}}&#93;
#if:{{{TransItalic|}}}|&#32;&#91;{{{TransItalic}}}&#93;
}}<nowiki />''}}}}{{
}}<nowiki />''
}}
}}{{
#if: {{{Series|}}}
#if: {{{Series|}}}
|{{{Sep|,}}} {{{Series}}}
|{{{Sep|,}}}&#32;{{{Series}}}
}}{{
}}{{
#if: {{{Volume|}}}
#if: {{{Volume|}}}
|{{{Sep|,}}} '''<nowiki />{{{Volume}}}<nowiki />'''
|{{{Sep|,}}}&#32;'''<nowiki />{{{Volume}}}<nowiki />'''
}}{{
}}{{
#if: {{{Other|}}}
#if: {{{Other|}}}
|{{{Sep|,}}} {{{Other|}}}
|{{{Sep|,}}}&#32;{{{Other|}}}
}}{{
}}{{
#if: {{{Edition|}}}
#if: {{{Edition|}}}
Line 471: Line 482:
}}{{
}}{{
#if: {{{PublicationPlace|}}}
#if: {{{PublicationPlace|}}}
|{{{Sep|,}}} {{{PublicationPlace}}}
|{{{Sep|,}}}&#32;{{{PublicationPlace}}}
}}{{
}}{{
#if: {{{Publisher|}}}
#if: {{{Publisher|}}}
Line 478: Line 489:
|<nowiki>:</nowiki>
|<nowiki>:</nowiki>
|{{{Sep|,}}}
|{{{Sep|,}}}
}} {{{Publisher}}}
}}&#32;{{{Publisher}}}
}}
}}
}}{{
}}{{
Line 486: Line 497:
|{{
|{{
#if: {{{Date|}}}
#if: {{{Date|}}}
|{{{Sep|,}}} {{{Date}}}{{
|{{{Sep|,}}}&#32;{{{Date}}}{{
#if:{{{YearNote|}}}
#if:{{{YearNote|}}}
|&#32;[{{{YearNote}}}]
|&#32;[{{{YearNote}}}]
Line 501: Line 512:
|{{
|{{
#if: {{{Surname1|}}}
#if: {{{Surname1|}}}
|{{{Sep|,}}} {{{PublicationDate}}}
|{{{Sep|,}}}&#32;{{{PublicationDate}}}
|&#32;(published {{{PublicationDate}}})
|&#32;(published {{{PublicationDate}}})
}}
}}
|{{
|{{
#if: {{{Periodical|}}}
#if: {{{Periodical|}}}
|{{{Sep|,}}} {{{PublicationDate}}}
|{{{Sep|,}}}&#32;{{{PublicationDate}}}
|&#32;(published {{{PublicationDate}}})
|&#32;(published {{{PublicationDate}}})
}}
}}
Line 517: Line 528:
|{{
|{{
#if: {{{At|}}}
#if: {{{At|}}}
|{{{Sep|,}}} {{{At}}}
|{{{Sep|,}}}&#32;{{{At}}}
}}
}}
}}{{
}}{{
<!--===============DOI================-->
<!--===============DOI================-->
#if:{{{DOI|}}}
#if:{{{DOI|}}}
|{{{Sep|,}}} [[Digital object identifier|doi]]:{{#if: {{{DoiBroken|}}}
|{{{Sep|,}}}&#32;[[Digital object identifier|doi]]:{{#if: {{{DoiBroken|}}}
| {{#tag:nowiki|{{{DOI}}}}} (inactive {{{DoiBroken|}}}) {{#ifeq: {{NAMESPACE}} | {{ns:0}} | [[Category:Pages with DOIs broken since {{#time: Y | {{{DoiBroken|}}} }}]] }}
| {{#tag:nowiki|{{{DOI}}}}} (inactive {{{DoiBroken|}}}) {{#ifeq: {{NAMESPACE}} | {{ns:0}} | [[Category:Pages with DOIs broken since {{#time: Y | {{{DoiBroken|}}} }}]] }}
| <span class="neverexpand">[http://dx.doi.org/{{urlencode:{{{DOI}}}}} {{#tag:nowiki|{{{DOI}}}}}]</span>
| <span class="neverexpand">[http://dx.doi.org/{{urlencode:{{{DOI}}}}} {{#tag:nowiki|{{{DOI}}}}}]</span>
Line 531: Line 542:
|{{
|{{
#if: {{{Surname1|}}}{{{EditorSurname1|}}}{{{IncludedWorkTitle|}}}{{{Periodical|}}}{{{Title|}}}{{{TransItalic|}}}
#if: {{{Surname1|}}}{{{EditorSurname1|}}}{{{IncludedWorkTitle|}}}{{{Periodical|}}}{{{Title|}}}{{{TransItalic|}}}
|{{{Sep|,}}} {{{ID}}}
|{{{Sep|,}}}&#32;{{{ID}}}
|{{{ID}}}
|{{{ID}}}
}}
}}
Line 537: Line 548:
<!--============ ISBN ============-->
<!--============ ISBN ============-->
#if: {{{ISBN|}}}
#if: {{{ISBN|}}}
|{{{Sep|,}}} [[International Standard Book Number|ISBN]] [[Special:BookSources/{{{ISBN}}}|{{{ISBN}}}]]
|{{{Sep|,}}}&#32;[[International Standard Book Number|ISBN]] [[Special:BookSources/{{{ISBN}}}|{{{ISBN}}}]]
}}{{
}}{{
<!--============ ISSN ============-->
<!--============ ISSN ============-->
#if: {{{ISSN|}}}
#if: {{{ISSN|}}}
|{{{Sep|,}}} [[International Standard Serial Number|ISSN]] [http://worldcat.org/issn/{{{ISSN}}} {{{ISSN}}}]
|{{{Sep|,}}}&#32;[[International Standard Serial Number|ISSN]] [http://worldcat.org/issn/{{{ISSN}}} {{{ISSN}}}]
}}{{
}}{{
<!--============ OCLC ============-->
<!--============ OCLC ============-->
#if: {{{OCLC|}}}
#if: {{{OCLC|}}}
|{{{Sep|,}}} [[Online Computer Library Center|OCLC]] [http://worldcat.org/oclc/{{urlencode:{{{OCLC}}}}} {{{OCLC}}}]
|{{{Sep|,}}}&#32;[[Online Computer Library Center|OCLC]] [http://worldcat.org/oclc/{{urlencode:{{{OCLC}}}}} {{{OCLC}}}]
}}{{
}}{{
<!--============ PMID ============-->
<!--============ PMID ============-->
#if: {{{PMID|}}}
#if: {{{PMID|}}}
|{{{Sep|,}}} [[PubMed Identifier|PMID]] [http://www.ncbi.nlm.nih.gov/pubmed/{{{PMID}}} {{{PMID}}}]
|{{{Sep|,}}}&#32;[[PubMed Identifier|PMID]] [http://www.ncbi.nlm.nih.gov/pubmed/{{{PMID}}} {{{PMID}}}]
}}{{
}}{{
<!--============ PMC ============-->
<!--============ PMC ============-->
#if: {{{PMC|}}}
#if: {{{PMC|}}}
|{{#if: {{{URL|}}}
|{{
#if: {{{URL|}}}
|{{{Sep|,}}} [[PubMed Central|PMC]] [http://www.pubmedcentral.nih.gov/articlerender.fcgi?tool=pmcentrez&artid={{{PMC}}} {{{PMC}}}]
|{{{Sep|,}}}&#32;[[PubMed Central|PMC]] [http://www.pubmedcentral.nih.gov/articlerender.fcgi?tool=pmcentrez&artid={{{PMC}}} {{{PMC}}}]
}}
}}
}}{{
}}{{
<!--============ BIBCODE ============-->
<!--============ BIBCODE ============-->
#if: {{{Bibcode|}}}
#if: {{{Bibcode|}}}
|{{{Sep|,}}} [[Bibcode]]:&nbsp;[http://adsabs.harvard.edu/abs/{{{Bibcode}}} {{{Bibcode}}}]
|{{{Sep|,}}}&#32;[[Bibcode]]:&nbsp;[http://adsabs.harvard.edu/abs/{{{Bibcode}}} {{{Bibcode}}}]
}}{{
}}{{
<!--============ Archive data, etc ===========-->
<!--============ Archive data, etc ===========-->
#if: {{{Archive|}}}
#if: {{{Archive|}}}
|{{{Sep|,}}} {{{Archive}}}[[Category:Pages using deprecated citation archive parameters]]
|{{{Sep|,}}}&#32;{{{Archive}}}[[Category:Pages using deprecated citation archive parameters]]
|{{
|{{
#if:{{{ArchiveURL|}}}{{{ArchiveDate|}}}
#if:{{{ArchiveURL|}}}{{{ArchiveDate|}}}
|{{{Sep|,}}} {{#ifeq:{{{Sep}}}|.|A|a}}rchived{{
|{{{Sep|,}}}&#32;{{#ifeq:{{{Sep}}}|.|A|a}}rchived{{
#if:{{{OriginalURL|}}}{{{IncludedWorkURL|}}}
#if:{{{OriginalURL|}}}{{{IncludedWorkURL|}}}
|{{#if:{{{ArchiveURL|}}}|&#32;from {{Citation/make link|{{{OriginalURL|{{{IncludedWorkURL|}}}}}}|the original}}}}
|{{#if:{{{ArchiveURL|}}}|&#32;from {{Citation/make link|{{{OriginalURL|{{{IncludedWorkURL|}}}}}}|the original}}}}
Line 578: Line 590:
}}
}}
}}
}}
}}{{
}}{{
<!--============ URL and AccessDate ============-->
<!--============ URL and AccessDate ============-->
#if: {{{URL|}}}{{{IncludedWorkURL|}}}
#if: {{{URL|}}}{{{IncludedWorkURL|}}}
|{{
|{{
#if: {{{Title|}}}{{{IncludedWorkTitle|}}}{{{TransTitle|}}}
#if: {{{Title|}}}{{{IncludedWorkTitle|}}}{{{TransTitle|}}}
|<span class="printonly">{{{Sep|,}}} {{
|<span class="printonly">{{{Sep|,}}}&#32;{{
#if: {{{IncludedWorkURL|}}}
#if: {{{IncludedWorkURL|}}}
|{{{IncludedWorkURL}}}
|{{{IncludedWorkURL}}}
|{{{URL}}}
|{{{URL}}}
}}</span>
}}</span>
|{{{Sep|,}}} {{
|{{{Sep|,}}}&#32;{{
#if: {{{IncludedWorkURL|}}}
#if: {{{IncludedWorkURL|}}}
|{{{IncludedWorkURL}}}
|{{{IncludedWorkURL}}}
Line 597: Line 609:
| <span class="reference-accessdate">{{#ifeq:{{{Sep|,}}}|,|,&#32;r|.&#32;R}}etrieved {{{AccessDate}}}</span>
| <span class="reference-accessdate">{{#ifeq:{{{Sep|,}}}|,|,&#32;r|.&#32;R}}etrieved {{{AccessDate}}}</span>
}}
}}
}}{{#if:{{{laysummary|}}}
}}{{#if:{{{laysummary|}}}
|{{{Sep|,}}} [{{{laysummary}}} Lay summary]{{#if: {{{laysource|}}}|&nbsp;&ndash;&nbsp;''<nowiki />{{{laysource}}}<nowiki />''}}
|{{{Sep|,}}}&#32;[{{{laysummary}}} Lay summary]{{#if: {{{laysource|}}}|&nbsp;&ndash;&nbsp;''<nowiki />{{{laysource}}}<nowiki />''}}
}}{{#if:{{{laydate|}}}
}}{{#if:{{{laydate|}}}
| &#32;({{{laydate}}})
| &#32;({{{laydate}}})
}}{{#if:{{{quote|}}}
}}{{#if:{{{quote|}}}
|{{{Sep|,}}} &#32;"{{{quote}}}"
|{{{Sep|,}}}&#32;"{{{quote}}}"
}}{{{PS|}}}</span><!--
}}{{{PS|}}}</span><!--


Line 660: Line 672:
#if: {{{Date|}}} |&rft.date={{urlencode:{{{Date}}}}}
#if: {{{Date|}}} |&rft.date={{urlencode:{{{Date}}}}}
}}{{
}}{{
#if: {{{Series|}}} |&rft.series={{urlencode:{{{Series}}}}}
#if: {{{Series|}}} |&rft.series={{urlencode:{{{Series}}}}}
}}{{
}}{{
#if: {{{Volume|}}} |&rft.volume={{urlencode:{{{Volume}}}}}
#if: {{{Volume|}}} |&rft.volume={{urlencode:{{{Volume}}}}}
Line 670: Line 682:
#if: {{{Edition|}}} |&rft.edition={{urlencode:{{{Edition}}}}}
#if: {{{Edition|}}} |&rft.edition={{urlencode:{{{Edition}}}}}
}}{{
}}{{
#if: {{{PublicationPlace|}}} |&rft.place={{urlencode:{{{PublicationPlace}}}}}
#if: {{{PublicationPlace|}}}{{{Place|}}} |&rft.place={{urlencode:{{{PublicationPlace|{{{Place}}}}}}}}
}}{{
}}{{
#if: {{{Publisher|}}} |&rft.pub={{urlencode:{{{Publisher}}}}}
#if: {{{Publisher|}}} |&rft.pub={{urlencode:{{{Publisher}}}}}

Revision as of 15:30, 7 January 2010