Template:YouTube data display: Difference between revisions

From LudoWiki
No edit summary
Tag: Reverted
No edit summary
Tag: Reverted
Line 3: Line 3:


Edit the page to see the template text.
Edit the page to see the template text.
</noinclude><includeonly><span itemscope itemref="item1" itemtype="https://schema.org/VideoGameClip">{{#get_web_data:url=https://youtube.googleapis.com/youtube/v3/videos?part=snippet%2CcontentDetails%2Cstatistics&id={{{YouTube video ID|}}}&key=AIzaSyC-zQp-SoOYbKh64GrNhBK5D3g7H9oX7Zs|format=json}}<span itemprop="associatedMedia" itemtype="https://schema.org/MediaObject">{{#widget:YouTube|id={{{YouTube video ID|}}}|width=100%}}</span>
</noinclude><includeonly><span itemscope itemref="item1" itemtype="https://schema.org/VideoGameClip">{{#get_web_data:url=https://youtube.googleapis.com/youtube/v3/videos?part=snippet%2CcontentDetails%2Cstatistics&id={{{YouTube video ID|}}}&key=AIzaSyC-zQp-SoOYbKh64GrNhBK5D3g7H9oX7Zs|format=json}}<span itemprop="associatedMedia" itemscope itemtype="https://schema.org/MediaObject">{{#widget:YouTube|id={{{YouTube video ID|}}}|width=100%}}</span>
<span class="ludohori" style="width:100%"><span>&#x1F441; Views: [[Views::{{#external_value:viewcount}}]]</span><span>&#x2764; Likes: {{#external_value:likecount}}</span><span>&#x1F5E9; Comments: <span itemprop="commentCount">{{#external_value:commentcount}}</span></span><span>&#x1F4C5; Date: {{#time:d F Y|{{#external_value:publishedat}}}}</span><span>&#x23F1; Duration: {{#time: H:i:s|00:00:00 + {{#replace:{{#replace:{{#replace:{{#sub:{{#external_value:duration}}|2}}|M| minutes }}|H| hours }}|S| seconds }} }}</span></span>
<span class="ludohori" style="width:100%"><span>&#x1F441; Views: [[Views::{{#external_value:viewcount}}]]</span><span>&#x2764; Likes: {{#external_value:likecount}}</span><span>&#x1F5E9; Comments: <span itemprop="commentCount">{{#external_value:commentcount}}</span></span><span>&#x1F4C5; Date: {{#time:d F Y|{{#external_value:publishedat}}}}</span><span>&#x23F1; Duration: {{#time: H:i:s|00:00:00 + {{#replace:{{#replace:{{#replace:{{#sub:{{#external_value:duration}}|2}}|M| minutes }}|H| hours }}|S| seconds }} }}</span></span>
{{#set: Video title={{{Video title|{{#external_value:title}} }}} | YouTube video ID={{{YouTube video ID|}}} | Duration={{#expr: {{#replace:{{#replace:{{#sub:{{#external_value:duration}}|2|-1}}|M| * 60 + }}| * 3600 + |:}} }} }}</span> [[Category:YouTube videos]] __NOEDITSECTION__ {{#default_form:YouTube video page}}</includeonly>
{{#set: Video title={{{Video title|{{#external_value:title}} }}} | YouTube video ID={{{YouTube video ID|}}} | Duration={{#expr: {{#replace:{{#replace:{{#sub:{{#external_value:duration}}|2|-1}}|M| * 60 + }}| * 3600 + |:}} }} }}</span> [[Category:YouTube videos]] __NOEDITSECTION__ {{#default_form:YouTube video page}}</includeonly>

Revision as of 21:38, 10 February 2023

This is the "YouTubeDataDisplay" template.

Edit the page to see the template text.