Difference between revisions of "Template:VidExpand"

From LGPedia
Jump to: navigation, search
(will test this with user-based CSS and, once it works flawlessly, ask for the CSS to be included globally.)
 
m (Some minor fixes / User-css seems to be turned off - it's on OwenIsCool now (my css hero :D))
Line 1: Line 1:
<includeonly>[[{{{name|ERROR: VIDEO NAME MISSING}}}]] {{Init|{{{blogger}}}}} [[#{{{name|ERROR: VIDEO NAME MISSING}}}|<span title="Click to expand">&darr;</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">&nabla;</span>]]<br><div id="{{{name|ERROR: VIDEO NAME MISSING}}}" style="border: #668CFF 2px solid; background: #eeeeee; min-height: 60px;" 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 8: Line 8:
 
|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]
 
|}</div></includeonly>
 
|}</div></includeonly>
<noinclude>'''WARNING: THIS TEMPLATE IS NOT YET OPERATIONAL - DO NOT USE UNTIL THIS NOTICE WAS REMOVED. (NEEDS GLOBAL CSS CLASS.)'''<br>
+
<noinclude>'''WARNING: THIS TEMPLATE IS NOT YET OPERATIONAL - DO NOT USE UNTIL THIS NOTICE WAS REMOVED. (NEEDS GLOBAL CSS CLASS.)'''
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: &darr; (to be replaced with a graphical icon).<br>
+
 
 +
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.
 
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==
Line 44: Line 45:
 
|image=B_and_d.JPG
 
|image=B_and_d.JPG
 
|description=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...
 
|description=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...
|date=http://www.lonelygirl15.com/?p=184
+
|date=February 10th, 2007
|url=February 10th, 2007
+
|url=http://www.lonelygirl15.com/?p=184
 
}}</li>
 
}}</li>
 
<li>{{VidExpand
 
<li>{{VidExpand

Revision as of 03:16, 19 March 2007

WARNING: THIS TEMPLATE IS NOT YET OPERATIONAL - DO NOT USE UNTIL THIS NOTICE WAS REMOVED. (NEEDS GLOBAL CSS CLASS.)

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.

  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 Δ