Difference between revisions of "Template:Test/MainPageVideo"
Jump to navigation
Jump to search
(video code issue) |
m (Text replacement - "WikiSpooks" to "Wikispooks") |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | <noinclude>'''This template makes a video panel for the main page.'''[[Category: | + | <noinclude>'''This template makes a video panel for the main page.'''[[Category:Wikispooks Templates]]<br/> |
<br/> | <br/> | ||
Usage:<br/> | Usage:<br/> | ||
<nowiki>{{</nowiki>{{PAGENAME}}<br/> | <nowiki>{{</nowiki>{{PAGENAME}}<br/> | ||
− | |title= section title<br/> | + | |title= section title ''([[Property:Has caption]])''<br/> |
− | |video_code= YouTube video code<br/> | + | |date= section title ''([[Property:Has publicationDate]])''<br/> |
− | |text= description of video<br/> | + | |video_code= YouTube video code ''([[Property:Has videoCode]])''<br/> |
+ | |text= description of video ''([[Property:Description]])''<br/> | ||
<nowiki>}}</nowiki> | <nowiki>}}</nowiki> | ||
</noinclude><includeonly> | </noinclude><includeonly> | ||
<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;">[[Description::{{{text|}}}]]</span><br/><small>[[Main Page/Video archive|Video archive]]</small></div></includeonly> | + | {{#widget:YouTube|width=420px|height=280px|id={{{video_code|}}} }}<br/>{{{text| }}}<span style="display:none;">[[Description::{{{text|}}}]]</span><br/><small>[[Main Page/Video archive|Video archive]]</small></div> |
+ | [[Category:Main Page videos]] | ||
+ | </includeonly> |
Latest revision as of 17:16, 14 October 2018
This template makes a video panel for the main page.
Usage:
{{Test/MainPageVideo
|title= section title (Property:Has caption)
|date= section title (Property:Has publicationDate)
|video_code= YouTube video code (Property:Has videoCode)
|text= description of video (Property:Description)
}}