There are currently 114 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
(new)
 
(same line)
 
(2 intermediate revisions by the same user not shown)
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==
Line 7: Line 7:


===Other===
===Other===
Uses <code>{{tem|!}}</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.


[[Category:Formatting templates]]
[[Category:Formatting templates]]
[[Category:Media templates]]
[[Category:Media templates]]</noinclude>
</noinclude>

Latest revision as of 19:42, March 12, 2022


The original template is from the Super Mario Wiki.

Usage[edit]

Template idea for the prefix Media:.

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.