Template:Citation/core

(Difference between revisions)
Jump to: navigation, search
(Don't automatically link PMCs whilst they are under embargo if told not to)
(Tweak archiving system, per Template talk:Citation/core#Error messages)
Line 558: Line 558:
 
}}{{
 
}}{{
 
<!--============ Archive data, etc ===========-->
 
<!--============ Archive data, etc ===========-->
  #if: {{{Archive|}}}
+
#if: {{{Archive|}}}
  |{{{Sep|,}}} {{{Archive}}}
+
|{{{Sep|,}}} {{{Archive}}}[[Category:Pages using deprecated citation archive parameters]]
   |{{
+
|{{
 +
   #if:{{{ArchiveURL|}}}{{{ArchiveDate|}}}
 +
  |{{{Sep|,}}} {{#ifeq:{{{Sep}}}|.|A|a}}rchived{{
 
     #if:{{{OriginalURL|}}}
 
     #if:{{{OriginalURL|}}}
     |{{{Sep|,}}} {{#ifeq:{{{Sep}}}|.|A|a}}rchived from {{Citation/make link|{{{OriginalURL}}}|the original}}{{
+
     |{{#if:{{{ArchiveURL|}}}|&#32;from {{Citation/make link|{{{OriginalURL}}}|the original}}}}
      #if:{{{ArchiveDate|}}}
+
    }}{{
      |&#32;on {{{ArchiveDate}}}
+
    #if:{{{ArchiveDate|}}}
      |. {{citation error|You must specify the date the archive was made using the <code><nowiki>|archivedate=</nowiki></code> parameter}}  
+
    |&#32;on {{{ArchiveDate}}}
      }}
+
    }}{{
    |{{#if:{{{ArchiveDate|}}}|{{{Sep|,}}} {{#ifeq:{{{Sep}}}|.|A|a}}rchived on {{{ArchiveDate}}}; {{citation error|no <code><nowiki>|url=</nowiki></code> specified}}}}
+
    #if:{{#if:{{{ArchiveURL|}}}||A}}{{#if:{{{OriginalURL|}}}||B}}{{#if:{{{ArchiveDate|}}}||C}}
  }}
+
    |. {{citation error
 +
      |If you specify <code>&#124;{{#if:{{{ArchiveURL|}}}|archiveurl|archivedate}}&#61;</code>, you must {{#if:{{{OriginalURL|}}}| also specify <code>&#124;{{#if:{{{ArchiveURL|}}}|archivedate|archiveurl}}&#61;</code>|first specify <code>&#124;url&#61;</code>}}}}
 +
    }}
 +
  }}
 
}}{{  
 
}}{{  
 
<!--============ URL and AccessDate ============-->
 
<!--============ URL and AccessDate ============-->
Line 678: Line 683:
 
     }}{{
 
     }}{{
 
       #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>{{documentation}}</noinclude>
+
     }}&rfr_id=info:sid/en.wikipedia.org:{{FULLPAGENAMEE}}"><span style="display: none;">&nbsp;</span></span><noinclude>
 +
{{Pp-template|small=yes}}
 +
{{Documentation}}
 +
</noinclude>

Revision as of 09:58, 19 October 2009

  {{#invoke:documentation|main}}

Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox