There are currently 39 stubs. You can help us by expanding these articles!

Difference between revisions of "Template:Media link"

From the Crash Bandicoot Wiki, the Crash Bandicoot encyclopedia
Jump to navigationJump to search
m
(sentence'd)
Line 1: Line 1:
<includeonly>{{#ifexist:File:{{{1}}}|[[:File:{{{1}}}{{#if:{{{2|}}}|{{!}}{{{2}}}}}]]<span style="display:none;">}}[[Media:{{{1}}}{{#ifexist:File:{{{1}}}||{{!}}{{#if:{{{2|}}}|{{{2}}}|File:{{{1}}}}}}}]]{{#ifexist:File:{{{1}}}|</span>}}</includeonly><noinclude>
<includeonly>{{#ifexist:File:{{{1}}}|[[:File:{{{1}}}{{#if:{{{2|}}}|{{!}}{{{2}}}}}]]<span style="display:none;">}}[[Media:{{{1}}}{{#ifexist:File:{{{1}}}||{{!}}{{#if:{{{2|}}}|{{{2}}}|File:{{{1}}}}}}}]]{{#ifexist:File:{{{1}}}|</span>}}</includeonly><noinclude>


Original template is from [[mariowiki:Template:Media link|Super Mario Wiki]].
The original template is from the [[mariowiki:Template:Media link|Super Mario Wiki]].


==Usage==
==Usage==

Revision as of 19:42, March 12, 2022


The original template is from the Super Mario Wiki.

Usage

Template idea for the prefix Media:.

Other

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.