Template:audio: Difference between revisions
(Created page with "<span alt="{{{alt|Play audio}}}" title="{{{title|Play audio}}}">[[File:{{{1}}}|40px]]{{#if:{{{title|}}}|<nowiki /> <small>{{{title}}}</small>}}</span>") |
No edit summary |
||
(10 intermediate revisions by the same user not shown) | |||
Line 1:
<span style="font-size:smaller;"><span alt="{{{alt|Play audio}}}" title="{{{title|Play audio}}}" style="border-radius:15px;display:inline-block;height:30px;overflow:hidden;vertical-align:middle;width:{{{width|40px}}};">[[File:{{{1<noinclude>|Example.ogg</noinclude>}}}|{{{width|40px}}}]]</span>{{#if:{{{2|{{{title|}}}}}}|<nowiki />
==Documentation==
===Template data===
<templatedata>
{
"params": {
"1": {
"label": "File name",
"example": "Example.ogg",
"type": "wiki-file-name",
"required": true
},
"2": {
"label": "Inline caption",
"type": "content",
"suggested": true
},
"alt": {
"label": "Alt text",
"description": "HTML alt property",
"type": "string"
},
"title": {
"label": "Title text",
"description": "HTML title property; autofills inline caption",
"type": "string"
},
"width": {
"label": "Width",
"description": "Embed width",
"example": "40px",
"type": "number"
}
},
"description": "Embeds an audio file compactly",
"paramOrder": [
"1",
"2",
"alt",
"title",
"width"
]
}
</templatedata>
</noinclude>
|
Latest revision as of 00:19, 13 May 2024
Documentation Edit
Template data Edit
Embeds an audio file compactly
Parameter | Description | Type | Status | |
---|---|---|---|---|
File name | 1 | no description
| File | required |
Inline caption | 2 | no description | Content | suggested |
Alt text | alt | HTML alt property | String | optional |
Title text | title | HTML title property; autofills inline caption | String | optional |
Width | width | Embed width
| Number | optional |