Différences entre les versions de « Modèle:Video »
De Semantic MediaWiki - Sandbox
(chg) |
(chg) |
||
(4 versions intermédiaires par le même utilisateur non affichées) | |||
Ligne 1 : | Ligne 1 : | ||
<noinclude>''copied from the smw site'' | <noinclude>''copied from the smw site'' | ||
− | The template ought to be used to | + | The template ought to be used to attach a video link for an supported provider and ensure that video links are appropriately annotated ([[Property:Has video url]],[[Property:Has video provider]], [[Property:Has video type]], [[Property:Has video id]], [[Property:Has video description]]) in order to rediscover videos. |
<pre> | <pre> | ||
{{Video | {{Video | ||
Ligne 8 : | Ligne 8 : | ||
|id=4221 | |id=4221 | ||
|type=informational/conference/tips etc. | |type=informational/conference/tips etc. | ||
+ | |width=440 | ||
+ | |height=440 | ||
}} | }} | ||
− | </pre></noinclude><includeonly><!-- *** VIMEO *** -->{{#ifeq: Vimeo | {{{provider|N/A}}} | {{#widget:Vimeo|id={{{id}}}|width={{{width|220}}}|height={{{height|220}}} }}{{#subobject:|Has video url=https://vimeo.com/{{{id}}}|Has description={{{description|{{{Description}}}}}}|Has video type={{{type|informational}}}|Has video provider={{{provider}}}|Has | + | </pre></noinclude><includeonly><!-- *** VIMEO *** -->{{#ifeq: Vimeo | {{{provider|N/A}}} | {{#widget:Vimeo|id={{{id}}}|width={{{width|220}}}|height={{{height|220}}} }}{{#subobject:|Has video url=https://vimeo.com/{{{id}}}|Has video description={{{description|{{{Description}}}}}}|Has video type={{{type|informational}}}|Has video provider={{{provider}}}|Has video id={{{id}}} }} }}<!-- *** YOUTUBE*** -->{{#ifeq: YouTube | {{{provider|N/A}}} | {{#widget:YouTube|id={{{id}}}|width={{{width|250}}}|height={{{height|250}}} }}{{#subobject:|Has video url=https://www.youtube.com/watch?v={{{id}}}|Has description={{{description|{{{Description}}}}}}|Has video type={{{type|informational}}}|Has video provider={{{provider}}}|Has video id={{{id}}} }} }}</includeonly> |
Dernière version du 10 octobre 2021 à 15:39
copied from the smw site
The template ought to be used to attach a video link for an supported provider and ensure that video links are appropriately annotated (Property:Has video url,Property:Has video provider, Property:Has video type, Property:Has video id, Property:Has video description) in order to rediscover videos.
{{Video |provider=Vimeo/YouTube |description=A video about something |id=4221 |type=informational/conference/tips etc. |width=440 |height=440 }}