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
imported>LostSnowDust
No edit summary
Edited parser function to detect youtube embed instead of <youtube> tag lol cross fingers
 
(6 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<infobox>
<infobox>
   <title source="title1">
   <title source="title">
     <default>{{PAGENAME}}</default>
     <default>{{PAGENAME}}</default>
   </title>
   </title>
   <image source="image1">
   <data source="image">
     <caption source="caption1"/>
     <caption source="caption1"/>
   </image>
   </data>
   <data source="publish_date">
   <data source="publish_date">
     <label>Publish date</label>
     <label>Publish date</label>
Line 15: Line 15:
     <label>Viewers</label>
     <label>Viewers</label>
   </data>
   </data>
   <data> source="viewers">
   <data source="likes">
   <label>Likes</label>
   <label>Likes</label>
   </data>
   </data>
Line 31: Line 31:
Example usage:<pre>
Example usage:<pre>
{{Video
{{Video
|title1=Example
|title=Example
|image1=Example
|image=<youtube width="250" height="170">VIDEOID/URL</youtube>
|caption1=Example
|caption1=Example
|publish_date=Example
|publish_date=Example
|channel=Example
|channel=Example
|game=Example
|viewers=Example
|viewers=Example
}}
}}
</pre>
</pre>
</noinclude>
</noinclude>
{{#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
}}