Template:Media table/row: Difference between revisions
From the Super Mario Wiki, the Mario encyclopedia
Jump to navigationJump to search
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
<table class="{{#ifeq:{{{type}}}|video|mediaVideo|mediaAudio}}" style="width:100%;padding:4px;border:1px solid #000;border-collapse:collapse"><tr><td>[[File:{{#ifeq:{{{type}}}|video|Video|Audio}}.svg|25px|link=]] '''{{#if:{{{title|}}}|{{{title}}}|{{#sub:{{{file}}}|0|{{#rpos:{{{file}}}|.}}}}}}''' {{#if:{{{description|}}}|- {{{description}}}}}<center>{{#ifeq:{{{type}}}|video|[[Media:{{{file}}}|Play video]]|[[File:{{{file}}}|300px]]}}</center><td style="width:6%;text-align:right;padding-right:10px"><small>{{media link|{{{file}}}| | <table class="{{#ifeq:{{{type}}}|video|mediaVideo|mediaAudio}}" style="width:100%;padding:4px;border:1px solid #000;border-collapse:collapse"><tr><td>[[File:{{#ifeq:{{{type}}}|video|Video|Audio}}.svg|25px|link=]] '''{{#if:{{{title|}}}|{{{title}}}|{{#sub:{{{file}}}|0|{{#rpos:{{{file}}}|.}}}}}}''' {{#if:{{{description|}}}|- {{{description}}}}}<center>{{#ifeq:{{{type}}}|video|[[Media:{{{file}}}|Play video]]|[[File:{{{file}}}|300px]]}}</center><td style="width:6%;text-align:right;padding-right:10px"><small>{{media link|{{{file}}}|File info}}{{#if:{{{length|}}}|<br>{{{length}}}}}</small></table><noinclude> | ||
== Usage == | == Usage == | ||
This is a sub-template and it's not intended to be used directly. See {{tem|media table}} for instructions. | This is a sub-template and it's not intended to be used directly. See {{tem|media table}} for instructions. | ||
[[Category:Media templates]]</noinclude><includeonly>{{#ifeq:{{{type}}}|video|[[Category:Pages with video files]]|[[Category:Pages with audio files]]{{#ifeq:{{NAMESPACENUMBER}}|0|{{#ifexpr:{{#sub:{{{length|}}}|-2}} > 30|[[Category:Articles with audio files over 30 seconds]]}}}}}}</includeonly> | [[Category:Media templates]]</noinclude><includeonly>{{#ifeq:{{{type}}}|video|[[Category:Pages with video files]]|[[Category:Pages with audio files]]{{#ifeq:{{NAMESPACENUMBER}}|0|{{#ifexpr:{{#sub:{{{length|}}}|-2}} > 30|[[Category:Articles with audio files over 30 seconds]]}}}}}}</includeonly> |
Revision as of 05:28, May 14, 2021
Template:Media link |
Usage
This is a sub-template and it's not intended to be used directly. See {{media table}} for instructions.