Difference between revisions of "Template:Note"

From HPC Wiki
Jump to navigation Jump to search
 
(17 intermediate revisions by the same user not shown)
Line 1: Line 1:
<div class="youtubebox ratio-{{{ratio|16x9}}} hd-{{#if:{{{hd|{{{audio|}}}}}}|on|off}} widths-{{{widths|{{{width|512}}}}}} {{#if:{{{audio|}}}|youtube-audio|}}" style="margin:0.75em 0em;">
+
{| class="notice notice-note noprint" style="background: #f2fff2; border: solid 1px #bfffbf; padding: 6pt; margin: 12pt 0.1em; width: -0.5em;"  
{{#if: {{{align|}}}|{{#ev:youtube|{{{1|tax4e4hBBZc}}}|{{{width|512}}}|{{{align}}}}}|{{#ev:youtube|{{{1|tax4e4hBBZc}}}|{{{width|512}}}}}}}{{#if:{{{2|<noinclude>yes</noinclude>}}}
+
|
| <br /><div style="margin-top:0.75em;">{{hatnote|1={{{2|Caption here.}}}}}</div>
+
'''Note:'''
}}</div><noinclude>{{Doc begin}}
+
{{{1|{{{note}}}}}}
 +
|}<noinclude>
 +
Use: <pre>{{NOTE|note|PC2-wiki}}</pre>
  
This template will embed a video inside an article.
+
{{{Daten3<includeonly>|{{{3|}}}</includeonly>}}}
 
+
'''Note:'''
=== Syntax ===
+
{{{1|}}}
Basic:
 
<nowiki>{{youtube|YouTube id}}</nowiki>
 
 
 
With a defined thumbnail width:
 
<nowiki>{{youtube|YouTube id|width=value|align=alignment}}</nowiki>
 
 
 
;YouTube Video ID: The YouTube video id of the video to include.
 
;{{code|width}}: Width of the video, in pixels. Height is calculated based on ratio. Default is 512px.
 
;{{code|widths}}: If specified, must be a list of hyphen-separated integers representing possible video widths (Example: <code>460-500-700</code>). The video size will be based on the browser window size and the ratio of the video. If left unspecified, the video will stay at the value of the <code>width</code> attribute.
 
;{{code|align}}: Horizontal alignment of video. Default is left.
 
;{{code|ratio}}: Ratio of embedded video, with <code>x</code> as separator (Example: <code>4x3</code>). Default is <code>16x9</code>.
 
;{{code|hd}}: Whether HD should be turned on or off by default. Default is to let YouTube decide. YouTube users may override this value in their YouTube preferences.  This parameter can be set to {{code|on}} or {{code|off}}.
 
;{{code|audio}}: Whether this video should be presented as an audio file (display only the seek bar, no video).  This parameter can be set to {{code|on}} or {{code|off}}.
 
 
 
=== See also ===
 
* {{tl|youtube tn}}
 

Latest revision as of 10:52, 2 November 2020

Note: {{{note}}}

Use:

{{NOTE|note|PC2-wiki}}

{{{Daten3}}} Note: