Difference between revisions of "Template:Vid"

From LGPedia
Jump to: navigation, search
m
(adding date template)
 
(35 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<includeonly>
+
<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; zoom: 1; margin-top: 1.6em;">
{{#if: {{{date|}}} | '''{{{date}}}'''<br> |}}
+
{{#if: {{{date|}}} | <div style="position: absolute; top: -1.6em; right: 0px;">'''{{date|{{{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>
|- valign="top"
+
<div style="clear: both;">{{#if: {{{image|}}} | [[Image:{{{image}}}|right|100px]]|}}{{#if: {{{description|}}} | {{{description}}}{{clr}}<span style="font-size: x-small;">{{#if: {{{url|}}} | Watch at {{{url}}}|}} {{#if: {{{forumurl|}}} | ''or'' [{{{forumurl}}} discuss at forum]|}}</span> |}}</div>
| {{imagelink|title={{{blogger}}}|link={{{blogger}}}|width=40px|height=20px|image=Icon-{{{blogger}}}.png}} || {{#if: {{{image|}}} | [[Image:{{{image}}}|right|100px]]|}}
+
</div></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.
'''[[{{{name}}}]]''' {{#if: {{{description|}}} |  
+
&mdash; {{{description}}} |}}
+
<br>
+
<small>{{#if: {{{url|}}} | watch at {{{url}}}|}} {{#if: {{{forumurl|}}} | ''or'' [{{{forumurl}}} discuss at forum]|}}</small>
+
|}
+
</includeonly>
+
 
+
<noinclude>
+
<pre>
+
 
==Usage==
 
==Usage==
 +
<pre>
 
{{Vid
 
{{Vid
 
|date        =
 
|date        =
 
|name        =
 
|name        =
 +
|number      =
 
|blogger      =
 
|blogger      =
 
|image        =
 
|image        =
Line 24: Line 17:
 
}}
 
}}
 
</pre>
 
</pre>
 
+
Optionally, if this is the latest video in the series, you can add
 +
|new=yes
 +
after the status line.
 
[[Category:Main Page templates]]</noinclude>
 
[[Category:Main Page templates]]</noinclude>

Latest revision as of 06:02, 14 March 2008

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     = 
}}

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

|new=yes

after the status line.