Template:Media table/row: Difference between revisions

From the Super Mario Wiki, the Mario encyclopedia
Jump to navigationJump to search
mNo edit summary
mNo edit summary
Line 5: Line 5:
The purpose of this template is to cleanly insert Audio/Video files into pages. The following parameters may be defined when using it.
The purpose of this template is to cleanly insert Audio/Video files into pages. The following parameters may be defined when using it.


*<code>type</code> - Should be set to either "audio" or "video".
*<code>name</code> - The name that the file is uploaded under. It should not include the the "File:" prefix, nor the file extension (.ogg) So for the file at "File:Example.ogg", this parameter would be defined as "Example".
*<code>name</code> - The name that the file is uploaded under. It should not include the the "File:" prefix, nor the file extension (.ogg) So for the file at "File:Example.ogg", this parameter would be defined as "Example".
*<code>type</code> - Should be set to either "audio" or "video".
*<code>pipe</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.ogg", 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>description</code> - A short description of the file that will appear with it on the page.
*<code>length</code> - HH:MM:SS format. Omit zeros please.
*<code>length</code> - HH:MM:SS format. Omit zeros please.
*<code>caps</code> - If the file extension is written in all caps (.OGG), this should be set to "on". If it is written in lowercase (.ogg), 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.
*<code>caps</code> - If the file extension is written in all caps (.OGG), this should be set to "on". If it is written in lowercase (.ogg), 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.
*<code>pipe</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.ogg", 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>description</code> - A short description of the file that will appear with it on the page.


At current, it supports only one file per template. It is recommended to not use this template directly. Use {{tem|media}} instead because it will call this template.
At current, it supports only one file per template. It is recommended to not use this template directly. Use {{tem|media}} instead because it will call this template.


For OGG files. To use for OGA or OGV, see {{tem|media/OGA}} and {{tem|media/OGV}}.[[Category:Media templates]]</noinclude>
For OGG files. To use for OGA or OGV, see {{tem|media/OGA}} and {{tem|media/OGV}}.[[Category:Media templates]]</noinclude>

Revision as of 23:45, May 4, 2017

File:Media.svg {{{name}}}.ogg
[[File:{{{name}}}.ogg]]
{{{length}}}
Template:MediaLink

A Media template for .OGG files which are video and audio files. Please, edit only if you know the code.

Usage

The purpose of this template is to cleanly insert Audio/Video files into pages. The following parameters may be defined when using it.

  • type - Should be set to either "audio" or "video".
  • name - The name that the file is uploaded under. It should not include the the "File:" prefix, nor the file extension (.ogg) So for the file at "File:Example.ogg", this parameter would be defined as "Example".
  • pipe - This should be the file's name as it will appear on the page. For instance, if a file is uploaded at "File:Example246.ogg", 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.
  • description - A short description of the file that will appear with it on the page.
  • length - HH:MM:SS format. Omit zeros please.
  • caps - If the file extension is written in all caps (.OGG), this should be set to "on". If it is written in lowercase (.ogg), 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.

At current, it supports only one file per template. It is recommended to not use this template directly. Use {{media}} instead because it will call this template.

For OGG files. To use for OGA or OGV, see {{media/OGA}} and {{media/OGV}}.