The wiki is lacking in content. You can help by creating a new article. See the to do list for more ways you can help.
Difference between revisions of "Template:Media link"
From Final Fantasy Wiki
Jump to navigationJump to search
(new template) |
(attr) |
||
Line 67: | Line 67: | ||
=== Other === | === Other === | ||
Uses <code>{{t|!}}</code>. Also hides media prefix usage with <nowiki><span></nowiki> tag and a simple CSS code. Special code implemented if a red link results from the file string specified. | Uses <code>{{t|!}}</code>. Also hides media prefix usage with <nowiki><span></nowiki> tag and a simple CSS code. Special code implemented if a red link results from the file string specified. | ||
== Attribution == | |||
Template is from the [[mariowiki:Template:Media link|Super Mario Wiki]]. | |||
[[Category:Formatting templates]] | [[Category:Formatting templates]] | ||
[[Category:Media templates]]</noinclude> | [[Category:Media templates]]</noinclude> |
Latest revision as of 00:22, July 17, 2021
Usage[edit]
Template idea for the prefix Media:
.
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 a red link is detected |
---|---|---|---|---|
Media:
|
Media:Chocobo FFX artwork.jpg Media:aeilsdfilasjdl.png |
|||
:File:
|
File:Chocobo FFX artwork.jpg File:aeilsdfilasjdl.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[edit]
{{media link}} testing for bugs:
MediaWiki parsing | Code |
---|---|
File:Chocobo FFX artwork.jpg | {{media link|Chocobo FFX artwork.jpg}}
|
File:Chocobo FFX artwork.jpg | {{media link|Chocobo FFX artwork.jpg|}}
|
test | {{media link|Chocobo FFX artwork.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.
Attribution[edit]
Template is from the Super Mario Wiki.