Template:Yt: Difference between revisions

From PS3 Developer wiki
Jump to navigation Jump to search
mNo edit summary
m (Building the icon with CSS was a cool trick, but by using a image looks better)
Line 2: Line 2:


if parameter 2 exists
if parameter 2 exists
-->{{{2|}}}<span class="plainlinks">[https://www.youtube.com/results?search_query={{urlencode:{{{1|HiddenText}}} {{{2|VisibleText}}}|QUERY}} <div style="float:right; background:#DC4539; display:inline-block; width:2.4em; line-height:1.2em; border-radius:2em/5em;" title="Search in YouTube"><span style="vertical-align:1px; font-size:1.5em; color:#ffffff;">&nbsp;&thinsp;▶&nbsp;</span></div>]</span><!--
-->{{{2|}}}<span style="float:right;">[[Image:Youtube-logo-small.png|28px|Search in YouTube|link=https://www.youtube.com/results?search_query={{urlencode:{{{1|HiddenText}}} {{{2|VisibleText}}}|QUERY}}]]</span><!--


-->|<!--else (parameter 2 doesnt exists)
-->|<!--else (parameter 2 doesnt exists)
-->{{{1|}}}<span class="plainlinks">[https://www.youtube.com/results?search_query={{urlencode:{{{1|VisibleText}}}|QUERY}} <div style="float:right; background:#DC4539; display:inline-block; width:2.4em; line-height:1.2em; border-radius:2em/5em;" title="Search in YouTube"><span style="vertical-align:1px; font-size:1.5em; color:#ffffff;">&nbsp;&thinsp;▶&nbsp;</span></div>]</span><!--
-->{{{1|}}}<span style="float:right;">[[Image:Youtube-logo-small.png|28px|Search in YouTube|link=https://www.youtube.com/results?search_query={{urlencode:{{{1|VisibleText}}}|QUERY}}]]</span><!--


-->}}<!-- if ends --><noinclude>
-->}}<!-- if ends --><noinclude>

Revision as of 06:44, 26 October 2021

Search in YouTube

Notes

This template is intended to be added to the text inside a table cell, displays an icon at the right of the cell with a link to "Search in YouTube" by using syntax {{yt|text}}
There is an optional parameter (hidden in the table) to filter the search, in the example below it searchs for the name "Tetris" with the optional parameter "PS2" by using syntax {{yt|PS2|Tetris}}
It can be used with any other kind of youtube searches e.g: {{yt|C programming|structures}}, {{yt|artist name|song name}}, etc...


# · A · B · C · D · E · F · G · H · I · J · K · L · M · N · O · P · Q · R · S · T · U · V · W · X · Y · Z · Back to top
Logo PS2.png Game Name
Europe.png
PAL‐EU
United States.png
NTSC‐U
Japan.png
NTSC‐J
Logo PS3.png Compatibility Notes
Tetris PS2 Classic Playable Minor Issues Standard text, without the YouTube search
TetrisSearch in YouTube PS2 Classic Playable Minor Issues With the YouTube search, by using syntax {{yt|Tetris}} (in this example are only 7 more characters)
TetrisSearch in YouTube PS2 Classic Playable Minor Issues With the YouTube search and a optional filter, by using syntax {{yt|PS2|Tetris}} (in this example are only 10 more characters)