Template:BackupLinkHelp/doc
Jump to navigation
Jump to search
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