Difference between revisions of "Template:Citation/core"
From Self-sufficiency
(some of the templates appear to use a parameter named "Citation type" instead) |
(Fixes, per talk page: 1) Archive url oddities with IncludedWorkURL. 2) Title nested italification error. 3) single quote conflicts) |
||
Line 270: | Line 270: | ||
| 2={{ | | 2={{ | ||
#if: {{{Periodical|}}} | #if: {{{Periodical|}}} | ||
− | |''{{{IncludedWorkTitle}}}'' | + | |''<nowiki />{{{IncludedWorkTitle}}}<nowiki />'' |
|{{{IncludedWorkTitle|}}}{{ | |{{{IncludedWorkTitle|}}}{{ | ||
#if: {{{TransTitle|}}} | #if: {{{TransTitle|}}} | ||
Line 283: | Line 283: | ||
| | | | ||
|{{ | |{{ | ||
− | #if: {{{Surname1|}}}{{{EditorSurname1|}}}{{{IncludedWorkTitle | + | #if: {{{Surname1|}}}{{{EditorSurname1|}}}{{{IncludedWorkTitle|}}} |
|{{{Sep|,}}} written at {{{Place}}} | |{{{Sep|,}}} written at {{{Place}}} | ||
}} | }} | ||
Line 392: | Line 392: | ||
}} | }} | ||
}}{{ | }}{{ | ||
− | + | #if: {{{language|}}} | |
− | + | | (in {{{language}}}) | |
− | + | }}{{#if: {{{format|}}} | |
− | + | | ({{{format}}}) | |
− | + | }}{{ | |
#if: {{{Periodical|}}}|{{ | #if: {{{Periodical|}}}|{{ | ||
− | + | #if:{{{IncludedWorkTitle|}}}{{{Title|}}}{{{TransTitle|}}}|{{{Sep|,}}} }}''<nowiki />{{{Periodical}}}<nowiki />''{{ | |
− | + | #if: {{{Series|}}} | |
− | + | |{{{Sep|,}}} {{{Series}}} | |
− | + | }}{{ | |
− | + | #if: {{{PublicationPlace|}}} | |
− | + | |{{ | |
− | + | #if: {{{Publisher|}}} | |
− | + | | ({{{PublicationPlace}}}<nowiki>: </nowiki>{{{Publisher}}}) | |
− | + | | ({{{PublicationPlace}}}) | |
− | + | }} | |
− | + | |{{ | |
− | + | #if: {{{Publisher|}}} | |
− | + | | ({{{Publisher}}}) | |
− | + | }} | |
− | + | }}{{ | |
− | + | #if: {{{Volume|}}} | |
− | + | | '''<nowiki />{{{Volume}}}<nowiki />'''{{ | |
− | + | #if: {{{Issue|}}} | |
− | + | | ({{{Issue}}}) | |
− | + | }} | |
− | + | |{{ | |
− | + | #if: {{{Issue|}}} | |
− | + | | ({{{Issue}}}) | |
− | + | }} | |
− | + | }}{{ | |
− | + | #if: {{{At|}}} | |
− | + | |<nowiki>: </nowiki> {{{At}}} | |
− | + | }} | |
− | + | |{{ | |
− | + | <!--============ Anything else with a title, including books ============--> | |
− | + | #if: {{{Title|}}}{{{TransItalic|}}} | |
− | + | |{{ | |
− | + | #if: {{{Surname1|}}}{{{EditorSurname1|}}}{{{IncludedWorkTitle|}}}{{{Periodical|}}} | |
− | + | |{{{Sep|,}}} |  | |
− | + | }}{{Citation/make link | |
− | + | | 1={{ | |
− | + | #if: {{{IncludedWorkTitle|}}} | |
− | + | |{{ | |
− | + | #if: {{{IncludedWorkURL|}}} | |
− | + | |{{ | |
− | + | #if: {{{URL|}}} | |
− | + | |{{{URL}}} | |
− | + | |{{#ifexpr:{{#time: U}} > {{#time: U | {{{Embargo|2001-10-10}}} }}|{{ | |
− | + | #if: {{{PMC|}}} | |
− | + | | http://www.pubmedcentral.nih.gov/articlerender.fcgi?tool=pmcentrez&artid={{{PMC}}} | |
− | + | }}}} | |
− | + | }} | |
− | + | }} | |
− | + | |{{ | |
− | + | #if: {{{URL|}}} | |
− | + | |{{{URL}}} | |
− | + | |{{#ifexpr:{{#time: U}} > {{#time: U | {{{Embargo|2001-10-10}}} }}|{{ | |
− | + | #if: {{{PMC|}}} | |
− | + | | http://www.pubmedcentral.nih.gov/articlerender.fcgi?tool=pmcentrez&artid={{{PMC}}} | |
− | + | }}}} | |
− | + | }} | |
− | + | }} | |
− | + | | 2=''<nowiki />{{{Title|}}}{{ | |
− | + | #if:{{{TransItalic|}}}| [{{{TransItalic}}}] | |
− | + | }}<nowiki />''}}}}{{ | |
− | + | #if: {{{Series|}}} | |
− | + | |{{{Sep|,}}} {{{Series}}} | |
− | + | }}{{ | |
− | + | #if: {{{Volume|}}} | |
− | + | |{{{Sep|,}}} '''<nowiki />{{{Volume}}}<nowiki />''' | |
− | + | }}{{ | |
− | + | #if: {{{Other|}}} | |
− | + | |{{{Sep|,}}} {{{Other|}}} | |
− | + | }}{{ | |
− | + | #if: {{{Edition|}}} | |
− | + | | ({{{Edition}}} ed.) | |
− | + | }}{{ | |
− | + | #if: {{{PublicationPlace|}}} | |
− | + | |{{{Sep|,}}} {{{PublicationPlace}}} | |
− | + | }}{{ | |
− | + | #if: {{{Publisher|}}} | |
− | + | |{{ | |
− | + | #if: {{{PublicationPlace|}}} | |
− | + | |<nowiki>:</nowiki> | |
− | + | |{{{Sep|,}}} | |
− | + | }} {{{Publisher}}} | |
− | + | }} | |
− | + | }}{{ | |
<!--============ Date (if no author/editor) ============--> | <!--============ Date (if no author/editor) ============--> | ||
#if: {{{Surname1|}}}{{{EditorSurname1|}}} | #if: {{{Surname1|}}}{{{EditorSurname1|}}} | ||
Line 529: | Line 529: | ||
<!--============ Misc. Identifier ============--> | <!--============ Misc. Identifier ============--> | ||
#if: {{{ID|}}} | #if: {{{ID|}}} | ||
− | |{{{Sep|,}}} {{{ID}}} | + | |{{ |
+ | #if: {{{Surname1|}}}{{{EditorSurname1|}}}{{{IncludedWorkTitle|}}}{{{Periodical|}}}{{{Title|}}}{{{TransItalic|}}} | ||
+ | |{{{Sep|,}}} {{{ID}}} | ||
+ | |{{{ID}}} | ||
+ | }} | ||
}}{{ | }}{{ | ||
<!--============ ISBN ============--> | <!--============ ISBN ============--> | ||
Line 563: | Line 567: | ||
#if:{{{ArchiveURL|}}}{{{ArchiveDate|}}} | #if:{{{ArchiveURL|}}}{{{ArchiveDate|}}} | ||
|{{{Sep|,}}} {{#ifeq:{{{Sep}}}|.|A|a}}rchived{{ | |{{{Sep|,}}} {{#ifeq:{{{Sep}}}|.|A|a}}rchived{{ | ||
− | #if:{{{OriginalURL|}}} | + | #if:{{{OriginalURL|}}}{{{IncludedWorkURL|}}} |
− | |{{#if:{{{ArchiveURL|}}}| from {{Citation/make link|{{{OriginalURL}}}|the original}}}} | + | |{{#if:{{{ArchiveURL|}}}| from {{Citation/make link|{{{OriginalURL|{{{IncludedWorkURL|}}}}}}|the original}}}} |
}}{{ | }}{{ | ||
#if:{{{ArchiveDate|}}} | #if:{{{ArchiveDate|}}} | ||
| on {{{ArchiveDate}}} | | on {{{ArchiveDate}}} | ||
}}{{ | }}{{ | ||
− | #if:{{#if:{{{ArchiveURL|}}}||A}}{{#if:{{{OriginalURL|}}}||B}}{{#if:{{{ArchiveDate|}}}||C}} | + | #if:{{#if:{{{ArchiveURL|}}}||A}}{{#if:{{{OriginalURL|}}}{{{IncludedWorkURL|}}}||B}}{{#if:{{{ArchiveDate|}}}||C}} |
|. {{citation error | |. {{citation error | ||
− | |If you specify <code>|{{#if:{{{ArchiveURL|}}}|archiveurl|archivedate}}=</code>, you must {{#if:{{{OriginalURL|}}}| also specify <code>|{{#if:{{{ArchiveURL|}}}|archivedate|archiveurl}}=</code>|first specify <code>|url=</code>}}}} | + | |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>}}}} |
}} | }} | ||
}} | }} | ||
}}{{ | }}{{ | ||
<!--============ URL and AccessDate ============--> | <!--============ URL and AccessDate ============--> | ||
− | #if: {{{URL|{{{IncludedWorkURL| | + | #if: {{{URL|}}}{{{IncludedWorkURL|}}} |
|{{ | |{{ | ||
#if: {{{Title|}}}{{{IncludedWorkTitle|}}}{{{TransTitle|}}} | #if: {{{Title|}}}{{{IncludedWorkTitle|}}}{{{TransTitle|}}} | ||
Line 594: | Line 598: | ||
}} | }} | ||
}}{{#if:{{{laysummary|}}} | }}{{#if:{{{laysummary|}}} | ||
− | |{{{Sep|,}}} [{{{laysummary}}} Lay summary]{{#if: {{{laysource|}}}| – ''{{{laysource}}}''}} | + | |{{{Sep|,}}} [{{{laysummary}}} Lay summary]{{#if: {{{laysource|}}}| – ''<nowiki />{{{laysource}}}<nowiki />''}} |
}}{{#if:{{{laydate|}}} | }}{{#if:{{{laydate|}}} | ||
|  ({{{laydate}}}) | |  ({{{laydate}}}) | ||
Line 682: | Line 686: | ||
#if: {{{ISSN|}}} |&rft.issn={{urlencode:{{{ISSN}}}}} | #if: {{{ISSN|}}} |&rft.issn={{urlencode:{{{ISSN}}}}} | ||
}}{{ | }}{{ | ||
− | #if: {{{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> | ||
{{Pp-template|small=yes}} | {{Pp-template|small=yes}} | ||
{{Documentation}} | {{Documentation}} | ||
</noinclude> | </noinclude> |
Revision as of 02:21, 16 November 2009
[edit]
Documentation