Difference between revisions of "Template:Video"
Jump to navigation
Jump to search
(Sets subtext2 property) |
|||
Line 9: | Line 9: | ||
|{{t|video_code}}= YouTube video code ''([[Property:Has videoCode]])''<br/> | |{{t|video_code}}= YouTube video code ''([[Property:Has videoCode]])''<br/> | ||
|{{t|text}}= description of video. ''May include links.'' ''([[Property:Description2]])''<br/> | |{{t|text}}= description of video. ''May include links.'' ''([[Property:Description2]])''<br/> | ||
− | |{{t|subtext}}= note to appeal in smaller text beneath the description. ''May include links.'' ''( | + | |{{t|subtext}}= note to appeal in smaller text beneath the description. ''May include links.'' ''([[Property:Subtext2]])''<br/> |
''Optional Parameters:''<br/> | ''Optional Parameters:''<br/> | ||
Line 16: | Line 16: | ||
|{{t|{{GREEN|constitutes}}}}= suitable descriptions of this video (e.g. "Propaganda") ''([[Property:Constitutes]])''<br/> | |{{t|{{GREEN|constitutes}}}}= suitable descriptions of this video (e.g. "Propaganda") ''([[Property:Constitutes]])''<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;">{{ArrayMapProperty|{{{authors|}}}|Has author}}{{ArrayMapProperty|{{{subjects|}}}|Is about}}{{ArrayMapProperty|{{{constitutes|}}}|constitutes}}[[Has documentType::video| ]][[constitutes::cover-video| ]][[Has publicationDate::{{{date|}}}| ]][[Has videoCode::{{{video_code|}}}| ]] | <div style="padding:0.5em;font-size:90%;text-align:center;">{{ArrayMapProperty|{{{authors|}}}|Has author}}{{ArrayMapProperty|{{{subjects|}}}|Is about}}{{ArrayMapProperty|{{{constitutes|}}}|constitutes}}[[Has documentType::video| ]][[constitutes::cover-video| ]][[Has publicationDate::{{{date|}}}| ]][[Has videoCode::{{{video_code|}}}| ]] | ||
− | {{#widget:YouTube|width=420px|height=280px|id={{{video_code|}}} }}<br/>{{{text| }}}{{#if:{{{subtext|}}}|<br/><small>{{{subtext}}}</small>}}<span style="display:none;">[[Description2::{{EncodeLinks|{{{text|}}} | + | {{#widget:YouTube|width=420px|height=280px|id={{{video_code|}}} }}<br/>{{{text| }}}{{#if:{{{subtext|}}}|<br/><small>{{{subtext}}}</small>}}<span style="display:none;">[[Description2::{{EncodeLinks|{{{text|}}}}}]][[Subtext2::{{{subtext|}}}]]</span><br/><small>[[Main Page/Videos|Video archive]] | [[Form:MainPageVideo|Add another video]]</small></div>[[Category:Main Page videos]]{{SMWDocs}}</includeonly> |
Revision as of 07:31, 13 September 2014
Template:Template
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)
|subtext= note to appeal in smaller text beneath the description. May include links. (Property:Subtext2)
Optional Parameters:
|authors= Comma separated list of authors. For pseudonyms, use single quotes. (Property:Has author)
|subjects= what this video is about (Property:Is about)
|constitutes= suitable descriptions of this video (e.g. "Propaganda") (Property:Constitutes)
}}