Template:Youtube: Difference between revisions

Jump to navigation Jump to search
Want an adless experience? Log in or Create an account.
fix for box + box style adding margin to all except the first.
(been wondering why videos weren't scaling correctly...turns out the code was quite broken. Updated to use Box instead of a table, and simplified the switch logic.)
(fix for box + box style adding margin to all except the first.)
Line 1: Line 1:
<includeonly>{{Box|{{#switch:{{{3|}}}|right=right|center=center|#default=left}}
<includeonly>{{Box|{{#switch:{{{3|}}}|right=right|center=center|#default=left}}|style="margin-top: 0px;"
| {{#widget:YouTube
| {{#widget:YouTube
   | {{#ifexpr:{{#len:{{{1}}}}}=11|id={{{1}}}|playlist={{{1}}}}}
   | {{#ifexpr:{{#len:{{{1}}}}}=11|id={{{1}}}|playlist={{{1}}}}}

Navigation menu