Template:Cite youtube: Difference between revisions

From Pikipedia, the Pikmin wiki
Jump to navigation Jump to search
m (Another temporary.)
(Added "published" and "retrieved" fields.)
 
(15 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly><ref>[https://www.youtube.com/watch?v={{urlencode:{{{1}}}}}</ref></includeonly><noinclude>
<includeonly>{{#if:{{{rname|}}}|{{#if:{{{1|}}}|{{#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}}})}}{{#if:{{{published|}}}|, published on {{{published}}}}}{{#if:{{{retrieved|}}}|, retrieved on {{{retrieved}}}}}|name={{{rname}}}}}|{{#tag:ref||name={{{rname}}}}}}}|{{#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}}})}}{{#if:{{{published|}}}|, published on {{{published}}}}}{{#if:{{{retrieved|}}}|, retrieved on {{{retrieved}}}}}}}}}</includeonly><noinclude>


==Info==
==Info==
Line 12: Line 12:
|-
|-
! 2
! 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".
| '''Yes''' ||  || Purpose || What the video is doing that justifies the information on the article. For instance: "demonstrating the petrification glitch", or "showing the maximum number of carriers".
|-
|-
! h
! h
Line 18: Line 18:
|-
|-
! m
! m
| No || 0 || Minutes || At what minute in the video the key moment happens.
| 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
! s
| No ||  || Seconds || At what second in the video the key moment happens.
| 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.
|-
! published
| No ||  || Publication date || Date of publication of the page or post in question. Use {{tem|date}}.
|-
! retrieved
| No ||  || Retrieval date || Date in which this source was obtained. Use {{tem|date}}.
|-
! rname
| No ||  || Ref name || Name attribute on the &lt;ref&gt; tag. You can use only this parameter, if there is already another reference with the same name previously in the article.
|}
|}


==Skeleton==
==Skeleton==
<pre>{{cite youtube|&lt;video id&gt;|&lt;purpose&gt;|h=&lt;hours&gt;|m=&lt;minutes&gt;|s=&lt;seconds&gt;}}</pre>
<pre>{{cite youtube|&lt;video id&gt;|&lt;purpose&gt;|h=&lt;hours?&gt;|m=&lt;minutes?&gt;|s=&lt;seconds?&gt;|rname=&lt;ref name?&gt;}}</pre>


[[Category:Citation templates]]
[[Category:Citation templates]]</noinclude>
</noinclude>

Latest revision as of 16:42, August 18, 2020


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 is doing 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.
published No Publication date Date of publication of the page or post in question. Use {{date}}.
retrieved No Retrieval date Date in which this source was obtained. Use {{date}}.
rname No Ref name Name attribute on the <ref> tag. You can use only this parameter, if there is already another reference with the same name previously in the article.

Skeleton

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