More actions
(Created page with "<includeonly><span style="margin-left:0.5em;margin-right:0.5em;">{{#switch:{{{1|}}} |yt=link=http://youtube.com/watch?v={{{2|}}}<!-- -->{{#ifeq:{{...") |
m (add Twitter) |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
<includeonly><span style="margin-left:0.5em;margin-right:0.5em;">{{#switch:{{{1|}}} | <includeonly><span style="margin-left:0.5em;margin-right:0.5em;">{{#switch:{{{1|}}} | ||
|yt=[[File:favicon-yt.png|link=http://youtube.com/watch?v={{{2|}}}]]<!-- | |yt=[[File:favicon-yt.png|link=http://youtube.com/watch?v={{{2|}}}]]<!-- | ||
--> | -->[http://youtube.com/watch?v={{{2|}}} {{{desc|{{#ifeq:{{{3|}}}|y|YouTube}}}}}] | ||
|nn=[[File:favicon-nn.png|link=http://www.nicovideo.jp/watch/{{{2|}}}]]<!-- | |nn=[[File:favicon-nn.png|link=http://www.nicovideo.jp/watch/{{{2|}}}]]<!-- | ||
-->{{#ifeq:{{{3|}}}|y|[ | -->[http://www.nicovideo.jp/watch/{{{2|}}} {{{desc|{{#ifeq:{{{3|}}}|y|NicoNico}}}}}] | ||
|tw=[[File:Favicon-tw.png|16x16px|link=https://twitter.com/{{{2|}}}]]<!-- | |||
-->[https://twitter.com/{{{2|}}} {{{desc|{{#ifeq:{{{3|}}}|y|Twitter}}}}}] | |||
|#default= | |#default= | ||
}}</span></includeonly><!-- | }}</span></includeonly><!-- | ||
Line 15: | Line 17: | ||
| yt for Youtube | | yt for Youtube | ||
nn for NicoNico | nn for NicoNico | ||
| JUST the ID of the video (ie "so6700003") | tw for Twitter | ||
| y to display "YouTube" or " | | JUST the ID of the video (ie "so6700003") or for twitter, the post (ie "arcnama/status/1142320463558823936") | ||
| y to display a default "YouTube", "NicoNico", or "Twitter" description next to the icon | |||
| desc = description (overrides the default description) | |||
}} | }} | ||
{{Favicon|yt|jfwXGlwD1xg|y}}{{Favicon|nn|so6700003| | {{Favicon|yt|jfwXGlwD1xg|y}}{{Favicon|nn|so6700003|desc=NicoNico (JP)}} | ||
{{Favicon|yt|jfwXGlwD1xg}}{{Favicon|nn|so6700003}} | {{Favicon|yt|jfwXGlwD1xg}}{{Favicon|nn|so6700003}} | ||
</nowiki></pre> | </nowiki></pre> | ||
{{Favicon|yt|jfwXGlwD1xg|y}}{{Favicon|nn|so6700003|y}} | {{Favicon|yt|jfwXGlwD1xg|y}}{{Favicon|nn|so6700003|desc=NicoNico (JP)}} | ||
{{Favicon|tw|arcnama/status/1142320463558823936|y}} | |||
{{Favicon|yt|jfwXGlwD1xg}}{{Favicon|nn|so6700003}} | {{Favicon|yt|jfwXGlwD1xg}}{{Favicon|nn|so6700003}} | ||
{{Favicon|tw|arcnama/status/1142320463558823936}} | |||
[[Category:Templates]] | [[Category:Templates]] | ||
</noinclude> | </noinclude> |
Latest revision as of 17:31, 8 August 2020
This template displays a favicon for NicoNico or YouTube plus a link to the video.
Usage
{{Favicon | yt for Youtube nn for NicoNico tw for Twitter | JUST the ID of the video (ie "so6700003") or for twitter, the post (ie "arcnama/status/1142320463558823936") | y to display a default "YouTube", "NicoNico", or "Twitter" description next to the icon | desc = description (overrides the default description) }} {{Favicon|yt|jfwXGlwD1xg|y}}{{Favicon|nn|so6700003|desc=NicoNico (JP)}} {{Favicon|yt|jfwXGlwD1xg}}{{Favicon|nn|so6700003}}