Difference between revisions of "Template:Video"

From Wikispooks
Jump to navigation Jump to search
(fix }s)
(t)
 
(22 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<noinclude>{{template
+
<noinclude>{{WStemplate
|summary=This template is for individual video pages that are or have been used on the Main Page video panel.
+
|summary=This template is for individual video pages. It is intended to standardise the use of video on the site. Its use is confined to Youtube clips at present but could be developed for video from any source, including a possible Wikispooks streaming video server.
 
|description=The optional sections will allow it to be picked up by [[Template:SMWDocs]].
 
|description=The optional sections will allow it to be picked up by [[Template:SMWDocs]].
 
}}
 
}}
 
'''Usage:'''<br/>
 
'''Usage:'''<br/>
 
<nowiki>{{</nowiki>{{PAGENAME}}<br/>
 
<nowiki>{{</nowiki>{{PAGENAME}}<br/>
|{{t|title}}= section title ''([[Property:Has caption]])''<br/>
+
|title= section title ''([[Property:Has caption]])''<br/>
|{{t|date}}= section title ''([[Property:Has publicationDate]])''<br/>
+
|{{NAVY|date}}= section title ''([[Property:Has publicationDate]])''<br/>
|{{t|video_code}}= YouTube video code ''([[Property:Has videoCode]])''<br/>
+
|video_code = YouTube video code ''([[Property:Has videoCode]])''<br/>
|{{t|text}}= description of video. ''May include links.'' ''([[Property:Description2]])''<br/>
+
|text= description of video. ''May include links.'' ''([[Property:Description2]])''<br/>
|{{t|subtext}}= note to appeal in smaller text beneath the description. ''May include links.'' ''(Shares [[Property:Description]])''<br/>
+
|description= <500 character summary, ''([[Property:Description]])''<br/>
 
+
|subtext= note to appear in smaller text beneath the description. ''May include links.'' ''([[Property:Subtext2]])''<br/>
 
''Optional Parameters:''<br/>
 
''Optional Parameters:''<br/>
|{{t|{{GREEN|authors}}}}= Comma separated list of authors. For pseudonyms, use single quotes. ''([[Property:Has author]])''<br/>
+
|{{GREEN|authors}}= Comma separated list of authors. For pseudonyms, use single quotes. ''([[Property:Has author]])''<br/>
|{{t|{{GREEN|subjects}}}}= what this video is about ''([[Property:Is about]])''<br/>
+
|{{GREEN|subjects}}= what this video is about ''([[Property:Is about]])''<br/>
|{{t|{{GREEN|constitutes}}}}= suitable descriptions of this video (e.g. "Propaganda") ''([[Property:Constitutes]])''<br/>
+
|{{GREEN|constitutes}}= suitable descriptions of this video (e.g. "Propaganda") ''([[Property:Constitutes]])''<br/>
 +
|{{BLUE|source_name}}=General name of the source, e.g. "[[Unwelcome Guests]]", "[[Cryptome]]", ... ''([[Property:Sourced from]])''<br/>
 
<nowiki>}}</nowiki>
 
<nowiki>}}</nowiki>
</noinclude><includeonly>
+
</noinclude><includeonly>{{SMWObjectHeader|Video}}<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|{{{source_name|}}}|Sourced from}}{{ArrayMapProperty|{{{constitutes|}}}|constitutes}}{{#SET:Has documentType=video}}[[Has publicationDate::{{{date|}}}| ]][[Has videoCode::{{{video_code|}}}| ]]{{Description|{{{description|}}}}}{{#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::{{EncodeLinks|{{{subtext|}}}}}]]</span><br/><small>[[Main Page/Videos|Video archive]]&nbsp;&nbsp;|&nbsp;&nbsp;[[Form:MainPageVideo|Add another video]]</small></div>[[Category:Main Page videos]]{{SMWDocs}}</includeonly>
<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|}}}{{#if:{{{subtext|}}}|<br/><small>{{{subtext}}}</small>}}}}]]</span><br/><small>[[Main Page/Videos|Video archive]]&nbsp;&nbsp;|&nbsp;&nbsp;[[Form:MainPageVideo|Add another video]]</small></div>[[Category:Main Page videos]]{{SMWDocs}}</includeonly>
 

Latest revision as of 04:22, 27 August 2016

This template is for individual video pages. It is intended to standardise the use of video on the site. Its use is confined to Youtube clips at present but could be developed for video from any source, including a possible Wikispooks streaming video server.
The optional sections will allow it to be picked up by Template:SMWDocs.

Blue parameters are for a single Wikispooks page name (If no suitable page exists, then pick a title for a future page)
Brown parameters are for numbers
Green parameters are for comma-separated lists of page names (Or planned page names).
Navy parameters are for dates
Orange parameters are for booleans. (Usually, either "Yes" or just leave blank).
Purple parameters are URLs.
Violet parameters are slash-separated lists.
Pink parameters are for coordinates.
Crossed out parameters were formerly available, but have been upgraded. Some may still work, but do not use these.

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)
|description= <500 character summary, (Property:Description)
|subtext= note to appear 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)
|source_name=General name of the source, e.g. "Unwelcome Guests", "Cryptome", ... (Property:Sourced from)
}}