Jump to content

Template:Citation/core/sandbox: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
Amalthea (talk | contribs)
sync & test with {{{IncludedWorkURL}}}
Fixed IncludedWorkURL logic bugs
Line 563: Line 563:
#if:{{{ArchiveURL|}}}{{{ArchiveDate|}}}
#if:{{{ArchiveURL|}}}{{{ArchiveDate|}}}
|{{{Sep|,}}} {{#ifeq:{{{Sep}}}|.|A|a}}rchived{{
|{{{Sep|,}}} {{#ifeq:{{{Sep}}}|.|A|a}}rchived{{
#if:{{{OriginalURL|{{{IncludedWorkURL|}}}}}}
#if:{{{OriginalURL|}}}{{{IncludedWorkURL|}}}
|{{#if:{{{ArchiveURL|}}}| from {{Citation/make link|{{{OriginalURL|{{{IncludedWorkURL|}}}}}}|the original}}}}
|{{#if:{{{ArchiveURL|}}}| from {{Citation/make link|{{{OriginalURL|{{{IncludedWorkURL|}}}}}}|the original}}}}
}}{{
}}{{
Line 569: Line 569:
| on {{{ArchiveDate}}}
| on {{{ArchiveDate}}}
}}{{
}}{{
#if:{{#if:{{{ArchiveURL|}}}||A}}{{#if:{{{OriginalURL|{{{IncludedWorkURL|}}}}}}||B}}{{#if:{{{ArchiveDate|}}}||C}}
#if:{{#if:{{{ArchiveURL|}}}||A}}{{#if:{{{OriginalURL|}}}{{{IncludedWorkURL|}}}||B}}{{#if:{{{ArchiveDate|}}}||C}}
|. {{citation error
|. {{citation error
|If you specify <code>&#124;{{#if:{{{ArchiveURL|}}}|archiveurl|archivedate}}&#61;</code>, you must {{#if:{{{OriginalURL|{{{IncludedWorkURL|}}}}}}| also specify <code>&#124;{{#if:{{{ArchiveURL|}}}|archivedate|archiveurl}}&#61;</code>|first specify <code>&#124;url&#61;</code>}}}}
|If you specify <code>&#124;{{#if:{{{ArchiveURL|}}}|archiveurl|archivedate}}&#61;</code>, you must {{#if:{{{OriginalURL|}}}{{{IncludedWorkURL|}}}| also specify <code>&#124;{{#if:{{{ArchiveURL|}}}|archivedate|archiveurl}}&#61;</code>|first specify <code>&#124;url&#61;</code>}}}}
}}
}}
}}
}}
}}{{
}}{{
<!--============ URL and AccessDate ============-->
<!--============ URL and AccessDate ============-->
#if: {{{URL|{{{IncludedWorkURL|}}}}}}
#if: {{{URL|}}}{{{IncludedWorkURL|}}}
|{{
|{{
#if: {{{Title|}}}{{{IncludedWorkTitle|}}}{{{TransTitle|}}}
#if: {{{Title|}}}{{{IncludedWorkTitle|}}}{{{TransTitle|}}}
Line 682: Line 682:
#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;">&nbsp;</span></span><noinclude>
}}&rfr_id=info:sid/en.wikipedia.org:{{FULLPAGENAMEE}}"><span style="display: none;">&nbsp;</span></span><noinclude>
{{Pp-template|small=yes}}
{{Pp-template|small=yes}}

Revision as of 18:55, 3 November 2009