User talk:84user/Thumbnail
Watch Video template
[edit]This is a partial workaround for bugzilla:23160 "Theora video thumbnails corrupt".
A prototype template to display a chosen thumbnail for an audio or video file. This allows the user to choose any image as a thumbnail and not be restricted to the frames inside the video. For example, the user may wish to display a logo or explanatory label instead.
- thumbnail image could be empty
- file may be audio only, video only, or audio and video
Note that File:Test Cal ifps25fr25 q10.ogv was used to workaround incorrect thumbnail rendering in 2010, but in 2012 it was marked as duplicate and so might be deleted; the issue appears solvable after purging of File:Cal ifps25fr25 q10.ogv. Deleting probably pointless as it would only increase the disk space used.
Existing {{Listen}}
The above does not quite emulate the layout of the normal embedded media file.
This code:
{{User:84user/Thumbnail
| file = Test Cal ifps25fr25 q10.ogv
| image = Calibration-test-white.png
| align = left
}}
displays the following:
Here is some text preceding the thumbnail template.
Image info . Video info . Play video |
Here is some text following the thumbnail template.
Mockups
[edit]1. Image links to its own page as normal. Preceding text here.
Image info . Video info . Play video |
Postceding text here.
2. Image links to media page. Image and all links align right. Preceding text here.
Image info . Video info . Play video |
Postceding text here. The floating-around-image mode must be cancelled after this text with <br clear="all" /> or <br style="clear:both" />.
3. Image links to media page. Image and all links align left. Preceding text here.
Image info . Video info . Play video |
Postceding text here. The floating-around-image mode must be cancelled after this text with <br clear="all" /> or <br style="clear:both" />.
4. Image links to media page. Image and all links align right. Image is actual size, not a thumb. Preceding right-aligned image and text here.
Image info . Video info . Play video |
Postceding text here. The floating-around-image mode must be cancelled after this text with <br clear="all" /> or <br style="clear:both" />.
5. Image links to media page. Image and all links align right. Image is actual size, not a thumb. Preceding left-aligned image and text here.
Image info . Video info . Play video |
Postceding text here. The floating-around-image mode must be cancelled after this text with <br clear="all" /> or <br style="clear:both" />.
6. Image links to media page. Image box has no alignment. Image is actual size, not a thumb. Preceding left-aligned image and text here.
Image info . Video info . Play video |
Postceding text here. The floating-around-image mode must be cancelled after this text with <br clear="all" /> or <br style="clear:both" />.
Use cases
[edit]Image info . Video info . Play video |