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 [[ | 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
- File:Alternate screen.png
{{User:Wildgoosespeeder/MediaLink|Alternate screen.png}}
- File:Alternate screen.png
{{User:Wildgoosespeeder/MediaLink|Alternate screen.png|}}
- test
{{User:Wildgoosespeeder/MediaLink|Alternate screen.png|test}}
Other
Uses {{!}}
.