Template:YTCite: Difference between revisions

No edit summary
No edit summary
Line 1: Line 1:
<span style="line-height: 20px">
<span style="line-height: 20px">
<!---->[[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|20px|alt=YouTube Channel]] <span class="inline-img circular">[[File:{{{channel_icon|}}}|25px|link=]]</span> “{{{channel}}}” video: [https://www.youtube.com/watch?v={{{1}}}&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>}}
== Template Data ==
<templatedata>
<templatedata>
{
{
Line 32: Line 38:
"type": "string",
"type": "string",
"required": true
"required": true
},
"channel_icon": {
"label": "Channel Icon",
"description": "The icon for the channel.",
"suggestedvalues": [
"Jelly.png"
]
}
}
},
},
Line 40: Line 53:
"channel",
"channel",
"title",
"title",
"time"
"time",
        "channel_icon"
]
]
}
}
</templatedata>
</templatedata>
</noinclude>
</noinclude>