Template:VideoTutorial: Difference between revisions

From RPTools Wiki
Jump to navigation Jump to search
m (Simplify and streamline styling)
(Fix external linking in template)
Line 12: Line 12:
==Example==
==Example==
<pre>{{VideoTutorial
<pre>{{VideoTutorial
|https://www.youtube.com/watch?v=9rVo2Yj-xcw
|9rVo2Yj-xcw
|Tom Chapman's MapTool Tutorial
|Tom Chapman's MapTool Tutorial
|The first video in the series.
|The first video in the series.
Line 20: Line 20:
Edit this section to view template source.
Edit this section to view template source.
</noinclude><includeonly><div style="display: inline-block; padding:.5rem; border: 1px solid grey; background: #fefefa" class="video_tutorial">
</noinclude><includeonly><div style="display: inline-block; padding:.5rem; border: 1px solid grey; background: #fefefa" class="video_tutorial">
<a href="{{{1}}}" target="_blank"><strong>{{{2|Video Tutorial}}}</strong></a><br><em>{{{3}}}</em>
<strong>[{{{1}}} {{{2|Video Tutorial}}}]</strong></a><br><em>{{{3}}}</em>
</div>[[Category:Pages with Video Tutorials]]</includeonly><noinclude>[[Category:Templates]]</noinclude>
</div>[[Category:Pages with Video Tutorials]]</includeonly><noinclude>[[Category:Templates]]</noinclude>

Revision as of 05:53, 26 June 2021

Template Usage

This template wraps video embed code intended for demonstration and tutorial videos.

Example Output

[{{{1}}} Video Tutorial]</a>
{{{3}}}

Example

{{VideoTutorial
|9rVo2Yj-xcw
|Tom Chapman's MapTool Tutorial
|The first video in the series.
}}

Source

Edit this section to view template source.