Template:VideoGallery/sandbox/doc

What am I trying to accomplish in this template:VideoGallery's sandbox?

... to produce the familiar layout the VideoGallery has been doing. Compare below and ! Note the different random videos, the random logic in parameterless version is different and it may be an improvement.

Legacy compatibility
Videos like below still use the old template parameters, they will work fine. Non-YouTube videos are manually assigned with srv parameter to the correct service (apparently only DailyMotion) which is unlike in parameterless version.

Pros

 * Parameterless to prevent typo or tampering.
 * Reduce editing. Just copy/paste the video url and write caption!

Cons/Issues

 * Requires  to avoid issues with equal sign ("=") in template. Fun fact, most video urls have equal sign!
 * Listed in reverse order
 * Videos without caption will have empty caption:


 * Using unmatched (or perhaps any) double open square brackets breaks this template: