Jump to content

Template:YTCite: Difference between revisions

From Joepedia
No edit summary
No edit summary
 
(18 intermediate revisions by 5 users not shown)
Line 1: Line 1:
<span style="line-height: 20px">
<span style="line-height: 25px">
<!---->[[File:YouTube.svg|20px|alt=YouTube Channel]] {{{channel}}} video: [https://www.youtube.com/watch?v={{{1}}}&t={{{time}}}s “{{{title}}}”{{#if:{{{time|}}}|&nbsp;at {{#time: H:i:s | @{{{time}}} }}}}].
<!---->[[File:YouTube.svg|25px|alt=YouTube Channel|link=]] {{#if:{{{channel_icon|}}}|<span class="inline-img circular">[[File:{{{channel_icon|}}}|25px|link=]]</span>}} “{{{channel}}}video: [https://www.youtube.com/watch?v={{{1}}}{{#if:{{{time|}}}|&t={{{time}}}s}} “{{{title}}}”{{#if:{{{time|}}}|&nbsp;at {{#time: H:i:s | @{{{time}}} }}}}].
</span>
</span>
<noinclude>
<noinclude>
== Example ==
E.g:
  <nowiki>{{YTCite|w8QqBQZEZdM|channel=Falco|channel_icon=Falco.jpg|title=Joseph Anderson Marble Races stream 1 with chat <nowiki>[02/14/2021]&lt;/nowiki>}}</nowiki>
{{YTCite|w8QqBQZEZdM|channel=Falco|channel_icon=Falco.jpg|title=Joseph Anderson Marble Races stream 1 with chat <nowiki>[02/14/2021]</nowiki>}}
  <nowiki>{{YTCite|g2A1GkiMYW4|channel=avarisi|title=Not that fragile.}}</nowiki>
{{YTCite|g2A1GkiMYW4|channel=avarisi|title=Not that fragile.}}
== Template Data ==
<templatedata>
<templatedata>
{
{
"params": {
"params": {
"1": {
"1": {
"aliases": [
"video"
],
"label": "Video Code",
"label": "Video Code",
"description": "The YouTube video code for the video being cited.",
"description": "The YouTube video code for the video being cited.",
Line 31: Line 37:
"description": "The name of the channel being cited.",
"description": "The name of the channel being cited.",
"type": "string",
"type": "string",
"required": true
"required": true,
"suggestedvalues": [
"Falco",
"Mike322",
"Cat Catasmic",
"Retinas",
"Bike Chan",
"Man Of Answers",
"Weed Lol"
]
},
"channel_icon": {
"label": "Channel Icon",
"description": "The icon for the channel, give as the name of the file but don't use the `File:` prefix.",
"suggestedvalues": [
"Falco.jpg",
"Mike322.jpg",
"Channel-retinasjpg.jpg",
"Channel-Bike-chanjpg.jpg",
"manofanswersicon.jpg",
"kusoroicon.jpg",
"Cat-Catasmic.jpg",
"Weedlolicon.jpg"
],
"type": "string",
"suggested": true
}
}
},
},
Line 40: Line 71:
"channel",
"channel",
"title",
"title",
"time"
"time",
"channel_icon"
]
]
}
}
</templatedata>
</templatedata>
</noinclude>
</noinclude>

Latest revision as of 02:25, 24 January 2025

YouTube Channel “{{{channel}}}” video: “{{{title}}}”.

Example

E.g:

 {{YTCite|w8QqBQZEZdM|channel=Falco|channel_icon=Falco.jpg|title=Joseph Anderson Marble Races stream 1 with chat <nowiki>[02/14/2021]</nowiki>}}

YouTube Channel “Falco” video: “Joseph Anderson Marble Races stream 1 with chat [02/14/2021]”.


 {{YTCite|g2A1GkiMYW4|channel=avarisi|title=Not that fragile.}}

YouTube Channel “avarisi” video: “Not that fragile.”.


Template Data

Cite a non-Joe YouTube channel.

Template parameters[Edit template data]

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Video Code1

The YouTube video code for the video being cited.

Stringrequired
Channel Namechannel

The name of the channel being cited.

Suggested values
Falco Mike322 Cat Catasmic Retinas Bike Chan Man Of Answers Weed Lol
Stringrequired
Video Titletitle

The title of the video.

Stringrequired
Timetime

The time in seconds into the video to cite.

Numbersuggested
Channel Iconchannel_icon

The icon for the channel, give as the name of the file but don't use the `File:` prefix.

Suggested values
Falco.jpg Mike322.jpg Channel-retinasjpg.jpg Channel-Bike-chanjpg.jpg manofanswersicon.jpg kusoroicon.jpg Cat-Catasmic.jpg Weedlolicon.jpg
Stringsuggested