Шаблон:Tocbox

Материал из Колесо Времени

Перейти к: навигация, поиск
{{{1}}}
{{{2}}}



Содержание

Notes for Use

Purpose


Name of template:tocbox

Used as a text box. Has the same color and font format as the Table of Contents (TOC). As a result it matches it well and can be used for other links. Use <br> tags for hard returns within the content. An example of its use and the result are shown below.


{{tocbox|width=200px|Other pages|[[Editing Wikitext/Pictures/The Quick Course|The Quick Course]]<br>[[Editing Wikitext/Pictures/Tiled Images|Tiled Images]]<br>[[Editing Wikitext/Pictures/Images in Containers|Images in Containers]]}}

Other pages
The Quick Course
Tiled Images
Images in Containers



Limitations



This box was made to place adjacent to the Table of Contents, (TOC), in a table cell, to hold links to other pages in the set. The colors are taken from class="toccolors":

.toccolours {
	border: 1px solid #aaa;
	background-color: #f9f9f9;
	padding: 5px;
	font-size: 95%;}

A top-margin was added to give vertical separation.

Parameters



Heading
parameter 1; the top heading of the list (default: centered, bold, TOC size)
Content
parameter 2; the content, eg; a list of links (default: left, normal, TOC size)

Options



align
horizontal position on the page or container; left,right, or center; (default left)
width
the width of the box (default: 150px)