Difference between revisions of "Template:Video"
Jump to navigation
Jump to search
(encode links, use description2) |
m (link to form) |
||
Line 11: | Line 11: | ||
<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|}}}| ]][[[[Has videoCode::{{{video_code|}}}| ]] | <div style="padding:0.5em;font-size:90%;text-align:center;">[[constitutes::cover-video| ]][[Has publicationDate::{{{date|}}}| ]][[[[Has videoCode::{{{video_code|}}}| ]] | ||
− | {{#widget:YouTube|width=420px|height=280px|id={{{video_code|}}} }}<br/>{{{text| }}}<span style="display:none;">[[Description2::{{EncodeLinks|{{{text|}}}}}]]</span><br/><small>[[Main Page/Video archive| | + | {{#widget:YouTube|width=420px|height=280px|id={{{video_code|}}} }}<br/>{{{text| }}}<span style="display:none;">[[Description2::{{EncodeLinks|{{{text|}}}}}]]</span><br/><small>[[Main Page/Videos|Video archive]] | [[Form:MainPageVideo|Add another video]]</small></div> |
[[Category:Main Page videos]] | [[Category:Main Page videos]] | ||
</includeonly> | </includeonly> |
Revision as of 09:48, 6 September 2014
This template makes a video panel for the main page.
Usage:
{{Video
|title= section title (Property:Has caption)
|date= section title (Property:Has publicationDate)
|video_code= YouTube video code (Property:Has videoCode)
|text= description of video. May include links. (Property:Description2)
}}