Jump to content

Template:Dailymotion/doc

From Wikipedia, the free encyclopedia

Usage

[edit]

Use this to create an external link to Dailymotion in the "External links" section of the article.

How to use

[edit]

Video

[edit]

Usage (single parameter):

  • {{Dailymotion|''VIDEOID''}}
  • {{Dailymotion|id=''VIDEOID''}}

Usage (dual parameter):

  • {{Dailymotion|''VIDEOID''|''TITLE''}}
  • {{Dailymotion|id=''VIDEOID''|title=''TITLE''}}

Parameter descriptions:

  • id (or unnamed parameter 1) is the "Dailymotion video id" which appears as https://www.dailymotion.com/video/=VIDEOID
  • title (or unnamed parameter 2) gives an optional description that will replace the default title (Video)

Examples (single parameter):

  1. {{Dailymotion|x51nn4y}}
    Video on Dailymotion
  2. {{Dailymotion|id=x51nn4y}}
    Video on Dailymotion

Examples (dual parameters):

  1. {{Dailymotion|x51nn4y|"HOW TO MAKE A HONEYCOMB SLICE"}}
    "HOW TO MAKE A HONEYCOMB SLICE" on Dailymotion
  2. {{Dailymotion|id=x51nn4y|title="HOW TO MAKE A HONEYCOMB SLICE"}}
    "HOW TO MAKE A HONEYCOMB SLICE" on Dailymotion

User's channel

[edit]

Usage (single parameter):

  • {{Dailymotion|u=''USERNAME''}}
  • {{Dailymotion|user=''USERNAME''}}

Usage (dual parameter):

  • {{Dailymotion|u=''USERNAME''|''TITLE''}}
  • {{Dailymotion|u=''USERNAME''|title=''TITLE''}}
  • {{Dailymotion|user=''USERNAME''|''TITLE''}}
  • {{Dailymotion|user=''USERNAME''|title=''TITLE''}}

Usage (triple parameter):

  • {{Dailymotion|u=''USERNAME''|''TITLE''|suffix='}}
  • {{Dailymotion|u=''USERNAME''|title=''TITLE''|suffix='}}
  • {{Dailymotion|user=''USERNAME''|''TITLE''|suffix='}}
  • {{Dailymotion|user=''USERNAME''|title=''TITLE''|suffix='}}

Parameter descriptions:

  • u or user is the "Dailymotion user's (channel) name" which appears as https://www.dailymotion.com/user/USERNAME
  • title gives an optional description that will replace the default title (PAGENAME)
  • suffix replaces the default " 's " after the channel name. It is only to be used on the rare occasion that the channel name is a compound noun ending in " s ", and making it possessive does not repeat the " s " sound. Do not use it for a brand name ending in " s ", for example Smosh Games, which is a singular entity. See MOS:POSS for more information.

Examples (single parameter):

  1. {{Dailymotion|u=RedBull}}
    PAGENAME's channel on Dailymotion
  2. {{Dailymotion|user=RedBull}}
    PAGENAME's channel on Dailymotion

Example (dual parameter):

  1. {{Dailymotion|u=RedBull|Red Bull}}
    Red Bull's channel on Dailymotion
  2. {{Dailymotion|user=RedBull|Red Bull}}
    Red Bull's channel on Dailymotion

Channel

[edit]

Usage (single parameter):

  • {{Dailymotion|c=''CHANNELID''}}
  • {{Dailymotion|channel=''CHANNELID''}}

Usage (dual parameter):

  • {{Dailymotion|c=''CHANNELID''|''TITLE''}}
  • {{Dailymotion|c=''CHANNELID''|title=''TITLE''}}

or

  • {{Dailymotion|channel=''CHANNELID''|''TITLE''}}
  • {{Dailymotion|channel=''CHANNELID''|title=''TITLE''}}

Parameter descriptions:

  • c or channel is the "Dailymotion channel id" which appears as https://www.dailymotion.com/CHANNELID
  • title (or unnamed parameter) gives an optional description that will replace the default title (PAGENAME)

Example (single parameter):

  1. {{Dailymotion|c=Mojosupreme}}
    PAGENAME's channel on Dailymotion
  2. {{Dailymotion|channel=Mojosupreme}}
    PAGENAME's channel on Dailymotion

Example (dual parameter)

  1. {{Dailymotion|c=Mojosupreme|Watchmojo}}
    Watchmojo's channel on Dailymotion
  2. {{Dailymotion|channel=Mojosupreme|Watchmojo}}
    Watchmojo's channel on Dailymotion

Playlist

[edit]

Usage (single parameter)

  • {{Dailymotion|p=''PLAYLISTID''}}
  • {{Dailymotion|playlist=''PLAYLISTID''}}

Usage (dual parameter)

  • {{Dailymotion|p=''PLAYLISTID''|''TITLE''}}
  • {{Dailymotion|p=''PLAYLISTID''|title=''TITLE''}}

or

  • {{Dailymotion|playlist=''PLAYLISTID''|''TITLE''}}
  • {{Dailymotion|playlist=''PLAYLISTIS''|title=''TITlE''}}

Parameter descriptions:

  • p or playlist is the "Dailymotion playlist id" which appears as https://http://www.dailymotion.com/playlist/PLAYLISTID
  • title an optional description that will replace the default title (PAGENAME)

Example: Examples (single parameter):

  1. {{Dailymotion|p=x4evu1}}
    PAGENAME playlist on Dailymotion
  2. {{Dailymotion|playlist=x4evu1}}
    PAGENAME playlist on Dailymotion

Example (dual parameter):

  1. {{Dailymotion|p=x4evu1|The Washington Post}}
    The Washington Post playlist on Dailymotion
  2. {{Dailymotion|playlist=x4evu1|The Washington Post}}
    The Washington Post playlist on Dailymotion
[edit]

The link to Dailymotion can be suppressed with the parameter |link=no. Example:

Tracking category

[edit]

TemplateData

[edit]
This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:Dailymotion in articles based on its TemplateData.

TemplateData for Dailymotion

Use this to create an external link to Dailymotion in the External links section.

Template parameters

ParameterDescriptionTypeStatus
Dailymotion video idid 1

The video id which appears after https://www.dailymotion.com/ in the URL

Example
x51nn4y
Stringoptional
Dailymotion user's (channel) nameuser u

The user name which appears after https://www.dailymotion.com/user/ in the URL

Example
RedBull
Stringoptional
Dailymotion channel idchannel c

The channel id which appears after https://www.dailymotion.com/ in the URL

Example
Mojosupreme
Stringoptional
Dailymotion playlist idplaylist p

The playlist id which appears after https://www.dailymtoion.com/playlist/ in the URL

Example
x4evu1
Stringoptional
Titletitle 1 2

The name of the page being linked to

Default
If it is a video use TITLE, otherwise, the use the article's page name unformatted
Example
HOW TO MAKE A HONEYCOMB SLICE
Stringsuggested
Channel title suffixsuffix

Text immediately after the channel title. It is only to be used on the rare occasion that the channel title is a compound noun ending in ' s ', and making it possessive does not repeat the ' s ' sound.

Default
's
Example
'
Stringoptional
Link onlink

Set this parameter to no to suppress the link to the Dailymotion article

Example
no
Stringoptional