Template:File link

From the Super Mario Wiki, the Mario encyclopedia
Revision as of 08:53, June 4, 2024 by PorpleBot (talk | contribs) (Text replacement - "({{|[Tt]em\|)[Mm]edia link" to "$1file link")
Jump to navigationJump to search

This template creates a file page link with Special:UnusedFiles prevention, as well as Special:Upload support if the file doesn't exist.

About

:File: vs. Media:

Both prefixes display a link instead of embedding the file itself, but there are some key differences:

Prefix Sample Provides a file page link Special:UnusedFiles prevention Provides a special link to Special:Upload if a red link has been detected
:File: File:MK8 Electrodrome Alternate Screen.png
File:Aeilsdfilasjdl.png
Check mark.svg X mark.svg X mark.svg
Media: Media:MK8 Electrodrome Alternate Screen.png
Media:Aeilsdfilasjdl.png
X mark.svg Check mark.svg Check mark.svg

Usage

Testing the template for bugs:

Code MediaWiki parsing
{{file link|MK8 Electrodrome Alternate Screen.png}} File:MK8 Electrodrome Alternate Screen.pngMedia:MK8 Electrodrome Alternate Screen.png
{{file link|MK8 Electrodrome Alternate Screen.png|}} File:MK8 Electrodrome Alternate Screen.pngMedia:MK8 Electrodrome Alternate Screen.png
{{file link|MK8 Electrodrome Alternate Screen.png|Test}} TestMedia:MK8 Electrodrome Alternate Screen.png
{{file link||Test}} [[Media:|Test]]
{{file link||}} [[Media:|File:]]
{{file link|}} [[Media:|File:]]
{{file link}} [[Media:{{{1}}}|File:{{{1}}}]]
{{file link|Aeilsdfilasjdl.png}} File:Aeilsdfilasjdl.png
{{file link|Aeilsdfilasjdl.png|}} File:Aeilsdfilasjdl.png
{{file link|Aeilsdfilasjdl.png|Test}} Test