Template:Video: Difference between revisions

From DanTDM Wiki
Jump to navigation Jump to search
m Video pages without the <youtube> tag now displayed under Category:Video pages with no video tag
Edited parser function to detect youtube embed instead of <youtube> tag lol cross fingers
 
(One intermediate revision by the same user not shown)
Line 42: Line 42:
</noinclude>
</noinclude>


{{#if: {{#pos: {{{image|}}} | <youtube }} | | [[Category:Video pages with no video tag]] }}
{{#if: {{{image|}}} |
  {{#if: {{#pos: {{{image}}} | UNIQ--youtube- }}
    |
    [[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
}}