Template:VideoGallery/sandbox/doc: Difference between revisions

From Dolphin Emulator Wiki
Jump to navigation Jump to search
(→‎Double Open Brackets: We shouldn't make presumptions about peoples YouTube titles)
mNo edit summary
Line 1: Line 1:
== Regular ==
What am I trying to accomplish in this [[template:VideoGallery]]'s sandbox?
{{VideoGallery/sandbox|{{#vardefineecho:videogallery|
<pre>
https://www.youtube.com/watch?v=sam9lDWDvXE Xenoblade JP HD Gameplay 1A (Dolphin Emulator @ 720p)
{{VideoGallery|{{#vardefineecho:videogallery|
https://www.youtube.com/watch?v=vKjjS8SRG9I Xenoblade JP HD Gameplay 1B (Dolphin Emulator @ 720p)
https://www.youtube.com/watch?v=wjzv0KtDXOA Xenoblade JP 1 (Dolphin Emulator @ 720p)
https://www.youtube.com/watch?v=f_0IbQrezTo Xenoblade JP HD Gameplay 2 (Dolphin Emulator @ 720p)
https://www.youtube.com/watch?v=tJtCp8rPXWg Xenoblade PAL 1 [Dolphin Emulator @ 1080p]
https://www.youtube.com/watch?v=_an7OMeK2nA Xenoblade JP HD Gameplay 3 (Dolphin Emulator @ 720p)
http://www.dailymotion.com/video/x1k9hnl Cocoto Platform Jumper HD on Dolphin Emulator (Widescreen Hack) part1
https://www.youtube.com/watch?v=wjzv0KtDXOA Xenoblade JP HD Gameplay 4 (Dolphin Emulator @ 720p)
https://www.youtube.com/watch?v=_VLNa9PKT0Y Xenoblade PAL 2 (Dolphin Emulator @ 720p)
https://www.youtube.com/watch?v=tJtCp8rPXWg Xenoblade PAL HD Intro  (Dolphin Emulator @ 1080p)
https://www.youtube.com/watch?v=dp3QnvFn_Hc Xenoblade PAL 3 (Dolphin Emulator @ 720p)
https://www.youtube.com/watch?v=_VLNa9PKT0Y Xenoblade PAL HD Gameplay 1 (Dolphin Emulator @ 720p)
https://www.youtube.com/watch?v=dp3QnvFn_Hc Xenoblade PAL HD Gameplay 2 (Dolphin Emulator @ 720p)
https://www.youtube.com/watch?v=EzSDE3NOq_Y Xenoblade PAL HD Gameplay 1 - Near start of game (Dolphin Emulator @ 720p)
https://www.youtube.com/watch?v=oGcSdu3t8CQ Xenoblade PAL HD Gameplay 2 - Continuation of Gameplay 1 (Dolphin Emulator @ 720p)
https://www.youtube.com/watch?v=5Ywd5T5y91E Xenoblade PAL HD - A protective mother (Dolphin Emulator @ 720p)
https://www.youtube.com/watch?v=3Fvdc_LuWB4 Xenoblade Intro HD 1080p (Dolphin)
}}}}
}}}}
</pre>
... 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.


== Empty Template ==
{{VideoGallery/sandbox|{{#vardefineecho:videogallery|
{{VideoGallery/sandbox|{{#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)
}}}}
}}}}


== Singular video ==
== Legacy compatibility ==
Videos like below still use the old template parameters, they will work fine.
{{VideoGallery/sandbox
|vid1=wjzv0KtDXOA|cap1=Xenoblade JP 1 (Dolphin Emulator @ 720p)
|vid2=tJtCp8rPXWg|cap2=Xenoblade PAL 1 [Dolphin Emulator @ 1080p]
|srv3=dailymotion|vid3=x1k9hnl|cap3=Cocoto Platform Jumper HD on Dolphin Emulator (Widescreen Hack) part1
|vid4=_VLNa9PKT0Y|cap4=Xenoblade PAL 2 (Dolphin Emulator @ 720p)
|vid5=dp3QnvFn_Hc|cap5=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 <code><nowiki>{{#vardefineecho:videogallery|}}</nowiki></code> to avoid issues with equal sign ("=") in template. Fun fact, most video urls have equal sign!
* Video without caption will have erratic caption, as seen in [[#No captions]].
* Listed ascending
 
== Quirks ==
=== Empty Template ===
{{VideoGallery/sandbox|{{#vardefineecho:videogallery|
{{VideoGallery/sandbox|{{#vardefineecho:videogallery|
https://www.youtube.com/watch?v=sam9lDWDvXE Xenoblade JP HD Gameplay 1A (Dolphin Emulator @ 720p)
}}}}
}}}}


== No caption ==
=== No caption ===
{{VideoGallery/sandbox|{{#vardefineecho:videogallery|
{{VideoGallery/sandbox|{{#vardefineecho:videogallery|
https://www.youtube.com/watch?v=sam9lDWDvXE
https://www.youtube.com/watch?v=sam9lDWDvXE
}}}}
}}}}


== Double Open Brackets ==
=== Double Open Brackets ===
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)
}}}}
}}}}
== Legacy compatibility ==
Videos like below still use the old template parameters, they will work fine.
{{VideoGallery/sandbox
|vid1=sam9lDWDvXE|cap1=Xenoblade JP HD Gameplay 1A [Dolphin Emulator @ 720p]
|vid2=vKjjS8SRG9I|cap2=Xenoblade [JP] HD Gameplay 1B [Dolphin Emulator @ 720p]
|vid3=f_0IbQrezTo|cap3=Xenoblade JP HD Gameplay 2 [Dolphin Emulator @ 720p]
|vid4=_an7OMeK2nA|cap4=Xenoblade JP HD Gameplay 3 [Dolphin Emulator @ 720p]
|vid5=wjzv0KtDXOA|cap5=Xenoblade JP HD Gameplay 4 [Dolphin Emulator @ 720p]
|vid6=tJtCp8rPXWg|cap6=Xenoblade [PAL] [HD] Intro  [Dolphin Emulator @ 1080p]
|vid7=_VLNa9PKT0Y|cap7=Xenoblade PAL HD Gameplay 1 [Dolphin Emulator @ 720p]
|vid8=dp3QnvFn_Hc|cap8=Xenoblade PAL HD Gameplay 2 [Dolphin Emulator @ 720p]
|vid9=EzSDE3NOq_Y|cap9=Xenoblade PAL HD Gameplay 1 - Near start of game (Dolphin Emulator @ 720p)
|vid10=oGcSdu3t8CQ|cap10=Xenoblade PAL HD Gameplay 2 - Continuation of Gameplay 1 (Dolphin Emulator @ 720p)
|vid11=5Ywd5T5y91E|cap11=Xenoblade [PAL] HD - A protective mother [Dolphin Emulator @ 720p]
|vid12=3Fvdc_LuWB4|cap12=Xenoblade Intro HD 1080p (Dolphin)
}}

Revision as of 02:33, 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.

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!
  • Video without caption will have erratic caption, as seen in #No captions.
  • Listed ascending

Quirks

Empty Template


No caption


Double Open Brackets

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) }}}}