Difference between revisions of "User:Kevin/Sandbox"

From LGPedia
Jump to: navigation, search
(Just screwing around with Template:PortalNews to allow Text Blogs to have a picture. (TextBlog.jpg))
 
Line 1: Line 1:
<includeonly><div style="position: relative; top: 0px; left: 0px; margin-bottom: 1em; clear: both;">{{#ifeq: {{{text}}} | yes | |
+
<includeonly><div style="position: relative; top: 0px; left: 0px; margin-bottom: 1em; clear: both;">  
 
<div style="position: absolute; top: 0px; right: 0px; background-color: #FFFFFF;"><div style="position: relative; top: -4px; right: -3px; background-color: #71B642; padding: 5px 4px 5px 4px;"><div style="border: 1px solid #FFFFFF;">[[Image:{{#if: {{{image|}}} |{{{image}}}|Lgpedia RESportal news nopic.gif}}|none|100px]]</div></div></div> }}
 
<div style="position: absolute; top: 0px; right: 0px; background-color: #FFFFFF;"><div style="position: relative; top: -4px; right: -3px; background-color: #71B642; padding: 5px 4px 5px 4px;"><div style="border: 1px solid #FFFFFF;">[[Image:{{#if: {{{image|}}} |{{{image}}}|Lgpedia RESportal news nopic.gif}}|none|100px]]</div></div></div> }}
 
<div style="background-color: #666; padding: 0.1em {{#ifeq: {{{text}}} | yes | 0.2em | 105px }} 0.1em 0.2em; border-bottom: 1px solid #FFFFFF;">{{#ifeq: {{{text}}} | yes | | {{#ifeq: {{{new}}} | yes |'''NEW:'''&nbsp;|{{#if: {{{number|}}} |'''{{{number}}}.'''&nbsp;|}}}} }}'''{{ #ifexist: {{{name}}} |[[{{#if: {{{link|}}}|{{{link}}}|{{{name}}}}}|{{color|#ccc|{{{name}}}}}]]|{{{name}}}}}'''</div>
 
<div style="background-color: #666; padding: 0.1em {{#ifeq: {{{text}}} | yes | 0.2em | 105px }} 0.1em 0.2em; border-bottom: 1px solid #FFFFFF;">{{#ifeq: {{{text}}} | yes | | {{#ifeq: {{{new}}} | yes |'''NEW:'''&nbsp;|{{#if: {{{number|}}} |'''{{{number}}}.'''&nbsp;|}}}} }}'''{{ #ifexist: {{{name}}} |[[{{#if: {{{link|}}}|{{{link}}}|{{{name}}}}}|{{color|#ccc|{{{name}}}}}]]|{{{name}}}}}'''</div>

Revision as of 22:43, 2 October 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
|name         = 
|link         = <!--Use only if the video name is not the video's page location-->
|number       = 
|blogger      = 
|image        = 
|description  = 
|url          = 
}}

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

|new=yes

after the status line. If it is a text blog, please add

|text=yes


Please note that this template is more sensitive than previous versions, due to link colors. If a link is manually generated, it will not be colored correctly unless it is formatted like this:

[[link|{{color|#71B642|text}}]]