Template:VideoTutorial: Difference between revisions

From RPTools Wiki
Jump to navigation Jump to search
(Update description.)
(Update to be cuter.)
Line 4: Line 4:


==Example Output==
==Example Output==
<div style="display: inline-block;padding: .5rem;border: 1px solid silver;background: #fdfdfd; background-position: left center;background-size: 4rem;background-repeat: no-repeat" class="video_tutorial">
<div style="display: inline-block;padding: 0;border: 1px solid silver;background: #fdfdfd; background-position: left center;background-size: 4rem;background-repeat: no-repeat" class="video_tutorial">
<p><strong>[https://www.youtube.com/watch?v=9rVo2Yj-xcw Tom Chapman's first MapTool tutorial]</strong><br><em>The most watched tutorial series for MapTool.</em>
<div style="float:left">[[File:clapperboard.png|48px]]</div>
</p>
<div style="float:right; padding:.5rem; .75rem .5rem 0;"><strong>[https://www.youtube.com/watch?v=9rVo2Yj-xcw Tom Chapman's first MapTool tutorial]</strong><br><em>The most watched tutorial series for MapTool.</em>
</div>
</div>
</div>


Line 18: Line 19:
=Source=
=Source=
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 silver;background: #fdfdfd; background-position: left center;background-size: 4rem;background-repeat: no-repeat" class="video_tutorial">
</noinclude><includeonly><div style="display: inline-block;padding: 0;border: 1px solid silver;background: #fdfdfd; background-position: left center;background-size: 4rem;background-repeat: no-repeat" class="video_tutorial">
<strong>[https://www.youtube.com/watch?v={{{1}}} {{{2|Video Tutorial}}}]</strong><br><em>{{{3}}}</em>
<div style="float:left">[[File:clapperboard.png|48px]]</div>
</div>[[Category:Pages with Video Tutorials]]</includeonly><noinclude>[[Category:Templates]]</noinclude>
<div style="float:right; padding:.5rem; .75rem .5rem 0;"><strong>[https://www.youtube.com/watch?v={{{1}}} {{{2|Video Tutorial}}}]</strong><br><em>{{{3}}}</em>
</div></div>[[Category:Pages with Video Tutorials]]</includeonly><noinclude>[[Category:Templates]]</noinclude>

Revision as of 16:47, 26 June 2021

Template Usage

This template wraps a YouTube video slug into a link/callout box intended for demonstration and tutorial videos.

Example Output

Tom Chapman's first MapTool tutorial
The most watched tutorial series for MapTool.

Example

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

Source

Edit this section to view template source.