Template talk:YouTube: Difference between revisions

Jump to navigation Jump to search
(Outdated Talk clean-up)
Line 1: Line 1:
What does this do exactly? EmbedVideo does more than just youtube. Does this make it easier? You didn't exactly put alot of documentation... - [[User:MaJoR|MaJoR]] ([[User talk:MaJoR|talk]]) 00:48, 5 November 2012 (CET)
:Ninja'd. Nice work on the documentation. One comment though. Can you add an example of the completed code, start to finish, as it would appear on the page? It would help make it a little clearer to see it all together in code form. - [[User:MaJoR|MaJoR]] ([[User talk:MaJoR|talk]]) 00:53, 5 November 2012 (CET)
:: I'll update when I have more free time... For now, div clear must be put only after the latest video. See source code of [[1080° Avalanche]] to see the proper usage with multiple videos - [[User:Jhonn|Jhonn]] ([[User talk:Jhonn|talk]])
I went on ahead and updated [[Xenoblade Chronicles]]. I was going to ask if you think having tons and tons of thumbnails was an issue. But uh, while doing it, I have a weird problem. At my laptop's resolution (1366x768), it [https://dl.dropbox.com/u/519564/screwing-up.jpg messes up the thumbnail spacing]. Does it happen for you? Apparently it's a problem with the template, cause when I used the old embedvideo style, it worked correctly. Check the [[Template:EmbedVideo/sandbox|sandbox]]. - [[User:MaJoR|MaJoR]] ([[User talk:MaJoR|talk]]) 09:30, 5 November 2012 (CET)
: Figured out. In the sandbox, the alignment issue occur when the video title have more than two lines. Using embedvideo style, everything appears fine because the title are only one line. I can reproduce the issue even with embedvideo style if I link the video URL with the title or if i add garbage on the title to make the first and second videos title bigger than 2 lines... I'll see what I can do regarding this - [[User:Jhonn|Jhonn]] ([[User talk:Jhonn|talk]])
:: Ok, isn't a simple issue. For now, the only workaround I have found is putting a <code>&lt;div style="clear:left"&gt;&lt;/div&gt;</code> after the video that cause the issue (in case of Xenoblade, the third video)... - [[User:Jhonn|Jhonn]] ([[User talk:Jhonn|talk]])
:::*Related to the heights, we either need to pad the height to keep 2/3 line entries the same height as 1 line ones, or trim the titles to fit 1 line. I can try to work out some CSS magic to do that. - [[User:Kolano|Kolano]] ([[User talk:Kolano|talk]]) 20:40, 8 November 2012 (CET)
::::: Where would you implement the CSS style? The "final" output is entirely handled by the wiki plugin itself, I'm unsure if we can edit it's style without changing the plugin source. It wouldn't be hard, but I think only [[User:Parlane|Parlane]] have access to the server-side - [[User:Jhonn|Jhonn]] ([[User talk:Jhonn|talk]])
:::::: I haven't looked at the output in detail, but had hoped there may be a id or class that would enable easier styling. At the worst case in a div tag surrounding the embed (i.e. we add a little bubble container, with consistent height to each video. Thinking about how to avoid unnecessary gaps for video sets that don't use the space though).
::::::: So, we're lucky. There is a div with the class "thumbcaption" that we can inject the CSS code. Apparently it's used for images thumbnails too, so, if we have a hybrid media gallery (with videos and images), we can make caption size fixed to two lines only (seems reasonable for me), and then, truncate the rest. In [[MediaWiki:Common.css]] you'll probably find CSS style defined for this class, so, the editing wouldn't be hard... - [[User:Jhonn|Jhonn]] ([[User talk:Jhonn|talk]])
:::::::: Text now get automatically truncated after the first line, even on [[Template:Image]] - [[User:Jhonn|Jhonn]] ([[User talk:Jhonn|talk]])
:::*The issue with handling <code>&lt;div style="clear:left"&gt;&lt;/div&gt;</code> may be better handled by a parameter. If an optional 4th <last> parameter is specified the template would output the clear div post the embed. How's that sound? Then the instructions would simplify to, if yours is the last video in a list include the fourth <last> parameter. - [[User:Kolano|Kolano]] ([[User talk:Kolano|talk]]) 20:40, 8 November 2012 (CET)
::::: Really liked this... <strike>I'll update the template and documentation to get the 3th parameter soon</strike> (already updated), I'm still working in a way to randomize 3 videos and add the others as links, as you suggested in [[Project:General Discussions]] - [[User:Jhonn|Jhonn]] ([[User talk:Jhonn|talk]])
== Detecting Broken Videos ==
== Detecting Broken Videos ==
Would it be possible to detect when a broken link is used and add some category to pages with broken links? Currently the pane seems to load an all black preview image, not clear if there's meta-data allowing it to id'd as non-existent.[[User:Kolano|Kolano]] ([[User talk:Kolano|talk]]) 21:43, 29 May 2013 (CEST)
Would it be possible to detect when a broken link is used and add some category to pages with broken links? Currently the pane seems to load an all black preview image, not clear if there's meta-data allowing it to id'd as non-existent.[[User:Kolano|Kolano]] ([[User talk:Kolano|talk]]) 21:43, 29 May 2013 (CEST)
:I think not, the thumbnail is generated by a parser function, so, whatever you put, the parser function will try to load a thumbnail based on what was specified when calling the function and won't give any feedback parameter/info that could be used to tag it as non-existant... [[User:Jhonn|Jhonn]] ([[User talk:Jhonn|talk]])
:I think not, the thumbnail is generated by a parser function, so, whatever you put, the parser function will try to load a thumbnail based on what was specified when calling the function and won't give any feedback parameter/info that could be used to tag it as non-existant... [[User:Jhonn|Jhonn]] ([[User talk:Jhonn|talk]])