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.
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"
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...") |
|||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
− | {|style="width:100%;background: # | + | {|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:# | + | {|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 10: | Line 10: | ||
|}<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. | ||
+ | |||
+ | </noinclude> |
Latest revision as of 01:59, 7 December 2015
| |
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.