Difference between revisions of "Template:VidExpand"
(Added a small margin to the right of the box, to improve visual integration) |
(chnged firefox only to except IE, since it works in almost every other browser) |
||
Line 1: | Line 1: | ||
− | <includeonly>[[{{{name|ERROR: VIDEO NAME MISSING}}}]] {{Init|{{{blogger}}}}} [[#{{{name|ERROR: VIDEO NAME MISSING}}}|<span title="Click to expand ( | + | <includeonly>[[{{{name|ERROR: VIDEO NAME MISSING}}}]] {{Init|{{{blogger}}}}} [[#{{{name|ERROR: VIDEO NAME MISSING}}}|<span title="Click to expand (except in IE)">∇</span>]]<span id="{{{name|ERROR: VIDEO NAME MISSING}}}-collapse"></span><br><div id="{{{name|ERROR: VIDEO NAME MISSING}}}" style="border: #668CFF 2px solid; background: #eeeeee; min-height: 60px; position: relative; top: 0px; left: 0px; margin-right: 8px;" class="vidExpandDiv"> |
{|width="100%" | {|width="100%" | ||
|rowspan="3" width="80px"|[[Image:{{{image|Channel icon.jpg}}}|80px|{{{name|ERROR: VIDEO NAME MISSING}}}]] | |rowspan="3" width="80px"|[[Image:{{{image|Channel icon.jpg}}}|80px|{{{name|ERROR: VIDEO NAME MISSING}}}]] |
Revision as of 19:07, 25 March 2007
This template will generate an episode-link like the ones on List of Lonelygirl15 videos, i.e. in the format [Name] [Blogger-Icon] - however, it will add another icon behind it: ∇.
This button, when clicked from within a browser supporting the :target pseudo-class (like Firefox, Camino, Opera, Safari, etc), will expand a block below the link showing episode data like image, description etc. Users with browsers not supporting :target (like Internet Explorer) will simply not be able to expand the links. This means, Internet Explorer users get the same as always, and users of just about every other browser get even more. No drawbacks for anyone.
Usage
{{VidExpand |name= |blogger= |image= |description= |date= |url= }}
- name - name of this episode, the exact page title of its page
- blogger - who posted this episode
- image - name of a screencap from this episode (only the filename, no Image: prefix)
- description - episode description
- date - date when this video was posted
- url - full url to the video
Examples
The examples below use the live template - you can use them to test whether or not this template works for you.