There are currently 39 stubs. You can help us by expanding these articles!

Difference between revisions of "Template:Media table"

From the Crash Bandicoot Wiki, the Crash Bandicoot encyclopedia
Jump to navigationJump to search
m (noinclude template)
 
(One intermediate revision by the same user not shown)
Line 99: Line 99:
-->{{#if:{{{name99|}}}|{{media table/{{#switch:{{lc:{{{type99}}}}}|video=OGV|audio=OGA|#default=row}}|type={{{type99|}}}|name={{{name99|}}}|pipe={{{pipe99|}}}|description={{{description99|}}}|length={{{length99|}}}|caps={{{caps99|}}}}}|}}<!--
-->{{#if:{{{name99|}}}|{{media table/{{#switch:{{lc:{{{type99}}}}}|video=OGV|audio=OGA|#default=row}}|type={{{type99|}}}|name={{{name99|}}}|pipe={{{pipe99|}}}|description={{{description99|}}}|length={{{length99|}}}|caps={{{caps99|}}}}}|}}<!--
-->{{#if:{{{name100|}}}|{{media table/{{#switch:{{lc:{{{type100}}}}}|video=OGV|audio=OGA|#default=row}}|type={{{type100|}}}|name={{{name100|}}}|pipe={{{pipe100|}}}|description={{{description100|}}}|length={{{length100|}}}|caps={{{caps100|}}}}}|}}
-->{{#if:{{{name100|}}}|{{media table/{{#switch:{{lc:{{{type100}}}}}|video=OGV|audio=OGA|#default=row}}|type={{{type100|}}}|name={{{name100|}}}|pipe={{{pipe100|}}}|description={{{description100|}}}|length={{{length100|}}}|caps={{{caps100|}}}}}|}}
:<small>[[Help:Media]] • [[Wikipedia:Help:Media (audio and video)|Having trouble playing?]]</small></includeonly>
:<small>[[Help:Media]] • [[Wikipedia:Help:Media (audio and video)|Having trouble playing?]]</small></includeonly><noinclude>
 
==Usage==
==Usage==
<pre><nowiki>{{media table
<pre><nowiki>{{media table

Latest revision as of 21:50, July 7, 2020

Usage[edit]

{{media table
|type1=video
|name1=Example
|pipe1=Example Video
|description1=Showing an example.
|length1=0:12
|type2=audio
|name2=Example
|pipe2=Example Audio
|description2=Showing an example.
|length2=0:12
|name3=Example
|pipe3=Example Media
|description3=Showing an example.
|length3=0:12
}}

The purpose of this template is to cleanly insert up to 100 audio and video files into pages. The following parameters may be defined when using it. Replace X with a number between 1-100.

  • typeX - Should be set to either "audio" or "video", but can be ignored.
  • nameX - 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".
  • pipeX - 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", name would be defined "Example246", and pipe "Example". In cases where name and pipe would be set to identical values, only name needs to be used.
  • descriptionX - A short description of the file that will appear with it on the page.
  • lengthX - HH:MM:SS format. Omit zeros please.
  • capsX - If the file extension is written in all caps (.OGG, .OGV, .OGA), this should be set to "on". If it is written in lowercase (.ogg, .ogv, .oga), it should be either left blank or set to "off". Note that a file extension containing a mix of capitals and lowercase is incompatible with this template.

Note that for all the values, additional files can be added to the list by incrementing the number in the parameter. Up to thirty files can be included in one template.

Original template is from Super Mario Wiki