Template:Media table: Difference between revisions

From the Super Mario Wiki, the Mario encyclopedia
Jump to navigationJump to search
No edit summary
(One-upping Porplemontage 'cause versatility matters.)
Line 48: Line 48:
-->{{#if:{{{name48|}}}|{{media table/{{#switch:{{lc:{{{type48}}}}}|video=OGV|audio=OGA|#default=row}}|type={{{type48|}}}|name={{{name48|}}}|pipe={{{pipe48|}}}|description={{{description48|}}}|length={{{length48|}}}|caps={{{caps48|}}}}}|}}<!--
-->{{#if:{{{name48|}}}|{{media table/{{#switch:{{lc:{{{type48}}}}}|video=OGV|audio=OGA|#default=row}}|type={{{type48|}}}|name={{{name48|}}}|pipe={{{pipe48|}}}|description={{{description48|}}}|length={{{length48|}}}|caps={{{caps48|}}}}}|}}<!--
-->{{#if:{{{name49|}}}|{{media table/{{#switch:{{lc:{{{type49}}}}}|video=OGV|audio=OGA|#default=row}}|type={{{type49|}}}|name={{{name49|}}}|pipe={{{pipe49|}}}|description={{{description49|}}}|length={{{length49|}}}|caps={{{caps49|}}}}}|}}<!--
-->{{#if:{{{name49|}}}|{{media table/{{#switch:{{lc:{{{type49}}}}}|video=OGV|audio=OGA|#default=row}}|type={{{type49|}}}|name={{{name49|}}}|pipe={{{pipe49|}}}|description={{{description49|}}}|length={{{length49|}}}|caps={{{caps49|}}}}}|}}<!--
-->{{#if:{{{name50|}}}|{{media table/{{#switch:{{lc:{{{type50}}}}}|video=OGV|audio=OGA|#default=row}}|type={{{type50|}}}|name={{{name50|}}}|pipe={{{pipe50|}}}|description={{{description50|}}}|length={{{length50|}}}|caps={{{caps50|}}}}}|}}
-->{{#if:{{{name50|}}}|{{media table/{{#switch:{{lc:{{{type50}}}}}|video=OGV|audio=OGA|#default=row}}|type={{{type50|}}}|name={{{name50|}}}|pipe={{{pipe50|}}}|description={{{description50|}}}|length={{{length50|}}}|caps={{{caps50|}}}}}|}}<!--
-->{{#if:{{{name51|}}}|{{media table/{{#switch:{{lc:{{{type51}}}}}|video=OGV|audio=OGA|#default=row}}|type={{{type51|}}}|name={{{name51|}}}|pipe={{{pipe51|}}}|description={{{description51|}}}|length={{{length51|}}}|caps={{{caps51|}}}}}|}}<!--
-->{{#if:{{{name52|}}}|{{media table/{{#switch:{{lc:{{{type52}}}}}|video=OGV|audio=OGA|#default=row}}|type={{{type52|}}}|name={{{name52|}}}|pipe={{{pipe52|}}}|description={{{description52|}}}|length={{{length52|}}}|caps={{{caps52|}}}}}|}}<!--
-->{{#if:{{{name53|}}}|{{media table/{{#switch:{{lc:{{{type53}}}}}|video=OGV|audio=OGA|#default=row}}|type={{{type53|}}}|name={{{name53|}}}|pipe={{{pipe53|}}}|description={{{description53|}}}|length={{{length53|}}}|caps={{{caps53|}}}}}|}}<!--
-->{{#if:{{{name54|}}}|{{media table/{{#switch:{{lc:{{{type54}}}}}|video=OGV|audio=OGA|#default=row}}|type={{{type54|}}}|name={{{name54|}}}|pipe={{{pipe54|}}}|description={{{description54|}}}|length={{{length54|}}}|caps={{{caps54|}}}}}|}}<!--
-->{{#if:{{{name55|}}}|{{media table/{{#switch:{{lc:{{{type55}}}}}|video=OGV|audio=OGA|#default=row}}|type={{{type55|}}}|name={{{name55|}}}|pipe={{{pipe55|}}}|description={{{description55|}}}|length={{{length55|}}}|caps={{{caps55|}}}}}|}}<!--
-->{{#if:{{{name56|}}}|{{media table/{{#switch:{{lc:{{{type56}}}}}|video=OGV|audio=OGA|#default=row}}|type={{{type56|}}}|name={{{name56|}}}|pipe={{{pipe56|}}}|description={{{description56|}}}|length={{{length56|}}}|caps={{{caps56|}}}}}|}}<!--
-->{{#if:{{{name57|}}}|{{media table/{{#switch:{{lc:{{{type57}}}}}|video=OGV|audio=OGA|#default=row}}|type={{{type57|}}}|name={{{name57|}}}|pipe={{{pipe57|}}}|description={{{description57|}}}|length={{{length57|}}}|caps={{{caps57|}}}}}|}}<!--
-->{{#if:{{{name58|}}}|{{media table/{{#switch:{{lc:{{{type58}}}}}|video=OGV|audio=OGA|#default=row}}|type={{{type58|}}}|name={{{name58|}}}|pipe={{{pipe58|}}}|description={{{description58|}}}|length={{{length58|}}}|caps={{{caps58|}}}}}|}}<!--
-->{{#if:{{{name59|}}}|{{media table/{{#switch:{{lc:{{{type59}}}}}|video=OGV|audio=OGA|#default=row}}|type={{{type59|}}}|name={{{name59|}}}|pipe={{{pipe59|}}}|description={{{description59|}}}|length={{{length59|}}}|caps={{{caps59|}}}}}|}}<!--
-->{{#if:{{{name60|}}}|{{media table/{{#switch:{{lc:{{{type60}}}}}|video=OGV|audio=OGA|#default=row}}|type={{{type60|}}}|name={{{name60|}}}|pipe={{{pipe60|}}}|description={{{description60|}}}|length={{{length60|}}}|caps={{{caps60|}}}}}|}}<!--
-->{{#if:{{{name61|}}}|{{media table/{{#switch:{{lc:{{{type61}}}}}|video=OGV|audio=OGA|#default=row}}|type={{{type61|}}}|name={{{name61|}}}|pipe={{{pipe61|}}}|description={{{description61|}}}|length={{{length61|}}}|caps={{{caps61|}}}}}|}}<!--
-->{{#if:{{{name62|}}}|{{media table/{{#switch:{{lc:{{{type62}}}}}|video=OGV|audio=OGA|#default=row}}|type={{{type62|}}}|name={{{name62|}}}|pipe={{{pipe62|}}}|description={{{description62|}}}|length={{{length62|}}}|caps={{{caps62|}}}}}|}}<!--
-->{{#if:{{{name63|}}}|{{media table/{{#switch:{{lc:{{{type63}}}}}|video=OGV|audio=OGA|#default=row}}|type={{{type63|}}}|name={{{name63|}}}|pipe={{{pipe63|}}}|description={{{description63|}}}|length={{{length63|}}}|caps={{{caps63|}}}}}|}}<!--
-->{{#if:{{{name64|}}}|{{media table/{{#switch:{{lc:{{{type64}}}}}|video=OGV|audio=OGA|#default=row}}|type={{{type64|}}}|name={{{name64|}}}|pipe={{{pipe64|}}}|description={{{description64|}}}|length={{{length64|}}}|caps={{{caps64|}}}}}|}}<!--
-->{{#if:{{{name65|}}}|{{media table/{{#switch:{{lc:{{{type65}}}}}|video=OGV|audio=OGA|#default=row}}|type={{{type65|}}}|name={{{name65|}}}|pipe={{{pipe65|}}}|description={{{description65|}}}|length={{{length65|}}}|caps={{{caps65|}}}}}|}}<!--
-->{{#if:{{{name66|}}}|{{media table/{{#switch:{{lc:{{{type66}}}}}|video=OGV|audio=OGA|#default=row}}|type={{{type66|}}}|name={{{name66|}}}|pipe={{{pipe66|}}}|description={{{description66|}}}|length={{{length66|}}}|caps={{{caps66|}}}}}|}}<!--
-->{{#if:{{{name67|}}}|{{media table/{{#switch:{{lc:{{{type67}}}}}|video=OGV|audio=OGA|#default=row}}|type={{{type67|}}}|name={{{name67|}}}|pipe={{{pipe67|}}}|description={{{description67|}}}|length={{{length67|}}}|caps={{{caps67|}}}}}|}}<!--
-->{{#if:{{{name68|}}}|{{media table/{{#switch:{{lc:{{{type68}}}}}|video=OGV|audio=OGA|#default=row}}|type={{{type68|}}}|name={{{name68|}}}|pipe={{{pipe68|}}}|description={{{description68|}}}|length={{{length68|}}}|caps={{{caps68|}}}}}|}}<!--
-->{{#if:{{{name69|}}}|{{media table/{{#switch:{{lc:{{{type69}}}}}|video=OGV|audio=OGA|#default=row}}|type={{{type69|}}}|name={{{name69|}}}|pipe={{{pipe69|}}}|description={{{description69|}}}|length={{{length69|}}}|caps={{{caps69|}}}}}|}}<!--
-->{{#if:{{{name70|}}}|{{media table/{{#switch:{{lc:{{{type70}}}}}|video=OGV|audio=OGA|#default=row}}|type={{{type70|}}}|name={{{name70|}}}|pipe={{{pipe70|}}}|description={{{description70|}}}|length={{{length70|}}}|caps={{{caps70|}}}}}|}}<!--
-->{{#if:{{{name71|}}}|{{media table/{{#switch:{{lc:{{{type71}}}}}|video=OGV|audio=OGA|#default=row}}|type={{{type71|}}}|name={{{name71|}}}|pipe={{{pipe71|}}}|description={{{description71|}}}|length={{{length71|}}}|caps={{{caps71|}}}}}|}}<!--
-->{{#if:{{{name72|}}}|{{media table/{{#switch:{{lc:{{{type72}}}}}|video=OGV|audio=OGA|#default=row}}|type={{{type72|}}}|name={{{name72|}}}|pipe={{{pipe72|}}}|description={{{description72|}}}|length={{{length72|}}}|caps={{{caps72|}}}}}|}}<!--
-->{{#if:{{{name73|}}}|{{media table/{{#switch:{{lc:{{{type73}}}}}|video=OGV|audio=OGA|#default=row}}|type={{{type73|}}}|name={{{name73|}}}|pipe={{{pipe73|}}}|description={{{description73|}}}|length={{{length73|}}}|caps={{{caps73|}}}}}|}}<!--
-->{{#if:{{{name74|}}}|{{media table/{{#switch:{{lc:{{{type74}}}}}|video=OGV|audio=OGA|#default=row}}|type={{{type74|}}}|name={{{name74|}}}|pipe={{{pipe74|}}}|description={{{description74|}}}|length={{{length74|}}}|caps={{{caps74|}}}}}|}}<!--
-->{{#if:{{{name75|}}}|{{media table/{{#switch:{{lc:{{{type75}}}}}|video=OGV|audio=OGA|#default=row}}|type={{{type75|}}}|name={{{name75|}}}|pipe={{{pipe75|}}}|description={{{description75|}}}|length={{{length75|}}}|caps={{{caps75|}}}}}|}}<!--
-->{{#if:{{{name76|}}}|{{media table/{{#switch:{{lc:{{{type76}}}}}|video=OGV|audio=OGA|#default=row}}|type={{{type76|}}}|name={{{name76|}}}|pipe={{{pipe76|}}}|description={{{description76|}}}|length={{{length76|}}}|caps={{{caps76|}}}}}|}}<!--
-->{{#if:{{{name77|}}}|{{media table/{{#switch:{{lc:{{{type77}}}}}|video=OGV|audio=OGA|#default=row}}|type={{{type77|}}}|name={{{name77|}}}|pipe={{{pipe77|}}}|description={{{description77|}}}|length={{{length77|}}}|caps={{{caps77|}}}}}|}}<!--
-->{{#if:{{{name78|}}}|{{media table/{{#switch:{{lc:{{{type78}}}}}|video=OGV|audio=OGA|#default=row}}|type={{{type78|}}}|name={{{name78|}}}|pipe={{{pipe78|}}}|description={{{description78|}}}|length={{{length78|}}}|caps={{{caps78|}}}}}|}}<!--
-->{{#if:{{{name79|}}}|{{media table/{{#switch:{{lc:{{{type79}}}}}|video=OGV|audio=OGA|#default=row}}|type={{{type79|}}}|name={{{name79|}}}|pipe={{{pipe79|}}}|description={{{description79|}}}|length={{{length79|}}}|caps={{{caps79|}}}}}|}}<!--
-->{{#if:{{{name80|}}}|{{media table/{{#switch:{{lc:{{{type80}}}}}|video=OGV|audio=OGA|#default=row}}|type={{{type80|}}}|name={{{name80|}}}|pipe={{{pipe80|}}}|description={{{description80|}}}|length={{{length80|}}}|caps={{{caps80|}}}}}|}}<!--
-->{{#if:{{{name81|}}}|{{media table/{{#switch:{{lc:{{{type81}}}}}|video=OGV|audio=OGA|#default=row}}|type={{{type81|}}}|name={{{name81|}}}|pipe={{{pipe81|}}}|description={{{description81|}}}|length={{{length81|}}}|caps={{{caps81|}}}}}|}}<!--
-->{{#if:{{{name82|}}}|{{media table/{{#switch:{{lc:{{{type82}}}}}|video=OGV|audio=OGA|#default=row}}|type={{{type82|}}}|name={{{name82|}}}|pipe={{{pipe82|}}}|description={{{description82|}}}|length={{{length82|}}}|caps={{{caps82|}}}}}|}}<!--
-->{{#if:{{{name83|}}}|{{media table/{{#switch:{{lc:{{{type83}}}}}|video=OGV|audio=OGA|#default=row}}|type={{{type83|}}}|name={{{name83|}}}|pipe={{{pipe83|}}}|description={{{description83|}}}|length={{{length83|}}}|caps={{{caps83|}}}}}|}}<!--
-->{{#if:{{{name84|}}}|{{media table/{{#switch:{{lc:{{{type84}}}}}|video=OGV|audio=OGA|#default=row}}|type={{{type84|}}}|name={{{name84|}}}|pipe={{{pipe84|}}}|description={{{description84|}}}|length={{{length84|}}}|caps={{{caps84|}}}}}|}}<!--
-->{{#if:{{{name85|}}}|{{media table/{{#switch:{{lc:{{{type85}}}}}|video=OGV|audio=OGA|#default=row}}|type={{{type85|}}}|name={{{name85|}}}|pipe={{{pipe85|}}}|description={{{description85|}}}|length={{{length85|}}}|caps={{{caps85|}}}}}|}}<!--
-->{{#if:{{{name86|}}}|{{media table/{{#switch:{{lc:{{{type86}}}}}|video=OGV|audio=OGA|#default=row}}|type={{{type86|}}}|name={{{name86|}}}|pipe={{{pipe86|}}}|description={{{description86|}}}|length={{{length86|}}}|caps={{{caps86|}}}}}|}}<!--
-->{{#if:{{{name87|}}}|{{media table/{{#switch:{{lc:{{{type87}}}}}|video=OGV|audio=OGA|#default=row}}|type={{{type87|}}}|name={{{name87|}}}|pipe={{{pipe87|}}}|description={{{description87|}}}|length={{{length87|}}}|caps={{{caps87|}}}}}|}}<!--
-->{{#if:{{{name88|}}}|{{media table/{{#switch:{{lc:{{{type88}}}}}|video=OGV|audio=OGA|#default=row}}|type={{{type88|}}}|name={{{name88|}}}|pipe={{{pipe88|}}}|description={{{description88|}}}|length={{{length88|}}}|caps={{{caps88|}}}}}|}}<!--
-->{{#if:{{{name89|}}}|{{media table/{{#switch:{{lc:{{{type89}}}}}|video=OGV|audio=OGA|#default=row}}|type={{{type89|}}}|name={{{name89|}}}|pipe={{{pipe89|}}}|description={{{description89|}}}|length={{{length89|}}}|caps={{{caps89|}}}}}|}}<!--
-->{{#if:{{{name90|}}}|{{media table/{{#switch:{{lc:{{{type90}}}}}|video=OGV|audio=OGA|#default=row}}|type={{{type90|}}}|name={{{name90|}}}|pipe={{{pipe90|}}}|description={{{description90|}}}|length={{{length90|}}}|caps={{{caps90|}}}}}|}}<!--
-->{{#if:{{{name91|}}}|{{media table/{{#switch:{{lc:{{{type91}}}}}|video=OGV|audio=OGA|#default=row}}|type={{{type91|}}}|name={{{name91|}}}|pipe={{{pipe91|}}}|description={{{description91|}}}|length={{{length91|}}}|caps={{{caps91|}}}}}|}}<!--
-->{{#if:{{{name92|}}}|{{media table/{{#switch:{{lc:{{{type92}}}}}|video=OGV|audio=OGA|#default=row}}|type={{{type92|}}}|name={{{name92|}}}|pipe={{{pipe92|}}}|description={{{description92|}}}|length={{{length92|}}}|caps={{{caps92|}}}}}|}}<!--
-->{{#if:{{{name93|}}}|{{media table/{{#switch:{{lc:{{{type93}}}}}|video=OGV|audio=OGA|#default=row}}|type={{{type93|}}}|name={{{name93|}}}|pipe={{{pipe93|}}}|description={{{description93|}}}|length={{{length93|}}}|caps={{{caps93|}}}}}|}}<!--
-->{{#if:{{{name94|}}}|{{media table/{{#switch:{{lc:{{{type94}}}}}|video=OGV|audio=OGA|#default=row}}|type={{{type94|}}}|name={{{name94|}}}|pipe={{{pipe94|}}}|description={{{description94|}}}|length={{{length94|}}}|caps={{{caps94|}}}}}|}}<!--
-->{{#if:{{{name95|}}}|{{media table/{{#switch:{{lc:{{{type95}}}}}|video=OGV|audio=OGA|#default=row}}|type={{{type95|}}}|name={{{name95|}}}|pipe={{{pipe95|}}}|description={{{description95|}}}|length={{{length95|}}}|caps={{{caps95|}}}}}|}}<!--
-->{{#if:{{{name96|}}}|{{media table/{{#switch:{{lc:{{{type96}}}}}|video=OGV|audio=OGA|#default=row}}|type={{{type96|}}}|name={{{name96|}}}|pipe={{{pipe96|}}}|description={{{description96|}}}|length={{{length96|}}}|caps={{{caps96|}}}}}|}}<!--
-->{{#if:{{{name97|}}}|{{media table/{{#switch:{{lc:{{{type97}}}}}|video=OGV|audio=OGA|#default=row}}|type={{{type97|}}}|name={{{name97|}}}|pipe={{{pipe97|}}}|description={{{description97|}}}|length={{{length97|}}}|caps={{{caps97|}}}}}|}}<!--
-->{{#if:{{{name98|}}}|{{media table/{{#switch:{{lc:{{{type98}}}}}|video=OGV|audio=OGA|#default=row}}|type={{{type98|}}}|name={{{name98|}}}|pipe={{{pipe98|}}}|description={{{description98|}}}|length={{{length98|}}}|caps={{{caps98|}}}}}|}}<!--
-->{{#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|}}}}}|}}
:<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 85: Line 135:
}}</nowiki></pre>
}}</nowiki></pre>


The purpose of this template is to cleanly insert up to 50 audio and video files into pages. The following parameters may be defined when using it. Replace <code>X</code> with a number between 1-50.
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 <code>X</code> with a number between 1-100.


*<code>typeX</code> - Should be set to either "audio" or "video", but can be ignored. However, it shouldn't because of [[MarioWiki:Proposals/Archive 47#Discourage OGG Extension (Not Format)|a proposal]]. See [[Help:Media]]. This parameter controls the icon displayed next to the file and how to handle the linked media.
*<code>typeX</code> - Should be set to either "audio" or "video", but can be ignored. However, it shouldn't because of [[MarioWiki:Proposals/Archive 47#Discourage OGG Extension (Not Format)|a proposal]]. See [[Help:Media]]. This parameter controls the icon displayed next to the file and how to handle the linked media.

Revision as of 14:16, April 19, 2019

Template:Media table/OGVTemplate:Media table/OGA

Audio.svg {{{file}} - Showing an example.
[[File:{{{file}}}|300px]]
[[Media:{{{file}}}|File info]]
0:12
Help:MediaHaving trouble playing?

Usage

The code below produces the table above.

{{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. However, it shouldn't because of a proposal. See Help:Media. This parameter controls the icon displayed next to the file and how to handle the linked media.
  • 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.

Code documentation

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