Template:Yt: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
m (Now the second parameter is really optional) |
||
Line 1: | Line 1: | ||
{{{2|}}}<span class="plainlinks" style="float:right; background:#ff4444; color:#ffffff; display:inline-block; width:24px; line-height:12px; text-align:center; border-radius:4px; box-shadow: 0px 0px 2px 1px #eeeeee;" title="Search in YouTube">[https://www.youtube.com/results?search_query={{urlencode:{{{1| | {{#if:{{{2|}}}|<!-- | ||
if parameter 2 exists | |||
-->{{{2|}}}<span class="plainlinks" style="float:right; background:#ff4444; color:#ffffff; display:inline-block; width:24px; line-height:12px; text-align:center; border-radius:4px; box-shadow: 0px 0px 2px 1px #eeeeee;" title="Search in YouTube">[https://www.youtube.com/results?search_query={{urlencode:{{{1|HiddenText}}} {{{2|VisibleText}}}|QUERY}} <span style="vertical-align:2px; color:#ffffff;"> ▶ </span>]</span><!-- | |||
-->|<!--else (parameter 2 doesnt exists) | |||
-->{{{1|}}}<span class="plainlinks" style="float:right; background:#ff4444; color:#ffffff; display:inline-block; width:24px; line-height:12px; text-align:center; border-radius:4px; box-shadow: 0px 0px 2px 1px #eeeeee;" title="Search in YouTube">[https://www.youtube.com/results?search_query={{urlencode:{{{1|VisibleText}}}|QUERY}} <span style="vertical-align:2px; color:#ffffff;"> ▶ </span>]</span><!-- | |||
-->}}<!-- if ends --><noinclude> | |||
== Notes == | == 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"<br> | 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 '''<nowiki>{{yt|text}}</nowiki>'''<br> | ||
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 '''<nowiki>{{yt|PS2|Tetris}}</nowiki>'''<br> | 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 '''<nowiki>{{yt|PS2|Tetris}}</nowiki>'''<br> | ||
It can be used with any other kind of youtube searches e.g: '''<nowiki>{{yt|C programming|structures}}</nowiki>''', '''<nowiki>{{yt|artist name|song name}}</nowiki>''', etc... | It can be used with any other kind of youtube searches e.g: '''<nowiki>{{yt|C programming|structures}}</nowiki>''', '''<nowiki>{{yt|artist name|song name}}</nowiki>''', etc... | ||
Line 9: | Line 17: | ||
{{PS2 Classics Emulator Compatibility List Headers}} | {{PS2 Classics Emulator Compatibility List Headers}} | ||
|- | |- | ||
| Tetris || {{ps2classic}} || {{playable}} || {{minorissues}} || | | Tetris || {{ps2classic}} || {{playable}} || {{minorissues}} || Standard text, without the YouTube search | ||
|- | |||
| {{yt|Tetris}} || {{ps2classic}} || {{playable}} || {{minorissues}} || With the YouTube search, by using syntax '''<nowiki>{{yt|Tetris}}</nowiki>''' (in this example are only 7 more characters) | |||
|- | |- | ||
| {{yt|PS2|Tetris}} || {{ps2classic}} || {{playable}} || {{minorissues}} || With | | {{yt|PS2|Tetris}} || {{ps2classic}} || {{playable}} || {{minorissues}} || With the YouTube search, by using the optional filter by using syntax '''<nowiki>{{yt|PS2|Tetris}}</nowiki>''' (in this example are only 10 more characters) | ||
|} | |} | ||
[[Category:Templates]]</noinclude> | [[Category:Templates]]</noinclude> |
Revision as of 20:18, 8 October 2021
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...
Tetris | PS2 Classic | Playable | Minor Issues | Standard text, without the YouTube search |
Tetris ▶ | PS2 Classic | Playable | Minor Issues | With the YouTube search, by using syntax {{yt|Tetris}} (in this example are only 7 more characters) |
Tetris ▶ | PS2 Classic | Playable | Minor Issues | With the YouTube search, by using the optional filter by using syntax {{yt|PS2|Tetris}} (in this example are only 10 more characters) |