Difference between revisions of "Template:Example box"

From HPC Wiki
Jump to navigation Jump to search
Line 1: Line 1:
−
<div class="thumb t{{{float|right}}}"><div class="thumbinner" style="width:{{{width|350}}};">{{Youtube|{{{1|I3yKmjMmo6M}}}|width={{{width|500}}}}}<div class="thumbcaption">{{{2|<noinclude>Caption goes here</noinclude>}}}</div></div></div><noinclude>
+
<code>{{{1}}}</code><noinclude>
−
{{Doc begin}} Template embeds a YouTube video thumbnail.
+
{{Doc begin}}
−
== Syntax ==
+
== Usage ==
−
Basic:
+
* {{tlx|code|<nowiki>[[Article name|Display]]</nowiki>}} generates {{code|[[Article name|Display]]}}.
−
<nowiki>{{youtube tn|YouTube id}}</nowiki>
+
* {{tlx|code|2=1=&#124; parameter name = value}} generates {{code|1=&#124; parameter name = value}}.
  
−
Caption:
+
[[Category:Formatting templates|Code]]
−
<nowiki>{{youtube tn|YouTube id|Caption}}</nowiki>
 
−
 
 
−
With all definable characters:
 
−
<nowiki>{{youtube tn|YouTube id|Caption|width=value|float=alignment}}</nowiki>
 
−
 
 
−
;YouTube Video Id: The YouTube video id of the video to include.
 
−
;Width: Width of the video, in pixels. Height is automatically calculated. Default is 350px.
 
−
;Float: Horizontal direction video floats. Default is right.
 
−
 
 
−
== See also ==
 
−
* {{tl|Youtube}}
 
−
 
 
−
[[Category:Formatting templates|Youtube]]
 
 
</noinclude>
 
</noinclude>

Revision as of 15:26, 16 September 2020

{{{1}}}

Documentation for Example box

Usage