Template:File archive/doc: Difference between revisions

From NPOWiki
Jump to navigation Jump to search
Created page with "{{documentation subpage}} This template is used to link to a local archive file of an external resource, such as a forum post, in case the external site goes down. This template must always be used for such files because it lists the page as linking to the file and removes it from Special:UnusedFiles. See also Category:Archive files. ==Parameters== The only parameter is a single unnamed parameter, which is required and must be the name of the local file includ..."
 
No edit summary
 
Line 1: Line 1:
{{documentation subpage}}
{{documentation subpage}}


This template is used to link to a local archive file of an external resource, such as a forum post, in case the external site goes down. This template must always be used for such files because it lists the page as linking to the file and removes it from [[Special:UnusedFiles]]. See also [[:Category:Archive files]].
This template is used to link to a local archive file of an external resource, such as a forum post, in case the external site goes down. This template must always be used for such files because it will list the page as linking to the file and remove it from [[Special:UnusedFiles]]. See also [[:Category:Archive files]].


==Parameters==
==Parameters==
The only parameter is a single unnamed parameter, which is required and must be the name of the local file including the extension but not the File: prefix.
*first unnamed parameter - required, the name of the local file including the extension but not the File: prefix.
*(optional) second unnamed parameter - the text to display for the archive link, defaults to "local archive" and should usually contain the word "archive" if replaced.


==Examples==
==Examples==
* <code><nowiki>{{file archive|We're Still Watching You - Part 1.JPG}}</nowiki></code> produces: {{file archive|We're Still Watching You - Part 1.JPG}}
*<code><nowiki>{{file archive|We're Still Watching You - Part 1.JPG}}</nowiki></code> produces: {{file archive|We're Still Watching You - Part 1.JPG}}


<includeonly>[[Category:Internal link templates]]</includeonly>
<includeonly>[[Category:Internal link templates]]</includeonly>

Latest revision as of 07:37, 10 September 2025

This page contains the documentation for Template:File archive. It includes information about the template, such as usage and categories, and is not displayed when using the template itself.

This template is used to link to a local archive file of an external resource, such as a forum post, in case the external site goes down. This template must always be used for such files because it will list the page as linking to the file and remove it from Special:UnusedFiles. See also Category:Archive files.

Parameters

  • first unnamed parameter - required, the name of the local file including the extension but not the File: prefix.
  • (optional) second unnamed parameter - the text to display for the archive link, defaults to "local archive" and should usually contain the word "archive" if replaced.

Examples

  • {{file archive|We're Still Watching You - Part 1.JPG}} produces: (local archive info)