Différences entre les versions de « Modèle:Video »
De Semantic MediaWiki - Sandbox
(Page créée avec « <noinclude>''copied from the smw site'' The template ought to be used to attache a video link for an supported provider and ensure that video links are appropriately anno... ») |
|||
Ligne 9 : | Ligne 9 : | ||
|type=informational/conference/tips etc. | |type=informational/conference/tips etc. | ||
}} | }} | ||
− | </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 video id={{{id}}} }} }}<!-- *** YOUTUBE*** -->{{#ifeq: YouTube | {{{provider|N/A}}} | {{#widget:YouTube|id={{{id}}}|width={{{width|250}}}|height={{{height|250}}} }}{{#subobject:|Has video url= | + | </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 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> |
Version du 31 décembre 2016 à 04:34
copied from the smw site
The template ought to be used to attache 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 description) in order to rediscover videos.
{{Video |provider=Vimeo/YouTube |description=A video about something |id=4221 |type=informational/conference/tips etc. }}