41,956
edits
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
<includeonly>{{#forargs:name|key|value|{{media table/{{#switch:{{lc:{{{type{{#var:key}}}}}}}|video=OGV|#default=OGA}}|type={{{type{{#var:key}}|}}}|format={{{format{{#var:key}}|} | <includeonly>{{#forargs:name|key|value|{{media table/{{#switch:{{lc:{{{type{{#var:key}}}}}}}|video=OGV|#default=OGA}}|type={{{type{{#var:key}}|}}}|name={{#var:value}}|format={{{format{{#var:key}}|}}}|pipe={{{pipe{{#var:key}}|}}}|description={{{description{{#var:key}}|}}}|length={{{length{{#var:key}}|}}}|caps={{{caps{{#var:key}}|}}}}}}} | ||
:<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 | ||
Line 31: | Line 31: | ||
*<code>typeX</code> - Can be set to either "audio" or "video". This parameter controls the icon displayed next to the file and how to handle the linked media. | *<code>typeX</code> - Can be set to either "audio" or "video". This parameter controls the icon displayed next to the file and how to handle the linked media. | ||
*<code>nameX</code> - The name that the file is uploaded under. It should omit the "File:" prefix and file extension. So for the file at "File:Example.ogv", this parameter would be defined as "Example". | |||
*<code>formatX</code> - File extension for the given file, with the default being "oga" for <code>type=audio</code> and "ogv" for <code>type=video</code> if none is provided. | *<code>formatX</code> - File extension for the given file, with the default being "oga" for <code>type=audio</code> and "ogv" for <code>type=video</code> if none is provided. | ||
*<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>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>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. |