Jump to content

Template:Tech talk video

From mediawiki.org
This page is a translated version of the page Template:Tech talk video and the translation is 29% complete.
Tech talk「{{{title}}}」を[{{{link}}} 視聴してください]。
テンプレートの解説

TemplateData

Displays a sentence that links to a tech talk video.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
linklink

Link to the video

Example
https://www.youtube.com/watch?v=sWiDimlK4bE
Stringrequired
datedate

Date of the video, in ISO8661 YYYY-MM-DD format.

Example
2015-10-19
Datesuggested
titletitle

Title of the tech talk (without quotation marks).

Example
Free and open source licensing at Wikimedia
Stringrequired

To do

  • Add parameters for presenter, slides, webm, etc. to conditionally output:
    "– presenter name, (slides) (webm video)". See Tech talks#Past tech talks .
  • link could be an interwiki link to commons (though usually we offer this as well as YouTube). The template should use Module:String's sub to check if url starts with http, something like (untested):
{{#ifeq: {{#invoke:String|sub|{{{link}}}|1|4}} | http |<!--
    link is an external URL. -->[{{{link}}} Watch] |<!--
    link is a wikilink. --> [[{{{link}}} | Watch]]<!--
-->}}