Template:Video: Difference between revisions

From VASP Wiki
(Created page with "<noinclude> This template is similar to how LaTeX manages citations, using a key and a display text. Usage: {{video|key|text}}. </noinclude> {{Reference | key={{{1}}} | show={{{2}}} | bib={{{3|Video}}} | link={{{4|https://youtu.be/default}}} }} {{Reference | key=release:chris:2026 | bib=Release for VASP 6.6 | link=https://youtu.be/m6KcBA4j2oI }}")
 
No edit summary
Line 1: Line 1:
<noinclude>
<noinclude>
This template is similar to how LaTeX manages citations, using a key and a display text.
This template works like Template:Reference, but for videos.
Usage: {{video|key|text}}.
Usage: {{video|key|display text}}
- key: unique video identifier (video_name:lecturer:year)
- display text: text to show for the link
</noinclude>
</noinclude>
{{Reference
| key={{{1}}}
| show={{{2}}}
| bib={{{3|Video}}}
| link={{{4|https://youtu.be/default}}}
}}


{{Reference
{{#switch: {{{show|{{{1|}}}}}}
  | key=release:chris:2026
  | {{{key|}}} = [{{{link}}} {{{bib}}}]
  | bib=Release for VASP 6.6
  | all = * [{{{link}}} {{{bib}}}]
| link=https://youtu.be/m6KcBA4j2oI
}}
}}

Revision as of 10:33, 17 March 2026

This template works like Template:Reference, but for videos. Usage:


- key: unique video identifier (video_name:lecturer:year) - display text: text to show for the link


[{{{link}}} {{{bib}}}]