Difference between revisions of "Template:User video"

From RimWorld Wiki
Jump to navigation Jump to search
m (Protected "Template:User video": Counter-productive edit warring ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite)))
 
Line 1: Line 1:
<onlyinclude>
+
<includeonly>
 
<div class="thumbinner" style="display:inline-block;">{{#ev:youtube|{{{1|}}}|300}}<div class="thumbcaption">{{{2|}}}</div></div>
 
<div class="thumbinner" style="display:inline-block;">{{#ev:youtube|{{{1|}}}|300}}<div class="thumbcaption">{{{2|}}}</div></div>
</onlyinclude>
+
</includeonly><noinclude>
 +
{{Documentation|content=
 +
== Usage ==
 +
This template embeds a YouTube video. It has the following parameters
 +
 
 +
<pre>
 +
{{User video
 +
| <id of the video>
 +
| <caption>
 +
}}
 +
</pre>
 +
 
 +
== Example ==
 
<pre>
 
<pre>
 
{{user video|DJmYKKzC0uA|RimWorld Pre-Alpha Trailer}}
 
{{user video|DJmYKKzC0uA|RimWorld Pre-Alpha Trailer}}
 
</pre>
 
</pre>
 
{{user video|DJmYKKzC0uA|RimWorld Pre-Alpha Trailer}}
 
{{user video|DJmYKKzC0uA|RimWorld Pre-Alpha Trailer}}
 +
 +
}}[[Category:Templates]]</noinclude>

Latest revision as of 12:35, 31 July 2023

Documentation icon Template documentation

Usage

This template embeds a YouTube video. It has the following parameters

{{User video
| <id of the video>
| <caption>
}}

Example

{{user video|DJmYKKzC0uA|RimWorld Pre-Alpha Trailer}}
RimWorld Pre-Alpha Trailer