A Year's in review of the independent DanTDM Wiki Learn More >, Thank you!

Template:Video: Difference between revisions

From DanTDM Wiki
Jump to navigation Jump to search
Hopefully this works sob
Edited parser function to detect youtube embed instead of <youtube> tag lol cross fingers
 
Line 43: Line 43:


{{#if: {{{image|}}} |
{{#if: {{{image|}}} |
   {{#ifeq: {{#pos: {{{image}}} | <youtube }} |
   {{#if: {{#pos: {{{image}}} | UNIQ--youtube- }}
    | [[Category:Video pages with no video tag]]
     |
     |
    [[Category:Video pages with no video tag]]
   }}
   }}
| [[Category:Video pages with no video tag]]
| [[Category:Video pages with no video tag]]
}}
}}

Latest revision as of 06:08, 29 May 2026

Example usage:

{{Video
|title=Example
|image=<youtube width="250" height="170">VIDEOID/URL</youtube>
|caption1=Example
|publish_date=Example
|channel=Example
|game=Example
|viewers=Example
}}