Difference between revisions of "Template:Vid"

From LGPedia
Jump to: navigation, search
(right?)
(I'm trying to improve the news visually, the main page might look funky for a few minutes.)
Line 1: Line 1:
<includeonly>{{#ifeq: {{{new}}} | yes  
+
<includeonly><div style="background-color: #{{#ifeq: {{{new}}} | yes |f5f49d|{{ #if: {{#ifeq: {{#ifexpr: {{{number}}} | true}} | true | {{{number|}}} |}}|{{ #ifexpr: ({{{number}}} mod 2) != 0 | dbdbdb | F5F5F5 }}|c2c2c2}}}}; clear: both;">
| {{#if: {{{image|}}} | [[Image:{{{image}}}|right|100px]]|}}
+
<div style="">{{#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>
'''Newest video:''' '''[[{{{name}}}]]''' {{#if: {{{blogger|}}} |({{init|{{{blogger}}}}})|}} {{#if: {{{description|}}} | &mdash; {{{description}}} |}}
+
<div style="clear: both;">{{#if: {{{image|}}} | [[Image:{{{image}}}|right|100px]]|}}{{#if: {{{description|}}} | {{{description}}} |}}</div>
| {{#if: {{{date|}}} | '''{{{date}}}'''<br> |}}{{#if: {{{image|}}} | [[Image:{{{image}}}|right|100px]]|}}
+
<div style="clear: both;">{{#if: {{{faction|}}} |<div style="float: left;">'''Faction:''' {{{faction}}}</div>|}}{{#if: {{{status|}}} |<div style="float: right;">'''Status:''' {{{status}}}</div>|}}</div>
{{#if: {{{blogger|}}} | {{init|{{{blogger}}}}} &mdash;&nbsp;|}}'''[[{{{name}}}]]''' {{#if: {{{description|}}} | &mdash; {{{description}}} |}}
+
<div style="clear: both;">{{#if: {{{date|}}} | <div style="float:right;">'''{{{date}}}'''</div> |}}{{#if: {{{url|}}} | watch at {{{url}}}|}} {{#if: {{{forumurl|}}} | ''or'' [{{{forumurl}}} discuss at forum]|}}</div>
}}
+
</div></includeonly>
<br>
+
<span style="font-size: 85%">{{#if: {{{faction|}}} |'''Faction:''' {{{faction}}}|}}{{#if: {{{status|}}} | &nbsp;&nbsp;&ndash;&nbsp;&nbsp;'''Status:''' {{{status}}} <br>|}}</span>
+
<small>{{#if: {{{url|}}} | watch at {{{url}}}|}} {{#if: {{{forumurl|}}} | ''or'' [{{{forumurl}}} discuss at forum]|}}</small>{{#if: {{{new|}}} | <br clear="all"/> |}}</includeonly>
+
 
<noinclude>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.
 
<noinclude>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==
 
==Usage==
Line 14: Line 11:
 
|date        =
 
|date        =
 
|name        =
 
|name        =
 +
|number      =
 
|blogger      =
 
|blogger      =
 
|image        =
 
|image        =

Revision as of 22:58, 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.