Welcome to Mariopedia! If you want to request an account, please do so at Mario Wiki or Fanonpedia.

Template:Media table: Difference between revisions

From Mariopedia, a wiki on Mario, Yoshi, Wario, Donkey Kong, Super Smash Bros., and more!
Jump to navigationJump to search
more consistent with MarioWiki modern version
(→‎Code documentation: fix interwiki)
(more consistent with MarioWiki modern version)
Line 1: Line 1:
<includeonly>{{#if:{{{name1|}}}|{{media table/{{#switch:{{lc:{{{type1}}}}}|video=OGV|audio=OGA|#default=row}}|type={{{type1|}}}|name={{{name1|}}}|pipe={{{pipe1|}}}|description={{{description1|}}}|
<includeonly>{{#if:{{{file1|}}}|{{media table/{{#switch:{{lc:{{{type1}}}}}|video=OGV|audio=OGA|#default=row}}|type={{{type1|}}}|file={{{file1|}}}|title={{{title1|}}}|description={{{description1|}}}|
:<small>[[Help:Media]] • [[Wikipedia:Help:Media (audio and video)|Having trouble playing?]]</small></includeonly><noinclude>{{{{PAGENAME}}
:<small>[[Help:Media]] • [[Wikipedia:Help:Media (audio and video)|Having trouble playing?]]</small></includeonly><noinclude>{{{{PAGENAME}}
|type1=video
|type1=video
|name1=Example
|file1=Example
|pipe1=Example Video
|title1=Example Video
|description1=Showing an example.
|description1=Showing an example.
|length1=0:12
|length1=0:12
|type2=audio
|type2=audio
|name2=Example
|file2=Example
|pipe2=Example Audio
|title2=Example Audio
|description2=Showing an example.
|description2=Showing an example.
|length2=0:12
|length2=0:12
|name3=Example
|file3=Example
|pipe3=Example Media
|title3=Example Media
|description3=Showing an example.
|description3=Showing an example.
|length3=0:12
|length3=0:12
Line 120: Line 120:
<pre><nowiki>{{media table
<pre><nowiki>{{media table
|type1=video
|type1=video
|name1=Example
|file1=Example
|pipe1=Example Video
|title1=Example Video
|description1=Showing an example.
|description1=Showing an example.
|length1=0:12
|length1=0:12
|type2=audio
|type2=audio
|name2=Example
|file2=Example
|pipe2=Example Audio
|title2=Example Audio
|description2=Showing an example.
|description2=Showing an example.
|length2=0:12
|length2=0:12
|name3=Example
|file3=Example
|pipe3=Example Media
|title3=Example Media
|description3=Showing an example.
|description3=Showing an example.
|length3=0:12
|length3=0:12
Line 138: Line 138:


*<code>typeX</code> - Should be set to either "audio" or "video", but can be ignored. This parameter controls the icon displayed next to the file and how to handle the linked media. See [[Help:Media]] for information.
*<code>typeX</code> - Should be set to either "audio" or "video", but can be ignored. This parameter controls the icon displayed next to the file and how to handle the linked media. See [[Help:Media]] for information.
*<code>nameX</code> - The name that the file is uploaded under. It should omit the "File:" prefix and file extension (.ogg, .ogv, .oga). So for the file at "File:Example.ogv", this parameter would be defined as "Example".
*<code>fileX</code> - The name that the file is uploaded under. It should omit the "File:" prefix and file extension (.ogg, .ogv, .oga). So for the file at "File:Example.ogv", this parameter would be defined as "Example".
*<code>pipeX</code> - This should be the file's name as it will appear on the page. For instance, if a file is uploaded at "File:Example246.ogv", but it needs to appear on the page as simply "Example", <code>name</code> would be defined "Example246", and <code>pipe</code> "Example". In cases where <code>name</code> and <code>pipe</code> would be set to identical values, only <code>name</code> needs to be used.
*<code>titleX</code> - This should be the file's name as it will appear on the page. For instance, if a file is uploaded at "File:Example246.ogv", but it needs to appear on the page as simply "Example", <code>title</code> would be defined "Example246", and <code>title</code> "Example". In cases where <code>title</code> and <code>title</code> would be set to identical values, only <code>title</code> needs to be used.
*<code>descriptionX</code> - A short description of the file that will appear with it on the page.
*<code>descriptionX</code> - A short description of the file that will appear with it on the page.
*<code>lengthX</code> - HH:MM:SS format. Omit zeros please.
*<code>lengthX</code> - HH:MM:SS format. Omit zeros please.

Navigation menu