Difference between revisions of "Template:Vid"

From LGPedia
Jump to: navigation, search
(font-sizes again, as well as some fixes for my very favorite piece of -- err, browser)
(I would like to point out that this has worked flawlessly in FF from the start...only Internet Crapsplorer is being a bitch.)
Line 1: Line 1:
<includeonly><div style="background-color: #{{#ifeq: {{{new}}} | yes |f5f49d|{{ #if: {{#ifeq: {{#ifexpr: {{{number}}} | true}} | true | {{{number|}}} |}}|{{ #ifexpr: ({{{number}}} mod 2) != 0 | e0e0e0 | e8e8e8 }}|dcd1e8}}}}; clear: both; position: relative; top: 0px; left: 0px; border-style: solid; border-width: 2px; border-color: #{{#ifeq: {{{new}}} | yes |dbda8c|{{ #if: {{#ifeq: {{#ifexpr: {{{number}}} | true}} | true | {{{number|}}} |}}|{{ #ifexpr: ({{{number}}} mod 2) != 0 | c7c7c7 | cfcfcf }}|c4bacf}}}}; padding: 2px; z-index: 1; <!--[if IE]>margin-left: 2px; margin-right: 2px;<![endif]-->">
+
<includeonly><div style="background-color: #{{#ifeq: {{{new}}} | yes |f5f49d|{{ #if: {{#ifeq: {{#ifexpr: {{{number}}} | true}} | true | {{{number|}}} |}}|{{ #ifexpr: ({{{number}}} mod 2) != 0 | e0e0e0 | e8e8e8 }}|dcd1e8}}}}; clear: both; position: relative; top: 0px; left: 0px; border-style: solid; border-width: 2px; border-color: #{{#ifeq: {{{new}}} | yes |dbda8c|{{ #if: {{#ifeq: {{#ifexpr: {{{number}}} | true}} | true | {{{number|}}} |}}|{{ #ifexpr: ({{{number}}} mod 2) != 0 | c7c7c7 | cfcfcf }}|c4bacf}}}}; padding: 2px; z-index: 1;">
 
{{#if: {{{date|}}} | <div style="position: absolute; top: -1.5em; right: 0px;">'''{{{date}}}'''</div> |}}
 
{{#if: {{{date|}}} | <div style="position: absolute; top: -1.5em; right: 0px;">'''{{{date}}}'''</div> |}}
<div style="z-index: 2;">{{#ifeq: {{{new}}} | yes |<div style="float: left;">'''NEW:'''&nbsp;</div>|{{#if: {{{number|}}} |<div style="float: left;">'''{{{number}}}.'''&nbsp;</div>|}}}} {{#if: {{{blogger|}}} |<div style="float: right;">{{init|{{{blogger}}}}}</div>|}}'''{{ #ifexist: {{{name}}} | [[{{{name}}}]] | {{{name}}} }}'''</div>
+
<div style="z-index: 2;">{{#ifeq: {{{new}}} | yes |<div style="float: left;">'''NEW:'''&nbsp;</div>|{{#if: {{{number|}}} |<div style="float: left; z-index: 2;">'''{{{number}}}.'''&nbsp;</div>|}}}} {{#if: {{{blogger|}}} |<div style="float: right; z-index: 2;">{{init|{{{blogger}}}}}</div>|}}'''{{ #ifexist: {{{name}}} | [[{{{name}}}]] | {{{name}}} }}'''</div>
 
<div style="clear: both; z-index: 2;">{{#if: {{{image|}}} | [[Image:{{{image}}}|right|100px]]|}}{{#if: {{{description|}}} | {{{description}}} |}}</div>
 
<div style="clear: both; z-index: 2;">{{#if: {{{image|}}} | [[Image:{{{image}}}|right|100px]]|}}{{#if: {{{description|}}} | {{{description}}} |}}</div>
<div style="clear: both; z-index: 2;">{{#if: {{{faction|}}} |<div style="float: left; font-size: 85%;">'''Faction:''' {{{faction}}}</div>|}}{{#if: {{{status|}}} |<div style="float: right; font-size: 85%;">'''Status:''' {{{status}}}</div>|}}</div>
+
<div style="clear: both; z-index: 2;">{{#if: {{{faction|}}} |<div style="float: left; font-size: 85%; z-index: 2;">'''Faction:''' {{{faction}}}</div>|}}{{#if: {{{status|}}} |<div style="float: right; font-size: 85%; z-index: 2;">'''Status:''' {{{status}}}</div>|}}</div>
 
<div style="clear: both; z-index: 2; font-size: x-small;">{{#if: {{{url|}}} | watch at {{{url}}}|}} {{#if: {{{forumurl|}}} | ''or'' [{{{forumurl}}} discuss at forum]|}}</div>
 
<div style="clear: both; z-index: 2; font-size: x-small;">{{#if: {{{url|}}} | watch at {{{url}}}|}} {{#if: {{{forumurl|}}} | ''or'' [{{{forumurl}}} discuss at forum]|}}</div>
 
</div></includeonly>
 
</div></includeonly>

Revision as of 23:45, 8 October 2007

This is the template used on the Main Page to display the videos in the "Latest Developments" column. Follow the advice in that page's source to correctly update it.

Usage

{{Vid
|date         =
|name         =
|number       =
|blogger      =
|image        =
|description  = 
|url          =
|forumurl     = 
|faction      =
|status       =
}}

Optionally, if this is the latest video in the series, you can add

|new=yes

after the status line.