Widget:YouTube: Difference between revisions
No edit summary Tag: Reverted |
No edit summary Tag: Reverted |
||
| Line 1: | Line 1: | ||
<includeonly><span itemscope itemprop="video" itemtype="https://schema.org/VideoObject"><iframe width="<!--{$width|escape:'html'|default:'480'}-->" src="https://www.youtube.com/embed/<!--{$id|escape:'urlpathinfo'}-->?controls=2&modestbranding=1&rel=0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen style="border:none;aspect-ratio: 16 / 9;"> | <includeonly>{{#get_web_data:url=https://youtube.googleapis.com/youtube/v3/videos?part=snippet%2CcontentDetails%2Cstatistics&id=<!--{$id|escape:'urlpathinfo'}-->&key=AIzaSyC-zQp-SoOYbKh64GrNhBK5D3g7H9oX7Zs|format=json}} | ||
<span itemscope itemprop="video" itemtype="https://schema.org/VideoObject"> | |||
<iframe width="<!--{$width|escape:'html'|default:'480'}-->" src="https://www.youtube.com/embed/<!--{$id|escape:'urlpathinfo'}-->?controls=2&modestbranding=1&rel=0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen style="border:none;aspect-ratio: 16 / 9;"></iframe> | |||
<meta itemprop="uploadDate" content="{{#external_value:publishedat}}" /> | |||
</span></includeonly> | |||