Check out the community portal for ways in which you can help the Wiki of Mana! Also, keep in mind that this wiki contains unmarked spoilers.
Difference between revisions of "Template:Media link"
From the Wiki of Mana, the Mana encyclopedia
Jump to navigationJump to search
(new) |
Trig Jegman (talk | contribs) m (→Other) |
||
Line 65: | Line 65: | ||
===Other=== | ===Other=== | ||
Uses <code>{{ | Uses <code>{<nowiki/>{!}}</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. | ||
[[Category:Formatting templates]] | [[Category:Formatting templates]] | ||
[[Category:Media templates]]</noinclude> | [[Category:Media templates]]</noinclude> |
Latest revision as of 18:18, January 12, 2024
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:Rabite LOM artwork.jpg Media:aeilsdfilasjdl.png |
|||
:File:
|
File:Rabite LOM artwork.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:Rabite LOM artwork.jpg | {{media link|Rabite LOM artwork.jpg}}
|
File:Rabite LOM artwork.jpg | {{media link|Rabite LOM artwork.jpg|}}
|
test | {{media link|Rabite LOM 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.