Template:VideoGallery/sandbox/doc: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
mNo edit summary |
||
Line 1: | Line 1: | ||
__NOTOC__ | |||
What am I trying to accomplish in this [[template:VideoGallery]]'s sandbox? | What am I trying to accomplish in this [[template:VideoGallery]]'s sandbox? | ||
<pre> | <pre> | ||
Line 36: | Line 37: | ||
== Cons/Issues == | == Cons/Issues == | ||
* Requires <code><nowiki>{{#vardefineecho:videogallery|}}</nowiki></code> to avoid issues with equal sign ("=") in template. Fun fact, most video urls have equal sign! | * Requires <code><nowiki>{{#vardefineecho:videogallery|}}</nowiki></code> to avoid issues with equal sign ("=") in template. Fun fact, most video urls have equal sign! | ||
* Listed ascending | * Listed ascending | ||
* Video without caption will have erratic caption: | |||
{{VideoGallery/sandbox|{{#vardefineecho:videogallery| | {{VideoGallery/sandbox|{{#vardefineecho:videogallery| | ||
https://www.youtube.com/watch?v=sam9lDWDvXE | https://www.youtube.com/watch?v=sam9lDWDvXE | ||
}}}} | }}}} | ||
* Using unmatched (or perhaps any) double open square brackets breaks this template: | |||
Using unmatched (or perhaps any) double open square brackets breaks this template | |||
{{VideoGallery/sandbox|{{#vardefineecho:videogallery| | {{VideoGallery/sandbox|{{#vardefineecho:videogallery| | ||
https://www.youtube.com/watch?v=sam9lDWDvXE Xenoblade JP HD Gameplay 1A [[Dolphin Emulator @ 720p) | https://www.youtube.com/watch?v=sam9lDWDvXE Xenoblade JP HD Gameplay 1A [[Dolphin Emulator @ 720p) | ||
}}}} | }}}} |
Revision as of 02:38, 29 January 2018
What am I trying to accomplish in this template:VideoGallery's sandbox?
{{VideoGallery|{{#vardefineecho:videogallery| https://www.youtube.com/watch?v=wjzv0KtDXOA Xenoblade JP 1 (Dolphin Emulator @ 720p) https://www.youtube.com/watch?v=tJtCp8rPXWg Xenoblade PAL 1 [Dolphin Emulator @ 1080p] http://www.dailymotion.com/video/x1k9hnl Cocoto Platform Jumper HD on Dolphin Emulator (Widescreen Hack) part1 https://www.youtube.com/watch?v=_VLNa9PKT0Y Xenoblade PAL 2 (Dolphin Emulator @ 720p) https://www.youtube.com/watch?v=dp3QnvFn_Hc Xenoblade PAL 3 (Dolphin Emulator @ 720p) }}}}
... to produce the familiar layout the VideoGallery has been doing. Compare below and #Legacy compatibility! Note the different random videos, the random logic in parameterless version are different and it may be an improvement.
Legacy compatibility
Videos like below still use the old template parameters, they will work fine.
- Cocoto Platform Jumper HD on Dolphin Emulator (Widescreen Hack) part1
- Xenoblade PAL 3 (Dolphin Emulator @ 720p)
Pros
- Parameterless to prevent typo or tampering.
- Reduce editing. Just copy/paste the video url and write caption!
Cons/Issues
- Requires
{{#vardefineecho:videogallery|}}
to avoid issues with equal sign ("=") in template. Fun fact, most video urls have equal sign! - Listed ascending
- Video without caption will have erratic caption:
- Using unmatched (or perhaps any) double open square brackets breaks this template:
{{VideoGallery/sandbox|{{#vardefineecho:videogallery| https://www.youtube.com/watch?v=sam9lDWDvXE Xenoblade JP HD Gameplay 1A [[Dolphin Emulator @ 720p) }}}}