Template:Media table: Difference between revisions

From the Super Mario Wiki, the Mario encyclopedia
Jump to navigationJump to search
(5)
(10)
Line 5: Line 5:
<td style="text-align:right;width:6%"><small>{{{length3}}}</small><br><small>[[:Image:{{{name3}}}.{{#if:{{{caps3|}}}|OGG|ogg}}|File info]]</small></table>}}{{#if:{{{name4|}}}|<table style="padding:4px;width:100%;border-collapse:collapse;border:1px solid black"><tr><td>{{#switch:{{{type4}}}|audio|Audio=[[Image:Audio.png|25px]]|video|Video=[[Image:Video.png|25px]]}} '''{{#if:{{{pipe4|}}}|{{{pipe4}}}}}''' - {{{description4}}} <center>[[File:{{{name4}}}.{{#if:{{{caps4|}}}|OGG|ogg}}]]</center>
<td style="text-align:right;width:6%"><small>{{{length3}}}</small><br><small>[[:Image:{{{name3}}}.{{#if:{{{caps3|}}}|OGG|ogg}}|File info]]</small></table>}}{{#if:{{{name4|}}}|<table style="padding:4px;width:100%;border-collapse:collapse;border:1px solid black"><tr><td>{{#switch:{{{type4}}}|audio|Audio=[[Image:Audio.png|25px]]|video|Video=[[Image:Video.png|25px]]}} '''{{#if:{{{pipe4|}}}|{{{pipe4}}}}}''' - {{{description4}}} <center>[[File:{{{name4}}}.{{#if:{{{caps4|}}}|OGG|ogg}}]]</center>
<td style="text-align:right;width:6%"><small>{{{length4}}}</small><br><small>[[:Image:{{{name4}}}.{{#if:{{{caps4|}}}|OGG|ogg}}|File info]]</small></table>}}{{#if:{{{name5|}}}|<table style="padding:4px;width:100%;border-collapse:collapse;border:1px solid black"><tr><td>{{#switch:{{{type5}}}|audio|Audio=[[Image:Audio.png|25px]]|video|Video=[[Image:Video.png|25px]]}} '''{{#if:{{{pipe5|}}}|{{{pipe5}}}}}''' - {{{description5}}} <center>[[File:{{{name5}}}.{{#if:{{{caps5|}}}|OGG|ogg}}]]</center>
<td style="text-align:right;width:6%"><small>{{{length4}}}</small><br><small>[[:Image:{{{name4}}}.{{#if:{{{caps4|}}}|OGG|ogg}}|File info]]</small></table>}}{{#if:{{{name5|}}}|<table style="padding:4px;width:100%;border-collapse:collapse;border:1px solid black"><tr><td>{{#switch:{{{type5}}}|audio|Audio=[[Image:Audio.png|25px]]|video|Video=[[Image:Video.png|25px]]}} '''{{#if:{{{pipe5|}}}|{{{pipe5}}}}}''' - {{{description5}}} <center>[[File:{{{name5}}}.{{#if:{{{caps5|}}}|OGG|ogg}}]]</center>
<td style="text-align:right;width:6%"><small>{{{length5}}}</small><br><small>[[:Image:{{{name5}}}.{{#if:{{{caps5|}}}|OGG|ogg}}|File info]]</small></table>}}{{#if:{{{name6|}}}|<table style="padding:4px;width:100%;border-collapse:collapse;border:1px solid black"><tr><td>{{#switch:{{{type6}}}|audio|Audio=[[Image:Audio.png|25px]]|video|Video=[[Image:Video.png|25px]]}} - {{{description6}}} <center>[[File:{{{name6}}}.{{#if:{{{caps6|}}}|OGG|ogg}}{{#if:{{{pipe6|}}}|{{!}}{{{pipe6}}}}}]]</center>
<td style="text-align:right;width:6%"><small>{{{length5}}}</small><br><small>[[:Image:{{{name5}}}.{{#if:{{{caps5|}}}|OGG|ogg}}|File info]]</small></table>}}{{#if:{{{name6|}}}|<table style="padding:4px;width:100%;border-collapse:collapse;border:1px solid black"><tr><td>{{#switch:{{{type6}}}|audio|Audio=[[Image:Audio.png|25px]]|video|Video=[[Image:Video.png|25px]]}} '''{{#if:{{{pipe6|}}}|{{{pipe6}}}}}''' - {{{description6}}} <center>[[File:{{{name6}}}.{{#if:{{{caps6|}}}|OGG|ogg}}]]</center>
<td style="text-align:right;width:6%"><small>{{{length6}}}</small><br><small>[[:Image:{{{name6}}}.{{#if:{{{caps6|}}}|OGG|ogg}}|File info]]</small></table>}}{{#if:{{{name7|}}}|<table style="padding:4px;width:100%;border-collapse:collapse;border:1px solid black"><tr><td>{{#switch:{{{type7}}}|audio|Audio=[[Image:Audio.png|25px]]|video|Video=[[Image:Video.png|25px]]}} - {{{description7}}} <center>[[File:{{{name7}}}.{{#if:{{{caps7|}}}|OGG|ogg}}{{#if:{{{pipe7|}}}|{{!}}{{{pipe7}}}}}]]</center>
<td style="text-align:right;width:6%"><small>{{{length6}}}</small><br><small>[[:Image:{{{name6}}}.{{#if:{{{caps6|}}}|OGG|ogg}}|File info]]</small></table>}}{{#if:{{{name7|}}}|<table style="padding:4px;width:100%;border-collapse:collapse;border:1px solid black"><tr><td>{{#switch:{{{type7}}}|audio|Audio=[[Image:Audio.png|25px]]|video|Video=[[Image:Video.png|25px]]}} '''{{#if:{{{pipe7|}}}|{{{pipe7}}}}}''' - {{{description7}}} <center>[[File:{{{name7}}}.{{#if:{{{caps7|}}}|OGG|ogg}}]]</center>
<td style="text-align:right;width:6%"><small>{{{length7}}}</small><br><small>[[:Image:{{{name7}}}.{{#if:{{{caps7|}}}|OGG|ogg}}|File info]]</small></table>}}{{#if:{{{name8|}}}|<table style="padding:4px;width:100%;border-collapse:collapse;border:1px solid black"><tr><td>{{#switch:{{{type8}}}|audio|Audio=[[Image:Audio.png|25px]]|video|Video=[[Image:Video.png|25px]]}} - {{{description8}}} <center>[[File:{{{name8}}}.{{#if:{{{caps8|}}}|OGG|ogg}}{{#if:{{{pipe8|}}}|{{!}}{{{pipe8}}}}}]]</center>
<td style="text-align:right;width:6%"><small>{{{length7}}}</small><br><small>[[:Image:{{{name7}}}.{{#if:{{{caps7|}}}|OGG|ogg}}|File info]]</small></table>}}{{#if:{{{name8|}}}|<table style="padding:4px;width:100%;border-collapse:collapse;border:1px solid black"><tr><td>{{#switch:{{{type8}}}|audio|Audio=[[Image:Audio.png|25px]]|video|Video=[[Image:Video.png|25px]]}} '''{{#if:{{{pipe8|}}}|{{{pipe8}}}}}''' - {{{description8}}} <center>[[File:{{{name8}}}.{{#if:{{{caps8|}}}|OGG|ogg}}]]</center>
<td style="text-align:right;width:6%"><small>{{{length8}}}</small><br><small>[[:Image:{{{name8}}}.{{#if:{{{caps8|}}}|OGG|ogg}}|File info]]</small></table>}}{{#if:{{{name9|}}}|<table style="padding:4px;width:100%;border-collapse:collapse;border:1px solid black"><tr><td>{{#switch:{{{type9}}}|audio|Audio=[[Image:Audio.png|25px]]|video|Video=[[Image:Video.png|25px]]}} - {{{description9}}} <center>[[File:{{{name9}}}.{{#if:{{{caps9|}}}|OGG|ogg}}{{#if:{{{pipe9|}}}|{{!}}{{{pipe9}}}}}]]</center>
<td style="text-align:right;width:6%"><small>{{{length8}}}</small><br><small>[[:Image:{{{name8}}}.{{#if:{{{caps8|}}}|OGG|ogg}}|File info]]</small></table>}}{{#if:{{{name9|}}}|<table style="padding:4px;width:100%;border-collapse:collapse;border:1px solid black"><tr><td>{{#switch:{{{type9}}}|audio|Audio=[[Image:Audio.png|25px]]|video|Video=[[Image:Video.png|25px]]}} '''{{#if:{{{pipe9|}}}|{{{pipe9}}}}}''' - {{{description9}}} <center>[[File:{{{name9}}}.{{#if:{{{caps9|}}}|OGG|ogg}}]]</center>
<td style="text-align:right;width:6%"><small>{{{length9}}}</small><br><small>[[:Image:{{{name9}}}.{{#if:{{{caps9|}}}|OGG|ogg}}|File info]]</small></table>}}{{#if:{{{name10|}}}|<table style="padding:4px;width:100%;border-collapse:collapse;border:1px solid black"><tr><td>{{#switch:{{{type10}}}|audio|Audio=[[Image:Audio.png|25px]]|video|Video=[[Image:Video.png|25px]]}} {{{description10}}} <center>[[File:{{{name10}}}.{{#if:{{{caps10|}}}|OGG|ogg}}{{#if:{{{pipe10|}}}|{{!}}{{{pipe10}}}}}]]</center>
<td style="text-align:right;width:6%"><small>{{{length9}}}</small><br><small>[[:Image:{{{name9}}}.{{#if:{{{caps9|}}}|OGG|ogg}}|File info]]</small></table>}}{{#if:{{{name10|}}}|<table style="padding:4px;width:100%;border-collapse:collapse;border:1px solid black"><tr><td>{{#switch:{{{type10}}}|audio|Audio=[[Image:Audio.png|25px]]|video|Video=[[Image:Video.png|25px]]}} '''{{#if:{{{pipe10|}}}|{{{pipe10}}}}}''' - {{{description10}}} <center>[[File:{{{name10}}}.{{#if:{{{caps10|}}}|OGG|ogg}}]]</center>
<td style="text-align:right;width:6%"><small>{{{length10}}}</small><br><small>[[:Image:{{{name10}}}.{{#if:{{{caps10|}}}|OGG|ogg}}|File info]]</small></table>}}{{#if:{{{name11|}}}|<table style="padding:4px;width:100%;border-collapse:collapse;border:1px solid black"><tr><td>{{#switch:{{{type11}}}|audio|Audio=[[Image:Audio.png|25px]]|video|Video=[[Image:Video.png|25px]]}} '''[[File:{{{name11}}}.{{#if:{{{caps11|}}}|OGG|ogg}}{{#if:{{{pipe11|}}}|{{!}}{{{pipe11}}}}}]]''' <span style="font-size:95%"> {{{description11}}} </span>
<td style="text-align:right;width:6%"><small>{{{length10}}}</small><br><small>[[:Image:{{{name10}}}.{{#if:{{{caps10|}}}|OGG|ogg}}|File info]]</small></table>}}{{#if:{{{name11|}}}|<table style="padding:4px;width:100%;border-collapse:collapse;border:1px solid black"><tr><td>{{#switch:{{{type11}}}|audio|Audio=[[Image:Audio.png|25px]]|video|Video=[[Image:Video.png|25px]]}} '''[[File:{{{name11}}}.{{#if:{{{caps11|}}}|OGG|ogg}}{{#if:{{{pipe11|}}}|{{!}}{{{pipe11}}}}}]]''' <span style="font-size:95%"> {{{description11}}} </span>
<td style="text-align:right;width:6%"><small>{{{length11}}}</small><br><small>[[:Image:{{{name11}}}.{{#if:{{{caps11|}}}|OGG|ogg}}|File info]]</small></table>}}{{#if:{{{name12|}}}|<table style="padding:4px;width:100%;border-collapse:collapse;border:1px solid black"><tr><td>{{#switch:{{{type12}}}|audio|Audio=[[Image:Audio.png|25px]]|video|Video=[[Image:Video.png|25px]]}} '''[[File:{{{name12}}}.{{#if:{{{caps12|}}}|OGG|ogg}}{{#if:{{{pipe12|}}}|{{!}}{{{pipe12}}}}}]]''' <span style="font-size:95%"> {{{description12}}} </span>
<td style="text-align:right;width:6%"><small>{{{length11}}}</small><br><small>[[:Image:{{{name11}}}.{{#if:{{{caps11|}}}|OGG|ogg}}|File info]]</small></table>}}{{#if:{{{name12|}}}|<table style="padding:4px;width:100%;border-collapse:collapse;border:1px solid black"><tr><td>{{#switch:{{{type12}}}|audio|Audio=[[Image:Audio.png|25px]]|video|Video=[[Image:Video.png|25px]]}} '''[[File:{{{name12}}}.{{#if:{{{caps12|}}}|OGG|ogg}}{{#if:{{{pipe12|}}}|{{!}}{{{pipe12}}}}}]]''' <span style="font-size:95%"> {{{description12}}} </span>

Revision as of 21:07, February 19, 2011


Having trouble playing?

1-20 files supported now. If you edit this page, be careful, it contains highly esoteric (complex) coding.

Usage

The purpose of this template is to cleanly insert Audio and Video files into pages. The following parameters may be defined when using it.

  • mediafor - Whatever these files pertain to. It defaults to the current article's name when not set.
  • name1 - The name that the file is uploaded under. It should not include the the "Image:" prefix, nor the file extension (.ogg) So for the file at "Image:Example.ogg", this parameter would be defined as "Example".
  • type1 - Should be set to either "audio" or "video". This parameter controls the icon displayed next to the file.
  • caps1 - If the file extension is written in ALL CAPS (.OGG), this should be set to "on". If it is written in lowercase (.ogg), it should be left blank. Note that it may not be set to "off". Note also that a file extension containing a mix of capitals and lowercase is incompatible with this template.
  • pipe1 - This should be the file's name as it will appear on the page. For instance, if a file is uploaded at "Image:Example246.ogg", but it needs to appear on the page as simply "Example", name1 would be defined "Example246", and pipe1 "Example". In cases where name1 and pipe1 would be set to identical values, only name1 needs to be used.
  • description1 - A short description of the file that will appear with it on the page.

Note that for all the values except for mediafor, additional files can be added to the list by incrementing the number in the parameter. Up to sixteen files can be included in one table.