You are an anonymous user who can't edit RoboWiki.
Log in if you already have an account. If you would like to become an editor for the wiki, request an account.

Difference between revisions of "Template:TitleBox"

From RoboWiki
Jump to navigation Jump to search
(Created page with "{|style="width:100%;background: #f5fffa;border:1px solid #cef2e0;margin-top:10px;padding:6px;{{#if:{{{bg|}}}|background: {{{bg}}};}} {{#if:{{{border|}}}|border-color: {{{borde...")
 
(proper coloration)
Line 1: Line 1:
{|style="width:100%;background: #f5fffa;border:1px solid #cef2e0;margin-top:10px;padding:6px;{{#if:{{{bg|}}}|background: {{{bg}}};}} {{#if:{{{border|}}}|border-color: {{{border}}};}} {{{style|}}}"
+
{|style="width:100%;background: #E5F0FF;border:1px solid #99C2FF;margin-top:10px;padding:6px;{{#if:{{{bg|}}}|background: {{{bg}}};}} {{#if:{{{border|}}}|border-color: {{{border}}};}} {{{style|}}}"
 
|
 
|
{|style="width:100%;height:1em;background:#cef2e0;border:1px solid #a3bfb1;padding:0 5px;font-size:1.2em;font-weight:bold;{{#if:{{{tbg|}}}|background: {{{tbg}}};}} {{#if:{{{tborder|}}}|border-color: {{{tborder}}};}}"
+
{|style="width:100%;height:1em;background:#BBD6FF;border:1px solid #66A3FF;padding:0 5px;font-size:1.2em;font-weight:bold;{{#if:{{{tbg|}}}|background: {{{tbg}}};}} {{#if:{{{tborder|}}}|border-color: {{{tborder}}};}}"
 
|{{{title|Title}}}{{#if:{{{editlink|}}}|<br />
 
|{{{title|Title}}}{{#if:{{{editlink|}}}|<br />
 
{{!}}style="text-align:right;" class="plainlinks"{{!}}[{{fullurl:{{{editlink}}}|action=edit}} edit]}}
 
{{!}}style="text-align:right;" class="plainlinks"{{!}}[{{fullurl:{{{editlink}}}|action=edit}} edit]}}
Line 8: Line 8:
 
|
 
|
 
{{{content|Content.}}}
 
{{{content|Content.}}}
|}<noinclude>
+
|}
 +
 
 +
<noinclude>
 +
 
 +
==Use==
 +
This template creates a box with content and a title. Used primarily on the [[Main Page]].
 +
 
 +
==Parameters==
 +
{| class = "wikitable"
 +
! Parameter || Mandatory || Default || Detailed description
 +
|-
 +
! title
 +
| No || Title || Title of the box.
 +
|-
 +
! content
 +
| No || Content. || The box's content.
 +
|-
 +
! editlink
 +
| No ||  || Link to the page with the content. Useful if the content in the box is just a template, so that editors can have a link to edit the template, if they need to change the box's content.
 +
|-
 +
! bg
 +
| No || #f5fffa || Background color.
 +
|-
 +
! border
 +
| No || #cef2e0 || Color of the outer border.
 +
|-
 +
! tbg
 +
| No || #cef2e0 || Background color of the title rectangle.
 +
|-
 +
! tborder
 +
| No || #a3bfb1 || Border color of the title rectangle.
 +
|-
 +
! style
 +
| No ||  || Any extra style rules.
 +
|}
 +
 
 +
==Skeleton==
 +
<pre>
 +
{{TitledBox
 +
|title    =
 +
|editlink =
 +
|bg      =
 +
|border  =
 +
|tbg      =
 +
|tborder  =
 +
|content  =
 +
|style    =
 +
}}
 +
</pre>
 +
 
  
 +
Template obtained from Pikipedia with permission.
  
This template is going to be used on a build of the front page I am working on. Give me a bit.
+
</noinclude>

Revision as of 01:00, 7 December 2015

Title

Content.


Use

This template creates a box with content and a title. Used primarily on the Main Page.

Parameters

Parameter Mandatory Default Detailed description
title No Title Title of the box.
content No Content. The box's content.
editlink No Link to the page with the content. Useful if the content in the box is just a template, so that editors can have a link to edit the template, if they need to change the box's content.
bg No #f5fffa Background color.
border No #cef2e0 Color of the outer border.
tbg No #cef2e0 Background color of the title rectangle.
tborder No #a3bfb1 Border color of the title rectangle.
style No Any extra style rules.

Skeleton

{{TitledBox
|title    = 
|editlink = 
|bg       = 
|border   = 
|tbg      = 
|tborder  = 
|content  = 
|style    = 
}}


Template obtained from Pikipedia with permission.