Don't like the ads? Then create an account! Users with accounts have more options than anonymous users. |
Template:Media link
From Triforce Wiki, a The Legend of Zelda wiki
Jump to navigationJump to search
Usage[edit]
Template idea for the prefix Media:
. The template was originally from the Super Mario Wiki.
Media: vs. :File:[edit]
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 red link is detected |
---|---|---|---|---|
Media:
|
Media:Animal Village LA Switch.jpg Media:aeilsdfilasjdl.png |
|||
:File:
|
File:Animal Village LA Switch.jpg File:aeilsdfilasjdl.png |
That's what this template addresses by bring both together. This template should only be used for main articles.
Usage[edit]
MediaWiki parsing | Code |
---|---|
File:Animal Village LA Switch.jpg | {{media link|Animal Village LA Switch.jpg}}
|
File:Animal Village LA Switch.jpg | {{media link|Animal Village LA Switch.jpg|}}
|
test | {{media link|Animal Village LA Switch.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}}
|
Other[edit]
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.