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
Content added Content deleted
(Fixes)
m (Text replacement - "\[\[Category:([^|]+)\|{{PAGENAME}}\]\]" to "Category:$1")
Line 149: Line 149:
Calls {{tem|media table/row}}, {{tem|media table/OGV}}, and {{tem|media table/OGA}} with a [[mw:Help:Extension:ParserFunctions##switch|switch]].
Calls {{tem|media table/row}}, {{tem|media table/OGV}}, and {{tem|media table/OGA}} with a [[mw:Help:Extension:ParserFunctions##switch|switch]].


[[Category:Media templates|{{PAGENAME}}]]</noinclude>
[[Category:Media templates]]</noinclude>

Revision as of 16:28, July 15, 2022

Template:Media table/OGVTemplate:Media table/OGA

Example media - Showing an example.
File:Example
File info
0:12
Help:MediaHaving trouble playing?

Usage

The code below produces the table above.

{{media table
|type1=video
|file1=Example
|title1=Example video
|description1=Showing an example.
|length1=0:12
|type2=audio
|file2=Example
|title2=Example audio
|description2=Showing an example.
|length2=0:12
|file3=Example
|title3=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. This parameter controls the icon displayed next to the file and how to handle the linked media. See Help:Media for information.
  • fileX - 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".
  • titleX - 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", title would be defined "Example246", and title "Example". In cases where title and title would be set to identical values, only title 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.

Code documentation

Calls {{media table/row}}, {{media table/OGV}}, and {{media table/OGA}} with a switch.