Template:BackupLinkHelp
Jump to navigation
Jump to search
![]() |
Instructions for providing a backup link
In accordance with our Sourcing policy, all links to external sites must include a link to a backup version, preferably using Internet Archive. Instances that do not include one of the following parameters will result in the page being placed in the maintenance category. Please only use one of the following parameters.
Note that for citation templates using a central repository (/Archive subpage), archivedate values must be added to the repository, and not on the individual instance of those templates. |
Template documentation follows |
---|
Note: the template above may sometimes be partially or fully invisible. |
Visit Template:BackupLinkHelp/doc to edit this documentation. (How does this work?) |
Instructions
This section describes how you implement archivedate, archiveurl, archivefile, and nobackup in citation templates.
{{#if:{{{archivedate|}}} <!-- START LEVEL 1--> | ([https://web.archive.org/web/{{{archivedate}}}/URL-PARAMETER-OF-TEMPLATE backup link]) |{{#if:{{{3|{{{archiveurl|}}}}}} <!-- START LEVEL 2 --> | ([{{{3|{{{archiveurl}}}}}} backup link]) |{{#if:{{{nobackup|}}} <!-- START LEVEL 3 --> | (backup link not available) | ([https://web.archive.org/web/URL-PARAMETER-OF-TEMPLATE backup link] [[Template:TEMPLATE-NAME|<span style="color: red">'''not verified!'''</span>]]){{#if:{{NAMESPACE}} <!-- START LEVEL 4 --> |{{#ifeq:{{NAMESPACE}} <!-- START LEVEL 5 --> |File |[[Category:Pages with missing permanent archival links]] | }} <!-- END LEVEL 5 --> |[[Category:Pages with missing permanent archival links]] }} <!-- END LEVEL 4 --> }} <!-- END LEVEL 3 --> }} <!-- END LEVEL 2 --> }} <!-- END LEVEL 1 -->
Explanation
- Level 1: check for archivedate
- if archivedate is provided, render link to IA using the URL and the timestamp
- if archivedate is not provided, proceed to Level 2: check for archiveurl
- if archiveurl is provided, render link to archive
- if archiveurl is not provided, proceed to Level 3: check for nobackup
- if nobackup is provided, render (backup link not available)
- if nobackup is not provided, render (backup link not verified!), and proceed to Level 4:
- if {{NAMESPACE}} is empty (if we're in mainspace), add maintenance category
- if {{NAMESPACE}} is not empty, proceed to Level 5:
- if {{NAMESPACE}} equals "File", add maintenance category
- if {{NAMESPACE}} does not equal "File", do nothing