Template:Yt: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
No edit summary |
||
(13 intermediate revisions by the same user not shown) | |||
Line 2: | Line 2: | ||
if parameter 2 exists | if parameter 2 exists | ||
-->{{{2|}}}<span | -->{{{2|}}}<span style="float:right;">[[Image:Youtube-logo-small.png|18px|Search in YouTube|link=https://www.youtube.com/results?search_query={{urlencode:{{{2|VisibleText}}} {{{1|HiddenText}}}|QUERY}}]]</span><!-- | ||
-->|<!--else (parameter 2 doesnt exists) | -->|<!--else (parameter 2 doesnt exists) | ||
-->{{{1|}}}<span | -->{{{1|}}}<span style="float:right;">[[Image:Youtube-logo-small.png|18px|Search in YouTube|link=https://www.youtube.com/results?search_query={{urlencode:{{{1|VisibleText}}}|QUERY}}]]</span><!-- | ||
-->}}<!-- if ends --><noinclude> | -->}}<!-- if ends --><noinclude> | ||
Line 22: | Line 22: | ||
|- | |- | ||
| {{yt|PS2|Tetris}} || {{ps2classic}} || {{playable}} || {{minorissues}} || With the YouTube search and a optional filter, by using syntax '''<nowiki>{{yt|PS2|Tetris}}</nowiki>''' (in this example are only 10 more characters) | | {{yt|PS2|Tetris}} || {{ps2classic}} || {{playable}} || {{minorissues}} || With the YouTube search and a optional filter, by using syntax '''<nowiki>{{yt|PS2|Tetris}}</nowiki>''' (in this example are only 10 more characters) | ||
|- | |||
| {{yt|PS1 PSX PlayStation|Tetris Plus}} || {{ps1classic}} || {{playable}} || {{minorissues}} || With the YouTube search and a optional filter, by using syntax '''<nowiki>{{yt|PS1 PSX PlayStation|Tetris Plus}}</nowiki>''' | |||
|} | |} | ||
[[Category:Templates]]</noinclude> | [[Category:Templates]]</noinclude> |
Latest revision as of 15:38, 12 February 2022
Notes[edit source]
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 and a optional filter, by using syntax {{yt|PS2|Tetris}} (in this example are only 10 more characters) |
Tetris Plus | PSone Classic | Playable | Minor Issues | With the YouTube search and a optional filter, by using syntax {{yt|PS1 PSX PlayStation|Tetris Plus}} |