This wiki has been automatically closed because there have been no edits or log actions made within the last 60 days. If you are a user (who is not the bureaucrat) that wishes for this wiki to be reopened, please request that at Requests for reopening wikis. If this wiki is not reopened within 6 months it may be deleted. Note: If you are a bureaucrat on this wiki, you can go to Special:ManageWiki and uncheck the "Closed" box to reopen it.

Template:Media link

From Square Enix Wiki, a wiki covering all things Square Enix
Jump to navigationJump to search


Template idea for the prefix Media:.

Media: vs. :File:

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

Prefix Sample Special:UnusedFiles prevention Provides a file page link Provides a special link to Special:Upload if a red link has been detected
Media: Media:Black Mage MH3o3 icon.jpg
Check mark.svg X mark.svg Check mark.svg
:File: File:Black Mage MH3o3 icon.jpg
X mark.svg Check mark.svg X mark.svg

That's what this template addresses by bring the best of both worlds together. This template should be used in main articles only!

Use cases

{{media link}} testing for bugs:

MediaWiki parsing Code
File:Black Mage MH3o3 icon.jpgMedia:Black Mage MH3o3 icon.jpg {{media link|Black Mage MH3o3 icon.jpg}}
File:Black Mage MH3o3 icon.jpgMedia:Black Mage MH3o3 icon.jpg {{media link|Black Mage MH3o3 icon.jpg|}}
testMedia:Black Mage MH3o3 icon.jpg {{media link|Black Mage MH3o3 icon.jpg|test}}
[[Media:|test]] {{media link||test}}
[[Media:|File:]] {{media link||}}
[[Media:|File:]] {{media link|}}
[[Media:{{{1}}}|File:{{{1}}}]] {{media link}}
File:aeilsdfilasjdl.png {{media link|aeilsdfilasjdl.png}}
File:aeilsdfilasjdl.png {{media link|aeilsdfilasjdl.png|}}
test {{media link|aeilsdfilasjdl.png|test}}


Uses {{!}}. Also hides media prefix usage with <span> tag and a simple CSS code. Special code implemented if a red link results from the file string specified.