Difference between revisions of "Template:VidExpand"
From LGPedia
m (This template can be used now.) |
(Added collapsing) |
||
Line 1: | Line 1: | ||
− | <includeonly>[[{{{name|ERROR: VIDEO NAME MISSING}}}]] {{Init|{{{blogger}}}}} [[#{{{name|ERROR: VIDEO NAME MISSING}}}|<span title="Click to expand (Firefox only)">∇</span>]]<br><div id="{{{name|ERROR: VIDEO NAME MISSING}}}" style="border: #668CFF 2px solid; background: #eeeeee; min-height: 60px;" class="vidExpandDiv"> | + | <includeonly>[[{{{name|ERROR: VIDEO NAME MISSING}}}]] {{Init|{{{blogger}}}}} [[#{{{name|ERROR: VIDEO NAME MISSING}}}|<span title="Click to expand (Firefox only)">∇</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;" 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}}}]] | ||
Line 6: | Line 6: | ||
|{{{description|ERROR: DESCRIPTION MISSING}}} | |{{{description|ERROR: DESCRIPTION MISSING}}} | ||
|- | |- | ||
− | |style="font-size: x-small; text-align: right;"|Blogger: [[{{{blogger|ERROR: BLOGGER MISSING}}}]] - Date posted: {{{date|ERROR: DATE MISSING}}} - [{{{url|ERROR:URL MISSING}}} Watch] | + | |style="font-size: x-small; text-align: right;"|Blogger: [[{{{blogger|ERROR: BLOGGER MISSING}}}]] - Date posted: {{{date|ERROR: DATE MISSING}}} - [{{{url|ERROR:URL MISSING}}} Watch] [[#{{{name|ERROR: VIDEO NAME MISSING}}}-collapse|<span title="Collapse" style="position: absolute; bottom: -5px; right: 1px;">Δ</span>]] |
|}</div></includeonly> | |}</div></includeonly> | ||
<noinclude>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: ∇.<br> | <noinclude>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: ∇.<br> |
Revision as of 16:44, 19 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, 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 Firefox users 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.