User:Wildgoosespeeder/MediaLink: Difference between revisions

From the Super Mario Wiki, the Mario encyclopedia
Jump to navigationJump to search
mNo edit summary
mNo edit summary
Line 1: Line 1:
<includeonly>[[:File:{{{1}}}{{#if:{{{2|}}}|{{!}}{{{2}}}}}]]<span style="display:none;">[[Media:{{{1}}}]]</span></includeonly><noinclude>
<includeonly>[[:File:{{{1}}}{{#if:{{{2|}}}|{{!}}{{{2}}}}}]]<span style="display:none;">[[Media:{{{1}}}]]</span></includeonly><noinclude>
==Usage==
==Usage==
Template idea for [[Media:Alternate screen.png]] so that way a link to the file page is provided instead of just the image itself.
Template idea for the prefix "Media:"
 
===Media: vs. :File:===
Both prefixes display a link instead of the image itself but there are some key differences:
 
{| class="wikitable"
! <code>Media:</code>
| Prevents file from showing up in [[Special:UnusedFiles]] but no file page link.
|-
! <code>:File:</code>
| Does not prevent file from showing up in [[Special:UnusedFiles]] but file page link is provided.
|}
 
That's what this template addresses by bring the best of both worlds together.


===Use Cases===
===Use Cases===

Revision as of 15:31, January 1, 2017

Usage

Template idea for the prefix "Media:"

Media: vs. :File:

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

Media: Prevents file from showing up in Special:UnusedFiles but no file page link.
:File: Does not prevent file from showing up in Special:UnusedFiles but file page link is provided.

That's what this template addresses by bring the best of both worlds together.

Use Cases

Other

Uses {{!}}.