Difference between revisions of "Template:VidExpand"

From LGPedia
Jump to: navigation, search
m (Some minor fixes / User-css seems to be turned off - it's on OwenIsCool now (my css hero :D))
m
 
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly>[[{{{name|ERROR: VIDEO NAME MISSING}}}]] {{Init|{{{blogger}}}}} [[#{{{name|ERROR: VIDEO NAME MISSING}}}|<span title="Click to expand">&nabla;</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 (except in IE)">&nabla;</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}}}]]
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;">&Delta;</span>]]
 
|}</div></includeonly>
 
|}</div></includeonly>
<noinclude>'''WARNING: THIS TEMPLATE IS NOT YET OPERATIONAL - DO NOT USE UNTIL THIS NOTICE WAS REMOVED. (NEEDS GLOBAL CSS CLASS.)'''
+
<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: &nabla;.<br>
 
+
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.
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: &nabla;.<br>
+
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==
 
==Usage==
 
<pre>
 
<pre>
Line 56: Line 54:
 
|url=http://www.lonelygirl15.com/?p=211
 
|url=http://www.lonelygirl15.com/?p=211
 
}}</li></ol>
 
}}</li></ol>
</noinclude>
+
[[Category:Templates|{{PAGENAME}}]]</noinclude>

Latest revision as of 15:47, 8 April 2008

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.

  1. First Blog / Dorkiness Prevails LG
    First Blog / Dorkiness Prevails First Blog / Dorkiness Prevails
    So, I finally got a webcam and got it working (ugh, harder than I thought...). Hope you like it :)
    Blogger: Bree - Date posted: June 16th, 2006 - Watch Δ
  2. The Human Ransom DB
    The Human Ransom The Human Ransom
    Daniel here on Bree's account. I guess she showed up with Jonas to get me back. I had some help editing this video, it's all still a blur...
    Blogger: Daniel - Date posted: February 10th, 2007 - Watch Δ
  3. Alex Is... JTKO
    Alex Is... Alex Is...
    I saw Bree's video and Daniel and I got the hell out of there. It's all kind of a blur and I found out some crazy info I can't even process right now
    Blogger: Jonas - Date posted: March 17th, 2007 - Watch Δ