More actions
m (add ability to define a custom link description) |
m (add Twitter) |
||
Line 4: | Line 4: | ||
|nn=[[File:favicon-nn.png|link=http://www.nicovideo.jp/watch/{{{2|}}}]]<!-- | |nn=[[File:favicon-nn.png|link=http://www.nicovideo.jp/watch/{{{2|}}}]]<!-- | ||
-->[http://www.nicovideo.jp/watch/{{{2|}}} {{{desc|{{#ifeq:{{{3|}}}|y|NicoNico}}}}}] | -->[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 a default "YouTube" or " | | JUST the ID of the video (ie "so6700003") or for twitter, the post (ie "arcnama/status/1142320463558823936") | ||
| desc = description (overrides | | y to display a default "YouTube", "NicoNico", or "Twitter" description next to the icon | ||
| desc = description (overrides the default description) | |||
}} | }} | ||
Line 26: | Line 29: | ||
{{Favicon|yt|jfwXGlwD1xg|y}}{{Favicon|nn|so6700003|desc=NicoNico (JP)}} | {{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}}