Template:YouTube Preview: Difference between revisions
Appearance
	
	
| Cherrykano (talk | contribs) mNo edit summary | Cherrykano (talk | contribs) mNo edit summary | ||
| Line 1: | Line 1: | ||
| <div class="cat-{{#switch:{{{Series|}}}|sunshine=llss|nijigasaki=lln|superstar=llst|hasunosora=llll|sim=llsim|gny=gny|bluebird=llbb|ll}}" style="margin: 8px 4px 0 4px; padding:8px; border-radius:5px; width:300px; text-align:center;">{{{Title|}}}</div> | <div class="cat-{{#switch:{{{Series|}}}|sunshine=llss|nijigasaki=lln|superstar=llst|hasunosora=llll|sim=llsim|gny=gny|bluebird=llbb|ll}}" style="margin: 8px 4px 0 4px; padding:8px; border-radius:5px; width:300px; text-align:center;">{{{Title|}}}</div> | ||
| <div style="margin: 4px  | <div style="margin: 4px 8px 0 8px;"><youtube width="300">{{{URL}}}</youtube></div>{{#if:{{{Channel|}}}|<div><span class="cat-{{#switch:{{{Series|}}}|sunshine=llss|nijigasaki=lln|superstar=llst|hasunosora=llll|sim=llsim|gny=gny|bluebird=llbb|ll}}" style="margin: 2px 8px; padding:4px; border-radius:5px; display:inline-block; width:130px; text-align:center;">Channel</span>{{{Channel}}}</div>}}{{#if:{{{Release|}}}|<div><span class="cat-{{#switch:{{{Series|}}}|sunshine=llss|nijigasaki=lln|superstar=llst|hasunosora=llll|sim=llsim|gny=gny|bluebird=llbb|ll}}" style="margin: 2px 8px; padding:4px; border-radius:5px; display:inline-block; width:130px; text-align:center;">Release Date</span>{{{Release}}}</div>}} | ||
| <noinclude> | <noinclude> | ||
| {{documentation}} | {{documentation}} | ||
| [[Category:Templates]] | [[Category:Templates]] | ||
| </noinclude> | </noinclude> | ||
Revision as of 14:09, 19 June 2025
Provided ID could not be validated.
Template documentation (for the above template, sometimes hidden or invisible)
- Description
- Creates a YouTube video thumbnail with upload information.
- Syntax
- Type {{YouTube Preview|<...>}}somewhere, with parameters as shown below.
- Parameters
{{YouTube Preview
|Series = Changes header color (sunshine, nijigasaki, superstar, hasunosora, sim, gny, bluebird, or leave blank)
|Title = 
|URL = Portion of the video URL '''after''' youtube.com/watch?v=
|Channel = 
|Release = 
}}
- Sample output
{{YouTube Preview
|Series = hasunosora
|Title = DOLLCHESTRA "Ampere" Lyric Video
|URL = M_KiFNfYBf0
|Channel = @lovelive_hasu
|Release = May 28, 2025
}}
Results in...
DOLLCHESTRA "Ampere" Lyric Video
Channel@lovelive_hasu
Release DateMay 28, 2025
Visit Template:YouTube Preview/doc to edit this text! (How does this work?)
