Difference between revisions of "Template:MainPageVideo"

From Wikispooks
Jump to navigation Jump to search
(expand to define SMW properties)
(t)
Line 10: Line 10:
 
<div style="border-bottom:1px solid #9a9a9a; background-color:#d0e5f5; padding:0.5em 0.5em; font-size:112%;text-align:center;">'''[[Has caption::{{{title|}}}]]'''</div>
 
<div style="border-bottom:1px solid #9a9a9a; background-color:#d0e5f5; padding:0.5em 0.5em; font-size:112%;text-align:center;">'''[[Has caption::{{{title|}}}]]'''</div>
 
<div style="padding:0.5em;font-size:90%;text-align:center;">[[constitutes::cover-video| ]][[Has publicationDate::{{{date|}}}| ]]
 
<div style="padding:0.5em;font-size:90%;text-align:center;">[[constitutes::cover-video| ]][[Has publicationDate::{{{date|}}}| ]]
{{#widget:YouTube|width=420px|height=280px|id=[[Has videoCode::{{{video_code|}}} }}<br/>
+
{{#widget:YouTube|width=420px|height=280px|id=[[Has videoCode::{{{video_code|}}}]] }}<br/>
 
[[Description::{{{text|}}}]]<br/><small>[[Main Page/Video archive|Video archive]]</small></div></includeonly>
 
[[Description::{{{text|}}}]]<br/><small>[[Main Page/Video archive|Video archive]]</small></div></includeonly>

Revision as of 16:46, 3 September 2014

This template makes a video panel for the main page.

Usage:
{{MainPageVideo
|title= section title
|video_code= YouTube video code
|text= description of video
}}