Template:Media table/row: Difference between revisions

From the Super Mario Wiki, the Mario encyclopedia
Jump to navigationJump to search
mNo edit summary
mNo edit summary
 
(59 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{#if:{{{name|}}}|<table style="padding:4px;width:100%;border-collapse:collapse;border:1px solid black;border-top:2px solid black"><tr><td style="padding:3px 0 0 2px;">{{#ifeq:{{lc:{{{type}}}}}|video|[[File:Video.svg|25px|link=]]|[[File:Audio.png|link=|25px]]}} {{#ifeq:{{lc:{{{type}}}}}|video|'''[[:File:{{{name}}}.{{#switch:{{{caps|off}}}|=ogg|off=ogg|#default=OGG}}|{{{pipe|{{{name}}}}}}]]'''|'''{{{pipe|{{{name}}}}}}'''}} {{#if:{{{description|}}}|- {{{description}}}}}<center>{{#ifeq:{{lc:{{{type}}}}}|video||[[File:{{{name}}}.{{#switch:{{{caps|off}}}|=ogg|off=ogg|#default=OGG}}]]}}</center></td><td style="text-align:right;width:6%;padding-right:10px;"><small>{{{length|}}}</small><br><small>[[:File:{{{name}}}.{{#switch:{{{caps|off}}}|=ogg|off=ogg|#default=OGG}}|File info]]</small></td></tr></table><div style="display:none;">[[File:{{{name}}}.{{#switch:{{{caps|off}}}|=ogg|off=ogg|#default=OGG}}]]</div>}}<includeonly>[[Category:Pages with media files]]</includeonly><noinclude>For OGG files. To use for OGA or OGV, see {{tem|media/OGA}} and {{tem|media/OGV}}.[[Category:Media templates]]</noinclude>
<includeonly><table class="wikitable mediaRow {{#ifeq:{{{type}}}|video|videoRow|audioRow}}" style="width:100% !important"><tr><td class="fileMain">[[File:{{#ifeq:{{{type}}}|video|Video|Audio}}.svg|25px|link=]] '''{{#if:{{{title|}}}|{{{title}}}|{{#sub:{{{file}}}|0|{{#rpos:{{{file}}}|.}}}}}}''' {{#if:{{{description|}}}|- {{{description}}}}}<center>{{#ifeq:{{{type}}}|video|[[File:{{{file}}}|x75px|Play video]]|[[File:{{{file}}}|300px]]}}</center><td class="fileInfo" style="width:50px;text-align:right;padding-right:10px"><small>{{file link|{{{file}}}|File info}}<br>{{#if:{{{length|}}}|{{{length}}}|&#8203;}}</small></table></includeonly><noinclude>
== Usage ==
This is a subtemplate and it's not intended to be used directly. See {{tem|media table}} for instructions.
 
[[Category:Subtemplates]]</noinclude><includeonly>{{#ifeq:{{{type}}}|video|[[Category:Pages with video files]]|[[Category:Pages with audio files]]{{#if:{{NAMESPACE}}||{{#if:{{{length|}}}|{{#ifeq:{{#sub:{{{length}}}|0|1}}|0|{{#ifexpr:{{#sub:{{{length}}}|-2}} > 30|[[Category:Articles with audio files over 30 seconds]]}}|[[Category:Articles with audio files over 30 seconds]]}}}}}}}}</includeonly>

Latest revision as of 16:11, June 30, 2024

Usage

This is a subtemplate and it's not intended to be used directly. See {{media table}} for instructions.