Template:Dailymotion/doc
This is a documentation subpage for Template:Dailymotion. It may contain usage information, categories and other content that is not part of the original template page. |
Do not use this template to link to material that violates copyright law. Links to such material must either be replaced with a non-copyvio link or removed immediately. |
This template uses Lua: |
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):
{{Dailymotion|x51nn4y}}
- Video on Dailymotion
{{Dailymotion|id=x51nn4y}}
- Video on Dailymotion
Examples (dual parameters):
{{Dailymotion|x51nn4y|"HOW TO MAKE A HONEYCOMB SLICE"}}
{{Dailymotion|id=x51nn4y|title="HOW TO MAKE A HONEYCOMB SLICE"}}
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):
{{Dailymotion|u=RedBull}}
{{Dailymotion|user=RedBull}}
Example (dual parameter):
{{Dailymotion|u=RedBull|Red Bull}}
{{Dailymotion|user=RedBull|Red Bull}}
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):
{{Dailymotion|c=Mojosupreme}}
{{Dailymotion|channel=Mojosupreme}}
Example (dual parameter)
{{Dailymotion|c=Mojosupreme|Watchmojo}}
{{Dailymotion|channel=Mojosupreme|Watchmojo}}
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):
{{Dailymotion|p=x4evu1}}
- PAGENAME playlist on Dailymotion
{{Dailymotion|playlist=x4evu1}}
- PAGENAME playlist on Dailymotion
Example (dual parameter):
{{Dailymotion|p=x4evu1|The Washington Post}}
- The Washington Post playlist on Dailymotion
{{Dailymotion|playlist=x4evu1|The Washington Post}}
- The Washington Post playlist on Dailymotion
Suppress wikilink
[edit]The link to Dailymotion can be suppressed with the parameter |link=no
. Example:
{{Dailymotion|x51nn4y|HOW TO MAKE A HONEYCOMB SLICE|link=no}}
- HOW TO MAKE A HONEYCOMB SLICE on Dailymotion
Tracking category
[edit]TemplateData
[edit]TemplateData for Dailymotion
Use this to create an external link to Dailymotion in the External links section.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Dailymotion video id | id 1 | The video id which appears after https://www.dailymotion.com/ in the URL
| String | optional |
Dailymotion user's (channel) name | user u | The user name which appears after https://www.dailymotion.com/user/ in the URL
| String | optional |
Dailymotion channel id | channel c | The channel id which appears after https://www.dailymotion.com/ in the URL
| String | optional |
Dailymotion playlist id | playlist p | The playlist id which appears after https://www.dailymtoion.com/playlist/ in the URL
| String | optional |
Title | title 1 2 | The name of the page being linked to
| String | suggested |
Channel title suffix | suffix | 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.
| String | optional |
Link on | link | Set this parameter to no to suppress the link to the Dailymotion article
| String | optional |