Template:YouTube

From WikiAlpha
Revision as of 04:25, 6 May 2022 by WritingSnowman (Talk | contribs) (Created page with "[https://www.youtube.com/{{#if:{{{user|{{{u|}}}}}} |user/{{{user|{{{u|}}}}}} {{#if:{{{title|{{{1|}}}}}}|<span class="plainlinks">{{delink|<nowiki/>{{{title|{{{1}}}}}}}}</span...")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Video on YouTube{{#invoke:Check for unknown parameters|check|unknown=|preview=Page using Template:YouTube with unknown parameter "_VALUE_"|ignoreblank=y| 1 | 2 | c | channel | custom | id | link | p | playlist | s | show | suffix | t | time | title | u | user }}
[edit] [purge] Template documentation

Template:DocpageTemplate:SISH Template for placing videos from YouTube in articles. Alternative names: {{YouTube}} and {{Video}}.

There is only one required parameter: ID_video (code like https://www.youtube.com/watch?v=v4_mlIcGcRk). The second parameter can be specified as a caption for the video:

{{Video|ID_video|signature}}

Optional parameters:

  • width — width of the video block,
  • align - position of the block on the wiki page.

Examples of use

  • Classic method on the right: {{Video|f-iOKMZeCCQ|width=250|The Marquis goes for a walk}}. The variables here will be the size width=250. In this layout it is always to the right of the text.
  • Classic method on the left: {{Video|f-iOKMZeCCQ|width=250|align=left|The Marquis goes for a walk}}. In this layout to the left of the text. Added align=left| to the previous construction.
  • The lazy way: {{YouTube|f-iOKMZeCCQ|The Marquis goes for a walk}}. The location is always to the right of the text and the same size. May look eye-rolling.