Forskel mellem versioner af "Skabelon:Video"
HPK (diskussion | bidrag) m |
HPK (diskussion | bidrag) m |
||
Linje 17: | Linje 17: | ||
| [{{{3}}}] }} | | [{{{3}}}] }} | ||
| [http://{{{3}}}] | | [http://{{{3}}}] | ||
+ | }} }} {{#switch:{{{4|}}} | ||
+ | | {{{4}}} = {{#switch:{{#titleparts:{{{4}}}|1|2}} | ||
+ | | = {{#switch:{{#titleparts:{{{4}}}|2|2}} | ||
+ | | = {{#iferror:{{#expr:{{{4}}}}}|[http://youtube.com/watch?v={{{4}}}]|[http://vimeo.com/{{{4}}}] }} | ||
+ | | [{{{4}}}] }} | ||
+ | | [http://{{{4}}}] | ||
+ | }} }} {{#switch:{{{5|}}} | ||
+ | | {{{5}}} = {{#switch:{{#titleparts:{{{5}}}|1|2}} | ||
+ | | = {{#switch:{{#titleparts:{{{5}}}|2|2}} | ||
+ | | = {{#iferror:{{#expr:{{{5}}}}}|[http://youtube.com/watch?v={{{5}}}]|[http://vimeo.com/{{{5}}}] }} | ||
+ | | [{{{5}}}] }} | ||
+ | | [http://{{{5}}}] | ||
+ | }} }} {{#switch:{{{6|}}} | ||
+ | | {{{6}}} = {{#switch:{{#titleparts:{{{6}}}|1|2}} | ||
+ | | = {{#switch:{{#titleparts:{{{6}}}|2|2}} | ||
+ | | = {{#iferror:{{#expr:{{{6}}}}}|[http://youtube.com/watch?v={{{6}}}]|[http://vimeo.com/{{{6}}}] }} | ||
+ | | [{{{6}}}] }} | ||
+ | | [http://{{{6}}}] | ||
+ | }} }} {{#switch:{{{7|}}} | ||
+ | | {{{7}}} = {{#switch:{{#titleparts:{{{7}}}|1|2}} | ||
+ | | = {{#switch:{{#titleparts:{{{7}}}|2|2}} | ||
+ | | = {{#iferror:{{#expr:{{{7}}}}}|[http://youtube.com/watch?v={{{7}}}]|[http://vimeo.com/{{{7}}}] }} | ||
+ | | [{{{7}}}] }} | ||
+ | | [http://{{{7}}}] | ||
+ | }} }} {{#switch:{{{8|}}} | ||
+ | | {{{8}}} = {{#switch:{{#titleparts:{{{8}}}|1|2}} | ||
+ | | = {{#switch:{{#titleparts:{{{8}}}|2|2}} | ||
+ | | = {{#iferror:{{#expr:{{{8}}}}}|[http://youtube.com/watch?v={{{8}}}]|[http://vimeo.com/{{{8}}}] }} | ||
+ | | [{{{8}}}] }} | ||
+ | | [http://{{{8}}}] | ||
+ | }} }} {{#switch:{{{9|}}} | ||
+ | | {{{9}}} = {{#switch:{{#titleparts:{{{9}}}|1|2}} | ||
+ | | = {{#switch:{{#titleparts:{{{9}}}|2|2}} | ||
+ | | = {{#iferror:{{#expr:{{{9}}}}}|[http://youtube.com/watch?v={{{9}}}]|[http://vimeo.com/{{{9}}}] }} | ||
+ | | [{{{9}}}] }} | ||
+ | | [http://{{{9}}}] | ||
}} }} | }} }} | ||
</span><noinclude> | </span><noinclude> | ||
Linje 25: | Linje 61: | ||
* http://vimeo.com/ (tal-parameter) | * http://vimeo.com/ (tal-parameter) | ||
=== Eksempel === | === Eksempel === | ||
− | <nowiki>{{video|dr.dk/ | + | <nowiki> |
+ | {{video|dr.dk/video|62PnswnwpwQ|229120970|nA8qan99zSQ|iuP7zV8T5hs|//dr.dk/video1|http://dr.dk/video2}} | ||
+ | </nowiki> | ||
− | {{video|dr.dk/ | + | {{video|dr.dk/video|62PnswnwpwQ|229120970|nA8qan99zSQ|iuP7zV8T5hs|//dr.dk/video1|http://dr.dk/video2}} |
[[kategori:Teknikskabelon]]</noinclude> | [[kategori:Teknikskabelon]]</noinclude> |
Versionen fra 24. jun 2018, 17:33
Anvendelse
Indsættes i bl.a. vrag-skabelonerne {{sk}}
og {{ub}}
med op til 9 parametre, som henviser til video-link på følgende måde:
- http://....... (internet-link adskilt med mindst ét '/', kan starte med eller uden '//')
- http://youtube.com/watch?v= (ikke tal-parameter)
- http://vimeo.com/ (tal-parameter)
Eksempel
{{video|dr.dk/video|62PnswnwpwQ|229120970|nA8qan99zSQ|iuP7zV8T5hs|//dr.dk/video1|http://dr.dk/video2}}