YouTubeButton imports the platform.js script from Google, which enables the use of YouTube subscribe buttons.
Usage
- Add the line below to your wiki's MediaWiki:ImportJS page:
dev:YouTubeButton/code.js
- To embed a subscribe button, use the following HTML:
<div class="g-ytsubscribe" data-channel="ChannelName" data-layout="default" data-count="default"></div>
- Replace ChannelName with a YouTuber's channel name
Example
- Code
<div class="g-ytsubscribe" data-channel="wikia" data-layout="default" data-count="default"></div>
- Code
<div class="g-ytsubscribe" data-channel="wikia" data-layout="full" data-count="default"></div>