Template:YouTube: Difference between revisions
No edit summary |
No edit summary |
||
| Line 2: | Line 2: | ||
<div style="float:{{{3|left}}};" itemscope itemprop="video" itemtype="https://schema.org/VideoObject"> | <div style="float:{{{3|left}}};" itemscope itemprop="video" itemtype="https://schema.org/VideoObject"> | ||
{{#widget:YouTube|id={{{1}}}|width={{#switch:{{{2}}}|small=356|medium=560|big=640|large=854|100%}}}} | {{#widget:YouTube|id={{{1}}}|width={{#switch:{{{2}}}|small=356|medium=560|big=640|large=854|100%}}}} | ||
<!-- mandatory properties for google rich snippets --> | |||
<meta itemprop="name" content="{{#ask: [[YouTube video ID::{{{1|{{#external_value:title}}}}}]]}}"/> | |||
<meta itemprop="uploadDate" content="{{#external_value:publishedat}}" /> | <meta itemprop="uploadDate" content="{{#external_value:publishedat}}" /> | ||
<!-- non-mandatory properties for google rich snippets --> | |||
<meta itemprop="duration" content="{{#external_value:duration}}" /> | |||