|
|
(124 intermediate revisions by 14 users not shown) |
Line 1: |
Line 1: |
| <br clear="all"> | | <includeonly><div style="display:flow-root;margin-top:1em">{{#forargs:file|key|value|{{media table/row|type={{{type{{#var:key}}|{{#switch:{{lc:{{#sub:{{#var:value}}|-4}}}}|.ogv|.mp4|.mpg|mpeg|webm=video}}}}}|file={{#var:value}}|title={{{title{{#var:key}}|}}}|description={{{description{{#var:key}}|}}}|length={{{length{{#var:key}}|}}}|check={{{check{{#var:key}}|}}}}}}}</div><templatestyles src="Media table/styles.css"/> |
| <table style="padding:4px;width:100%;text-align:center;border-collapse:collapse;border-bottom:2px solid black"><tr><td>The {{SITENAME}} has {{#if:{{{name2|}}}||a}} media file{{#if:{{{name2|}}}|s}} for ''{{PAGENAME}}''.<br>To view the audio or video, click the name of the file. Details for each file succeed the link.</td></tr></table> | | :<small>[[Help:Media]] • [[wikipedia:Help:Media (audio and video)|Having trouble playing?]]</small></includeonly><noinclude> |
| <!-- BIG MESS AHEAD -- ONLY EDIT IF YOU KNOW THE CODE -->
| | {{media table |
| {{#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]]}} '''[[Media:{{{name1}}}.{{#if:{{{caps1}}}|OGG|ogg}}{{!}}{{{pipe1{{!}}{{{name1}}}}}}]]''' <span style="font-size:95%"> {{{description1}}} </span>
| | |file1=Example.ogv |
| <td style="text-align:right;width:6%"><small>{{{length1}}}</small><br><small>[[:Image:{{{name1}}}.{{#if:{{{caps1}}}|OGG|ogg}}|File info]]</small>}}{{#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]]}} '''[[Media:{{{name2}}}.{{#if:{{{caps2}}}|OGG|ogg}}{{!}}{{{pipe2{{!}}{{{name2}}}}}}]]''' <span style="font-size:95%">{{{description2}}} </span>
| | |title1=Example video |
| <td style="text-align:right;width:6%"><small>{{{length2}}}</small><br><small>[[:Image:{{{name2}}}.{{#if:{{{caps2}}}|OGG|ogg}}|File info]]</small>}}{{#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]]}} '''[[Media:{{{name3}}}.{{#if:{{{caps3}}}|OGG|ogg}}{{!}}{{{pipe3{{!}}{{{name3}}}}}}]]''' <span style="font-size:95%"> {{{description3}}} </span>
| | |description1=Showing an example video file. |
| <td style="text-align:right;width:6%"><small>{{{length3}}}</small><br><small>[[:Image:{{{name3}}}.{{#if:{{{caps3}}}|OGG|ogg}}|File info]]</small>}}{{#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]]}} '''[[Media:{{{name4}}}.{{#if:{{{caps4}}}|OGG|ogg}}{{!}}{{{pipe4{{!}}{{{name4}}}}}}]]''' <span style="font-size:95%"> {{{description4}}} </span>
| | |length1=0:12 |
| <td style="text-align:right;width:6%"><small>{{{length4}}}</small><br><small>[[:Image:{{{name4}}}.{{#if:{{{caps4}}}|OGG|ogg}}|File info]]</small>}}{{#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]]}} '''[[Media:{{{name5}}}.{{#if:{{{caps5}}}|OGG|ogg}}{{!}}{{{pipe5{{!}}{{{name5}}}}}}]]''' <span style="font-size:95%"> {{{description5}}} </span>
| | |file2=Example.oga |
| <td style="text-align:right;width:6%"><small>{{{length5}}}</small><br><small>[[:Image:{{{name5}}}.{{#if:{{{caps5}}}|OGG|ogg}}|File info]]</small>}}{{#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]]}} '''[[Media:{{{name6}}}.{{#if:{{{caps6}}}|OGG|ogg}}{{!}}{{{pipe6{{!}}{{{name6}}}}}}]]''' <span style="font-size:95%"> {{{description6}}} </span>
| | |title2=Example audio |
| <td style="text-align:right;width:6%"><small>{{{length6}}}</small><br><small>[[:Image:{{{name6}}}.{{#if:{{{caps6}}}|OGG|ogg}}|File info]]</small>}}{{#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]]}} '''[[Media:{{{name7}}}.{{#if:{{{caps7}}}|OGG|ogg}}{{!}}{{{pipe7{{!}}{{{name7}}}}}}]]''' <span style="font-size:95%"> {{{description7}}} </span> | | |description2=Showing an example audio file. |
| <td style="text-align:right;width:6%"><small>{{{length7}}}</small><br><small>[[:Image:{{{name7}}}.{{#if:{{{caps7}}}|OGG|ogg}}|File info]]</small>}}{{#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]]}} '''[[Media:{{{name8}}}.{{#if:{{{caps8}}}|OGG|ogg}}{{!}}{{{pipe8{{!}}{{{name8}}}}}}]]''' <span style="font-size:95%"> {{{description8}}} </span>
| | |length2=0:03 |
| <td style="text-align:right;width:6%"><small>{{{length8}}}</small><br><small>[[:Image:{{{name8}}}.{{#if:{{{caps8}}}|OGG|ogg}}|File info]]</small>}}{{#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]]}} '''[[Media:{{{name9}}}.{{#if:{{{caps9}}}|OGG|ogg}}{{!}}{{{pipe9{{!}}{{{name9}}}}}}]]''' <span style="font-size:95%"> {{{description9}}} </span>
| | }} |
| <td style="text-align:right;width:6%"><small>{{{length9}}}</small><br><small>[[:Image:{{{name9}}}.{{#if:{{{caps9}}}|OGG|ogg}}|File info]]</small>}}{{#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]]}} '''[[Media:{{{name10}}}.{{#if:{{{caps10}}}|OGG|ogg}}{{!}}{{{pipe10{{!}}{{{name10}}}}}}]]''' <span style="font-size:95%"> {{{description10}}} </span>
| |
| <td style="text-align:right;width:6%"><small>{{{length10}}}</small><br><small>[[:Image:{{{name10}}}.{{#if:{{{caps10}}}|OGG|ogg}}|File info]]</small>}}{{#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]]}} '''[[Media:{{{name11}}}.{{#if:{{{caps11}}}|OGG|ogg}}{{!}}{{{pipe11{{!}}{{{name11}}}}}}]]''' <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>}}{{#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]]}} '''[[Media:{{{name12}}}.{{#if:{{{caps12}}}|OGG|ogg}}{{!}}{{{pipe12{{!}}{{{name12}}}}}}]]''' <span style="font-size:95%"> {{{description12}}} </span>
| |
| <td style="text-align:right;width:6%"><small>{{{length12}}}</small><br><small>[[:Image:{{{name12}}}.{{#if:{{{caps12}}}|OGG|ogg}}|File info]]</small>}}{{#if:{{{name13|}}}|<table style="padding:4px;width:100%;border-collapse:collapse;border:1px solid black"><tr><td>{{#switch:{{{type13}}}|audio|Audio=[[Image:Audio.png|25px]]|video|Video=[[Image:Video.png|25px]]}} '''[[Media:{{{name13}}}.{{#if:{{{caps13}}}|OGG|ogg}}{{!}}{{{pipe13{{!}}{{{name13}}}}}}]]''' <span style="font-size:95%"> {{{description13}}} </span>
| |
| <td style="text-align:right;width:6%"><small>{{{length13}}}</small><br><small>[[:Image:{{{name13}}}.{{#if:{{{caps13}}}|OGG|ogg}}|File info]]</small>}}{{#if:{{{name14|}}}|<table style="padding:4px;width:100%;border-collapse:collapse;border:1px solid black"><tr><td>{{#switch:{{{type14}}}|audio|Audio=[[Image:Audio.png|25px]]|video|Video=[[Image:Video.png|25px]]}} '''[[Media:{{{name14}}}.{{#if:{{{caps14}}}|OGG|ogg}}{{!}}{{{pipe14{{!}}{{{name14}}}}}}]]''' <span style="font-size:95%"> {{{description14}}} </span>
| |
| <td style="text-align:right;width:6%"><small>{{{length13}}}</small><br><small>[[:Image:{{{name14}}}.{{#if:{{{caps14}}}|OGG|ogg}}|File info]]</small>}}{{#if:{{{name15|}}}|<table style="padding:4px;width:100%;border-collapse:collapse;border:1px solid black"><tr><td>{{#switch:{{{type15}}}|audio|Audio=[[Image:Audio.png|25px]]|video|Video=[[Image:Video.png|25px]]}} '''[[Media:{{{name15}}}.{{#if:{{{caps15}}}|OGG|ogg}}{{!}}{{{pipe15{{!}}{{{name15}}}}}}]]''' <span style="font-size:95%"> {{{description15}}} </span>
| |
| <td style="text-align:right;width:6%"><small>{{{length15}}}</small><br><small>[[:Image:{{{name15}}}.{{#if:{{{caps15}}}|OGG|ogg}}|File info]]</small>}}{{#if:{{{name16|}}}|<table style="padding:4px;width:100%;border-collapse:collapse;border:1px solid black"><tr><td>{{#switch:{{{type16}}}|audio|Audio=[[Image:Audio.png|25px]]|video|Video=[[Image:Video.png|25px]]}} '''[[Media:{{{name16}}}.{{#if:{{{caps16}}}|OGG|ogg}}{{!}}{{{pipe16{{!}}{{{name16}}}}}}]]''' <span style="font-size:95%"> {{{description16}}} </span>
| |
| <td style="text-align:right;width:6%"><small>{{{length16}}}</small><br><small>[[:Image:{{{name16}}}.{{#if:{{{caps16}}}|OGG|ogg}}|File info]]</small></td></tr></table>}}
| |
| :<small>[[Wikipedia:Wikipedia:Media help|Having trouble playing?]]</small><noinclude>
| |
|
| |
|
| 1-16 files supported now. If you edit this page, be careful, it contains highly esoteric (complex) coding.
| | == Usage == |
| | This template is used for organizing media files on pages. The table above is produced by the following syntax: |
|
| |
|
| [[Category:Media Templates|{{PAGENAME}}]]</noinclude> | | <pre> |
| | {{media table |
| | |file1=Example.ogv |
| | |title1=Example video |
| | |description1=Showing an example video file. |
| | |length1=0:12 |
| | |file2=Example.oga |
| | |title2=Example audio |
| | |description2=Showing an example audio file. |
| | |length2=0:03 |
| | }} |
| | </pre> |
| | |
| | === Parameters === |
| | The following parameters may be defined when using the template (replace <code>X</code> with a number): |
| | |
| | *<code>fileX</code> - The filename, excluding the "File:" prefix. So for the file at "File:Example.oga", this parameter would be defined as "Example.oga". |
| | *<code>titleX</code> - The title of the file that will be used in the table; automatically appears in bold. |
| | *<code>descriptionX</code> - A short description of the file that will appear after the title. |
| | *<code>lengthX</code> - The file duration, in M:SS format. |
| | *<code>checkX</code> - Set to <tt>no</tt> to disable the 30-second length check ''for [[Help:Media|sound clips]]''. '''Never set this for copyrighted music!''' |
| | |
| | Note that for all the values, additional files can be added to the list by incrementing the parameter number. |
| | |
| | [[Category:Structural templates]]</noinclude> |