Difference between revisions of "Template:TextBlog"

From LGPedia
Jump to: navigation, search
(Creating pilot template)
 
 
(8 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{| align="right" style="border:#{{#ifeq:{{{KM}}}|yes|c0c0c0|000}} 1px solid;margin-left:2em;margin-bottom:2em;width: 21em; text-align: left; font-size: 90%;background-color: #{{#ifeq:{{{KM}}}|yes|f5f5f5; padding: 3px|fff}}; position: relative; top: 0px; left: 0px; z-index: 10;" cellspacing="2"
+
{| align="right" style="border:#c0c0c0 1px solid;margin-left:2em;margin-bottom:2em;width: 21em; text-align: left; font-size: 90%;background-color: #fff; position: relative; top: 0px; left: 0px; z-index: 10;" cellspacing="2"
 
|-
 
|-
| style="background: {{ #ifeq: {{{KM}}} | yes | <nowiki>#</nowiki>653373; color: White; border:1px solid <nowiki>#</nowiki>4A2B66 | {{#ifeq: {{{RES}}} | yes | <nowiki>#</nowiki>71B642 | lightsteelblue }}}}; font-size: 110%;" align="center" colspan="2" | '''{{{name}}}'''
+
| style="color: {{{tcolor|{{TextBlog/tcolor|{{{series}}}}}}}}; background: {{{color|{{TextBlog/color|{{{series}}}}}}}}; font-size: 110%;" align="center" colspan="2" | '''{{{name}}}'''
 
|- valign=top
 
|- valign=top
 
! style="width:8em" | Blogger
 
! style="width:8em" | Blogger
Line 7: Line 7:
 
|- valign=top  
 
|- valign=top  
 
! Date Posted
 
! Date Posted
| {{#if: {{{date|}}} | {{date|{{{date}}}}} | Unknown}}
+
| {{#if: {{{date|}}} | {{date|{{{date}}}}}{{#if: {{{time|}}}|<br>{{{time}}}|}} | Unknown}}
 
|- valign=top
 
|- valign=top
 
! URL
 
! URL
| {{{url}}}
+
| {{{url}}} {{#if: {{{cast|}}} | <br>
 +
{{+}}
 +
{{!}} style="text-align: center; color: {{{tcolor|{{TextBlog/tcolor|{{{series}}}}}}}}; background: {{{color|{{TextBlog/color|{{{series}}}}}}}}; font-size: 110%" colspan="2" {{!}} '''Cast'''
 +
{{+}}
 +
{{{cast}}}|}}
 
|-
 
|-
| style="text-align: center; background: {{ #ifeq: {{{KM}}} | yes | <nowiki>#</nowiki>653373; color: White; border:1px solid <nowiki>#</nowiki>4A2B66 | {{#ifeq: {{{RES}}} | yes | <nowiki>#</nowiki>71B642 | lightsteelblue }}}}; font-size: 110%" colspan="2" | '''Adjacent Blogs'''
+
| style="text-align: center; color: {{{tcolor|{{TextBlog/tcolor|{{{series}}}}}}}}; background: {{{color|{{TextBlog/color|{{{series}}}}}}}}; font-size: 110%" colspan="2" | '''Adjacent Blogs'''{{#if: {{{Previous|}}} | <br>
|- valign=top
+
{{!}}- valign=top
! Previous
+
! Directly after
| {{#if: {{{Previous|}}} | "[[{{{Previous}}}]]" | none}}
+
{{!}} "[[{{{Previous}}}]]" |}}{{#if: {{{Next|}}} | <br>
|- valign=top
+
{{!}}- valign=top
! Next
+
! Directly before
| {{#if: {{{Next|}}} | "[[{{{Next}}}]]" | none}}{{#if: {{{PreviousB|}}} | <br>
+
{{!}} "[[{{{Next}}}]]" |}}{{#if: {{{PreviousB|}}} | <br>
 
{{!}}- valign=top
 
{{!}}- valign=top
 
! Previous by {{{blogger}}}
 
! Previous by {{{blogger}}}
Line 30: Line 34:
 
{{!}}- valign=top
 
{{!}}- valign=top
 
! Next by {{{blogger2}}}
 
! Next by {{{blogger2}}}
{{!}} "[[{{{NextB2}}}]]" |}}{{#if: {{{PreviousC|}}} | <br>
+
{{!}} "[[{{{NextB2}}}]]" |}}
{{!}}- valign=top
+
! Directly after
+
{{!}} "[[{{{PreviousC}}}]]" |}}{{#if: {{{NextC|}}} | <br>
+
{{!}}- valign=top
+
! Directly before
+
{{!}} "[[{{{NextC}}}]]" |}}
+
 
|}
 
|}
 
<includeonly>[[Category:{{{blogger}}}'s blogs|* {{{date}}}]]</includeonly><noinclude>
 
<includeonly>[[Category:{{{blogger}}}'s blogs|* {{{date}}}]]</includeonly><noinclude>
Line 42: Line 40:
 
This template should be included at the top of every official LG15 text blog, and no other place.
 
This template should be included at the top of every official LG15 text blog, and no other place.
 
<pre>
 
<pre>
{{Blog
+
{{TextBlog
 
| name        =  
 
| name        =  
 +
| series      = LG15, LG2016, KM, RES, or N1
 
| blogger    =  
 
| blogger    =  
 
| date        =  
 
| date        =  
 +
| time        =
 
| url        =  
 
| url        =  
  
<!-- Leave Previous blank after = if there is no previous blog.
+
<!-- For use in cases of snapchats or facebook videos -->
     Leave Next blank after = if there is no next blog. Duh. -->
+
| cast        =  
 +
 
 +
<!-- These function as the traditional PreviousC/NextC,
 +
     since Previous and Next are reserved for video blogs. -->
 
| Previous    =
 
| Previous    =
 
| Next        =  
 
| Next        =  
Line 57: Line 60:
 
| PreviousB  =  
 
| PreviousB  =  
 
| NextB      =  
 
| NextB      =  
 
<!-- These are for videos not technically part of the series,
 
    for example pre-canon videos of characters later becoming canon.
 
    They create "Directly after ..." and "Directly before ..." rows -->
 
| PreviousC  =
 
| NextC      =
 
 
<!-- If this is a non-LG15 video, add one of these lines.
 
    Otherwise, omit them. -->
 
| KM          = yes
 
| RES        = yes
 
 
}}</pre>
 
}}</pre>
  
 
*If the page name is the same as the blog name, <nowiki>{{PAGENAME}}</nowiki> should be used in the name variable.
 
*If the page name is the same as the blog name, <nowiki>{{PAGENAME}}</nowiki> should be used in the name variable.
 
*The date variable MUST be in the format YYYYMMDD.[[Category:Video templates]]</noinclude>
 
*The date variable MUST be in the format YYYYMMDD.[[Category:Video templates]]</noinclude>

Latest revision as of 02:25, 26 June 2016

{{{name}}}
Blogger {{{blogger}}}
Date Posted Unknown
URL {{{url}}}
Adjacent Blogs

Usage

This template should be included at the top of every official LG15 text blog, and no other place.

{{TextBlog
| name        = 
| series      = LG15, LG2016, KM, RES, or N1
| blogger     = 
| date        = 
| time        = 
| url         = 

<!-- For use in cases of snapchats or facebook videos -->
| cast        = 

<!-- These function as the traditional PreviousC/NextC,
     since Previous and Next are reserved for video blogs. -->
| Previous    =
| Next        = 

<!-- These are for "Previous by [blogger]" and "Next by [blogger]".
     Leave blank if the next/previous blog was by the same blogger. -->
| PreviousB   = 
| NextB       = 
}}
  • If the page name is the same as the blog name, {{PAGENAME}} should be used in the name variable.
  • The date variable MUST be in the format YYYYMMDD.