Template talk:YouTube: Difference between revisions

Jump to navigation Jump to search
No edit summary
No edit summary
Line 6: Line 6:
:: 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]])
:: 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)
:::*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 you would 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]])
::::: 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).
:::::: 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]])
:::*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)
:::*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]])
::::: 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]])