Template:Media table: Difference between revisions
From the Super Mario Wiki, the Mario encyclopedia
Jump to navigationJump to search
No edit summary |
(10) |
||
Line 1: | Line 1: | ||
<!-- BIG MESS AHEAD -- ONLY EDIT IF YOU KNOW THE CODE --> | <!-- BIG MESS AHEAD -- ONLY EDIT IF YOU KNOW THE CODE --> | ||
{{#if:{{{name1|}}}|<table style="padding:4px;width:100%;border-collapse:collapse;border:1px solid black;border-top:2px solid black"><tr><td>{{#switch:{{{type1}}}|audio|Audio=[[Image:Audio.png{{!}}25px]]|video|Video=[[Image:Video.png|25px]]}} {{#if:{{{pipe1|}}}|{{{pipe1}}}}} - {{{description1}}} <center>[[File:{{{name1}}}.{{#if:{{{caps1|}}}|OGG|ogg}}]]</center> | {{#if:{{{name1|}}}|<table style="padding:4px;width:100%;border-collapse:collapse;border:1px solid black;border-top:2px solid black"><tr><td>{{#switch:{{{type1}}}|audio|Audio=[[Image:Audio.png{{!}}25px]]|video|Video=[[Image:Video.png|25px]]}} '''{{#if:{{{pipe1|}}}|{{{pipe1}}}}}''' - {{{description1}}} <center>[[File:{{{name1}}}.{{#if:{{{caps1|}}}|OGG|ogg}}]]</center> | ||
<td style="text-align:right;width:6%"><small>{{{length1}}}</small><br><small>[[:Image:{{{name1}}}.{{#if:{{{caps1|}}}|OGG|ogg}}|File info]]</small></table>}}{{#if:{{{name2|}}}|<table style="padding:4px;width:100%;border-collapse:collapse;border:1px solid black"><tr><td>{{#switch:{{{type2}}}|audio|Audio=[[Image:Audio.png|25px]]|video|Video=[[Image:Video.png|25px]]}} - {{{description2}}} <center>[[File:{{{name2}}}.{{#if:{{{caps2|}}}|OGG|ogg}} | <td style="text-align:right;width:6%"><small>{{{length1}}}</small><br><small>[[:Image:{{{name1}}}.{{#if:{{{caps1|}}}|OGG|ogg}}|File info]]</small></table>}}{{#if:{{{name2|}}}|<table style="padding:4px;width:100%;border-collapse:collapse;border:1px solid black"><tr><td>{{#switch:{{{type2}}}|audio|Audio=[[Image:Audio.png|25px]]|video|Video=[[Image:Video.png|25px]]}} '''{{#if:{{{pipe2|}}}|{{{pipe2}}}}}''' - {{{description2}}} <center>[[File:{{{name2}}}.{{#if:{{{caps2|}}}|OGG|ogg}}]]</center> | ||
<td style="text-align:right;width:6%"><small>{{{length2}}}</small><br><small>[[:Image:{{{name2}}}.{{#if:{{{caps2|}}}|OGG|ogg}}|File info]]</small></table>}}{{#if:{{{name3|}}}|<table style="padding:4px;width:100%;border-collapse:collapse;border:1px solid black"><tr><td>{{#switch:{{{type3}}}|audio|Audio=[[Image:Audio.png|25px]]|video|Video=[[Image:Video.png|25px]]}} | <td style="text-align:right;width:6%"><small>{{{length2}}}</small><br><small>[[:Image:{{{name2}}}.{{#if:{{{caps2|}}}|OGG|ogg}}|File info]]</small></table>}}{{#if:{{{name3|}}}|<table style="padding:4px;width:100%;border-collapse:collapse;border:1px solid black"><tr><td>{{#switch:{{{type3}}}|audio|Audio=[[Image:Audio.png|25px]]|video|Video=[[Image:Video.png|25px]]}} '''{{#if:{{{pipe3|}}}|{{{pipe3}}}}}''' - {{{description3}}} <center>[[File:{{{name3}}}.{{#if:{{{caps3|}}}|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]]}} | <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]]}} | <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]]}} | <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]]}} | <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]]}} | <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]]}} | <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| | <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 19:59, February 19, 2011
{{#if:|
1-20 files supported now. If you edit this page, be careful, it contains highly esoteric (complex) coding. UsageThe purpose of this template is to cleanly insert Audio and Video files into pages. The following parameters may be defined when using it.
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. |