Template:A/doc

Create a link with archive.is and archive.org buttons.

gives:

For some more complicated links you need to explicitly use 1= and 2= (like so: ) otherwise it won't work.

Note: This will not actually create the archival links. You will need to generate these yourself.

Here's a Vim substitute command if you want to convert all references in a page; the first one is for links with a description, the second for "bare" links in references.


 * %s/\[\(.\{-}\) \(.\{-}\)]\(.\{-}\)<\/ref>/<\/ref>/g
 * %s/\(http.\{-}\)<\/ref>/<\/ref>/g

Protip: add  for interactive confirmation