Template:Video: Difference between revisions

From VASP Wiki
No edit summary
No edit summary
Line 6: Line 6:
{{NB|important|<code>key{{=}}</code> and <code>test{{=}}</code> are important for specifying the text. It will not show the link otherwise; i.e., <code><nowiki>{{Video|key=video_name|text=custom_text}}</nowiki></code>}}
{{NB|important|<code>key{{=}}</code> and <code>test{{=}}</code> are important for specifying the text. It will not show the link otherwise; i.e., <code><nowiki>{{Video|key=video_name|text=custom_text}}</nowiki></code>}}
</noinclude>
</noinclude>
{{#switch: {{{key|}}}
{{#switch: {{{1|}}}
  | xas:alexey:2026= [https://youtu.be/gsrojMRnORs {{{text|X-ray absorption spectroscopy from first principles}}}]
  | xas:alexey:2026= [https://youtu.be/gsrojMRnORs {{{2|X-ray absorption spectroscopy from first principles}}}]
  | release66:chris:2026 = [https://youtu.be/m6KcBA4j2oI {{{text|Release for VASP 6.6}}}]
  | release66:chris:2026 = [https://youtu.be/m6KcBA4j2oI {{{text|Release for VASP 6.6}}}]
  | bse:alexey:2026= [https://youtu.be/arTPHW28qNM {{{text|Optical excitations and excitons: BSE and TDDFT}}}]
  | bse:alexey:2026= [https://youtu.be/arTPHW28qNM {{{text|Optical excitations and excitons: BSE and TDDFT}}}]

Revision as of 12:36, 17 March 2026

Template:Video
Usage:

  • {{Video|key|Custom text}} -
  • {{Video|key}} - if no custom text is included, then the title of the video is written instead.
Important: key= and test= are important for specifying the text. It will not show the link otherwise; i.e., {{Video|key=video_name|text=custom_text}}