Home
Random
Recent changes
Special pages
Community portal
Settings
About Irony Wiki
Disclaimers
Irony Wiki
Search
User menu
Talk
Contributions
Create account
Log in
Editing
Template:YouTube video/doc
⚠️
Warning:
You are not logged in.
Your IP address will be publicly visible
if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username instead of your IP, along with other benefits.
Anti-spam check. Do
not
fill this in!
Embeds a YouTube video. == Usage == '''Basic usage:''' <code>{{YouTube video|''Video ID''}}</code> '''All parameters:''' <code>{{YouTube video|''Video ID''|''dimensions''|''alignment''}}</code> '''Parameter details:''' * <code>''Video ID''</code> - The ID of the YouTube video, which is the part that comes after "watch?v=" in the URL. Can also be the full URL. Example: <code>dQw4w9WgXcQ</code> * <code>''dimensions''</code> - The width and/or height in pixels of the video embed. Width can just be a number, height must have an "x" before the number. Examples: <code>480</code> to specify a width of 480. <code>x320</code> to specify a height of 320. <code>480x320</code> to specify both a width of 480 and a height of 320. * <code>''alignment''</code> - Whether to align the video on the ''left'', ''right'', or ''center'' of the page. == Example == <code><nowiki>{{YouTube video|dQw4w9WgXcQ|420}}</nowiki></code> outputs: {{YouTube video|dQw4w9WgXcQ|420}} == Template data == <templatedata> { "params": { "1": { "label": "Video ID", "description": "The ID of the YouTube video, which is the part that comes after \"watch?v=\" in the URL. Can also be the full URL.", "example": "dQw4w9WgXcQ", "type": "string", "required": true }, "2": { "label": "Dimensions", "description": "What dimensions in pixels to make the embedded video. To specify only the width, just type the number. To specify the height, add an x before the number.", "example": "480x320", "default": "480", "suggested": true, "type": "string" }, "3": { "label": "Alignment", "description": "Whether to align the video in the left, right, or center of the page.", "type": "string", "default": "left", "suggested": true } }, "description": "Embeds a YouTube video.", "format": "inline" } </templatedata>
Summary:
Please note that all contributions to Irony Wiki are considered to be released under the Creative Commons Attribution-ShareAlike (see
Irony Wiki:Copyrights
for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource.
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Template used on this page:
Template:YouTube video
(
edit
)