Template:Cite youtube: Difference between revisions

From Pikipedia, the Pikmin wiki
Jump to navigation Jump to search
(Added leading zeros.)
mNo edit summary
Line 1: Line 1:
<includeonly>{{#tag:ref|[https://www.youtube.com/watch?v={{{1}}}{{#if:{{{s|}}}|&t={{#if:{{{h|}}}|{{{h}}}h}}{{#if:{{{m|}}}|{{{m}}}m}}{{{s}}}s}} YouTube video] {{{2}}}{{#if:{{{s|}}}|&nbsp;(at {{#if:{{{h|}}}|{{{h}}}:}}{{#if:{{{m}}}|{{#ifexpr:{{{m}}} < 10|0}}{{{m}}}|0}}:{{#ifexpr:{{{s}}} < 10|0}}{{{s}}})}}}}</includeonly><noinclude>
<includeonly>{{#tag:ref|[https://www.youtube.com/watch?v={{{1}}}{{#if:{{{s|}}}|&t={{#if:{{{h|}}}|{{{h}}}h}}{{#if:{{{m|}}}|{{{m}}}m}}{{{s}}}s}} YouTube video] {{{2}}}{{#if:{{{s|}}}|&nbsp;(at {{#if:{{{h|}}}|{{{h}}}:}}{{#if:{{{m}}}|{{#ifexpr:{{{m|0}}} < 10|0}}{{{m}}}|0}}:{{#ifexpr:{{{s}}} < 10|0}}{{{s}}})}}}}</includeonly><noinclude>


==Info==
==Info==

Revision as of 10:14, November 12, 2015


Info

Use this template to use a YouTube video as a source of information.

Parameters

Parameter Mandatory Default Purpose Detailed description
1 Yes Video ID ID of the YouTube video. This is the ID code in front of the "v=" on a YouTube video's URL.
2 Yes Purpose What the video does that justifies the information on the article. For instance: "demonstrating the petrification glitch", or "showing the maximum number of carriers".
h No Hours At what hour in the video the key moment happens.
m No 0 Minutes At what minute in the video the key moment happens. Don't add the leading zero when this is between 0 and 9.
s No Seconds At what second in the video the key moment happens. Don't add the leading zero when this is between 0 and 9.

Skeleton

{{cite youtube|<video id>|<purpose>|h=<hours>|m=<minutes>|s=<seconds>}}