User:Wildgoosespeeder/MediaLink: Difference between revisions
From the Super Mario Wiki, the Mario encyclopedia
Jump to navigationJump to search
mNo edit summary |
m (Everything should work fine now.) |
||
Line 45: | Line 45: | ||
|- | |- | ||
! {{{{FULLPAGENAME}}|aeilsdfilasjdl.png|test}} | ! {{{{FULLPAGENAME}}|aeilsdfilasjdl.png|test}} | ||
| <code><nowiki>{{MediaLink| | | <code><nowiki>{{MediaLink|aeilsdfilasjdl.png|test}}</nowiki></code> | ||
|} | |} | ||
Revision as of 17:43, January 2, 2017
Usage
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 |
---|---|---|---|
Media:
|
Media:Alternate screen.png | ||
:File:
|
File:Alternate screen.png |
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
{{MediaLink}} testing for bugs:
MediaWiki parsing | Code |
---|---|
File:Alternate screen.png | {{MediaLink|Alternate screen.png}}
|
File:Alternate screen.png | {{MediaLink|Alternate screen.png|}}
|
File:Alternate screen.png | {{MediaLink|Alternate screen.png|test}}
|
[[Media:|File:]] | {{MediaLink||test}}
|
File:aeilsdfilasjdl.png | {{MediaLink|aeilsdfilasjdl.png|test}}
|
Other
Uses {{!}}
. Also hides media prefix usage with <span> tag and a simple CSS code.