Template:Media table: Difference between revisions
From the Super Mario Wiki, the Mario encyclopedia
Jump to navigationJump to search
mNo edit summary |
mNo edit summary |
||
Line 3: | Line 3: | ||
{{media table | {{media table | ||
|file1=Example.ogv | |file1=Example.ogv | ||
|title1=Example | |title1=Example video | ||
|description1=Showing an example video file. | |description1=Showing an example video file. | ||
|length1=0:12 | |length1=0:12 | ||
|file2=Example.oga | |file2=Example.oga | ||
|title2=Example | |title2=Example audio | ||
|description2=Showing an example audio file. | |description2=Showing an example audio file. | ||
|length2=0:03 | |length2=0:03 | ||
Line 17: | Line 17: | ||
<pre>{{media table | <pre>{{media table | ||
|file1=Example.ogv | |file1=Example.ogv | ||
|title1=Example | |title1=Example video | ||
|description1=Showing an example video file. | |description1=Showing an example video file. | ||
|length1=0:12 | |length1=0:12 | ||
|file2=Example.oga | |file2=Example.oga | ||
|title2=Example | |title2=Example audio | ||
|description2=Showing an example audio file. | |description2=Showing an example audio file. | ||
|length2=0:03 | |length2=0:03 |
Revision as of 21:07, January 11, 2024
Example video - Showing an example video file. | File info 0:12 |
Example audio - Showing an example audio file. | File info 0:03 |
Usage
This template is used for organizing media files on pages. The table above is produced by the following syntax:
{{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 }}
Parameters
The following parameters may be defined when using the template (replace X
with a number):
fileX
- The filename, excluding the "File:" prefix. So for the file at "File:Example.oga", this parameter would be defined as "Example.oga".titleX
- The title of the file that will be used in the table; automatically appears in bold.descriptionX
- A short description of the file that will appear after the title.lengthX
- The file duration, in M:SS format.
Note that for all the values, additional files can be added to the list by incrementing the parameter number.