Template:YouTube: Difference between revisions
Appearance
m time parameter - actually copy into template |
add lc parameter |
||
| (2 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
<includeonly><onlyinclude>{{#switch: {{{ParameterThatShouldAlwaysBeEmpty|}}} | {{{2|}}}{{{1|}}}{{{@|}}} = [https://inv.nadeko.net/ video missing] | {{{ | <includeonly><onlyinclude>{{#switch:{{{ParameterThatShouldAlwaysBeEmpty|}}}| {{{2|}}}{{{1|}}}{{{@|}}} = {{a| href = [https://inv.nadeko.net/ [video missing]] | datetime={{{datetime|}}} }} | {{{@|}}} = {{a|{{{2|}}}| href = https://inv.nadeko.net/watch?v={{{1|u31qwQUeGuM}}}{{#if:{{{t|}}}|&t{{=}}{{{t|}}}}}{{#if:{{{lc|}}}|&lc{{=}}{{{lc|}}}}} | datetime={{{datetime|}}} }} | {{{2|}}} = {{a|{{{1|}}}| href = https://inv.nadeko.net/channel/{{{@|UC6-1WMbZBIMrCGUBr64-3NQ}}} | datetime={{{datetime|}}}}}}}</onlyinclude></includeonly><!-- | ||
<!-- | |||
readable version: [note: the default links contain deliberately boring placeholder content from "JoomlaTemplate".] | readable version: [note: the default links contain deliberately boring placeholder content from "JoomlaTemplate".] | ||
{{#switch: {{{ParameterThatShouldAlwaysBeEmpty|}}} | {{#switch: {{{ParameterThatShouldAlwaysBeEmpty|}}} | ||
| {{{2|}}}{{{1|}}}{{{@|}}} = [https://inv.nadeko.net/ video missing] | | {{{2|}}}{{{1|}}}{{{@|}}} = | ||
| {{{ | {{a| href = [https://inv.nadeko.net/ [video missing]] | datetime={{{datetime|}}} }} | ||
| {{{@|}}} = | |||
| {{{2|}}}{{{1|}}} = | {{a|{{{2|}}}| href = https://inv.nadeko.net/watch?v={{{1|u31qwQUeGuM}}}{{#if:{{{t|}}}|&t{{=}}{{{t|}}}}}{{#if:{{{lc|}}}|&lc{{=}}{{{lc|}}}}} | datetime={{{datetime|}}} }} | ||
| | | {{{2|}}} = | ||
{{a|{{{1|}}}| href = https://inv.nadeko.net/channel/{{{@|UC6-1WMbZBIMrCGUBr64-3NQ}}} | datetime={{{datetime|}}} }} | |||
}} | }} | ||
--> | --> | ||
| Line 25: | Line 27: | ||
[[Category:Templates for markup]] [[Category:Source communication rating sheets]] | [[Category:Templates for markup]] [[Category:Source communication rating sheets]] <!-- | ||
redirects: [[Template:Youtube]] --> | |||
Latest revision as of 05:15, 2 March 2026
Demo[edit]
Description[edit]
This template exists to make it less painful to put video links in data tables, such as on Ontology pages or rating sheets. Without it, the "=" sign in YouTube links tends to break templates.
As an incidental bonus, the template uses invidious as its video interface. It will be updated based on which invidious instances are currently known to be functional.