Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:MC/Daily Motion/doc

Template page
Revision as of 21:27, 14 March 2026 by imported>Realshow19 (Created page with "{{documentation header}} <!-- Documentation here --> {{lua|Video}} {{shortcut|daily|daily}} This template should be used to embed Daily Motion videos. == Usage == <pre style="display: table;">{{Daily Motion | 1 = Video ID | 2 = Width (defaults to 425) | 3 = Height (defaults to width ÷ (16÷9) rounded to the nearest integer) | align = Alignment | caption = Caption | nocat = Prevents category to be added }}</pre> * Using this template on a page categorizes the page into...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Template:Documentation header Template:Lua Template:Shortcut

This template should be used to embed Daily Motion videos.

Usage

{{Daily Motion
| 1 = Video ID
| 2 = Width (defaults to 425)
| 3 = Height (defaults to width ÷ (16÷9) rounded to the nearest integer)
| align = Alignment
| caption = Caption
| nocat = Prevents category to be added
}}

Parameters

<templatedata> { "params": { "1": { "label": "Video ID", "description": "The video ID that must be added.", "type": "string",

           "suggested": true

}, "2": { "label": "Video width", "description": "Changes the width of the video. Defaults to 425", "type": "string" }, "3": { "label": "Video height", "description": "Changes the height of the video. Defaults to width ÷ (16÷9) rounded to the nearest integer", "type": "string" }, "align": { "label": "Video alignment", "description": "Changes the alignment of the video.", "type": "string" }, "caption": { "label": "Video caption", "description": "Adds an optional caption for the video.", "type": "string" }, "nocat": { "label": "Category supressor", "description": "Prevents Category:Pages with Daily Motion videos to be added to a page using this template.", "type": "string" } }, "description": "This template adds a video that can be embedded on a page directly instead on needing to upload it directly to the wiki.", "format": "inline" } </templatedata>

Examples

Default usage
{{daily|}}

Template:Daily

Custom width
{{daily||720}}

Template:Daily

Custom width and height
{{daily||560|280}}

Template:Daily

Inline alignment
{{daily||align=inline}}
{{daily||align=inline}}

Template:Daily Template:Daily

Custom caption
{{daily||caption=''Minecraft'' official trailer.}}

Template:Daily

With an image frame

Sometimes it makes sense to put the video in an image frame so that it formats like an image:

{{FakeImage|{{daily|}}|Minecraft Trailer from 2011|align=right}}

This can unclutter the pages a lot. You also get to add a caption. Template:FakeImage

See also

  • {{YouTube Link}} – to link to a video, rather than embed it
  • {{YouTube playlist}} – to embed a playlist
  • {{CollapsedVideo}} – to put an embedded video in a collapsed table that links to YouTube
  • {{Vimeo}} – to post a video from Vimeo