User:Saibo/thumbtimefinder
Quick and simple usage
editPut in the name of the file (with or without "File:" prefix (without works for all file names)). Example: CNC Plasma Cutting.ogv
Usage
editPaste the following templates to any page, fill in and hit preview - saving not necessary. The thumbtime used is displayed as caption.
- Use the best thumb's value in your video link:
[[File:blafoo.ogv|thumb|thumbtime=h:mm:ss.t]]
- When using it for MOTD, go to the Media of the Day items page, next to the video for which you'd like to change the thumbnail click "Expand" next to "Advanced options", open the redlink (" Template:Motd/…"), then enter the thumbtime in
h:mm:ss.t
format (e.g.0:00:22.0
), then click save. If you reload the MOTD page, the thumbnail should be changed.
Filename
editAccepts the name of the file without the "File:" namespace prefix. In most cases also the file name with "File:" prefix should work (unless you hit a limitation of {{Str right}}).
Granularity: Seconds
edit{{User:Saibo/thumbtimefinder|filename=blafoo.ogv|minute=1}}
... to display all (60) thumbs for
- 1:00
- 1:01
- 1:02
- 1:03
- …
- 1:59
Granularity: 0.1 Seconds
edit{{User:Saibo/thumbtimefinder|filename=blafoo.ogv|minute=1|second-ten=3}}
... to display all (100) thumbs for
- 1:30.0
- 1:30.1
- 1:30.2
- 1:30.3
- …
- 1:39.9
Additional thumb parameters
edit{{User:Saibo/thumbtimefinder|filename=blafoo.ogv|minute=1|second-ten=3|thumbparams={{!}}640px}}
Additional thumb parameters may be added by using the parameter |thumbparams=
. Encode |
with {{!}}
. =
may need to be encoded, too.
In this example it is used to set the thumb size. Be aware that regardless of the thumb size set your browser (with the current software) always gets the same size from the server (the original video size) - it is just scaled down in your browser.