Difference between revisions of "Template:Border/doc"

From blackwiki
Jump to navigation Jump to search
imported>DePiep
imported>DePiep
Line 6: Line 6:
  
 
===Basic===
 
===Basic===
: <code><nowiki>{{border|</nowiki>''element''}}<code>
+
Basic usage is <code><nowiki>{{border|</nowiki>''element''}}<code>, where ''element'' is the image, text, etc around which the border is to appear. The border will be a solid light grey color (#ddd) and 1px (1 pixel) wide (default settings; see below). <!--If applying the template appears to shift the ''element'''s position, try adding the <code>display=noinline</code> parameter described below.-->
: ...where ''element'' is the image, text, etc around which the border is to appear. The border will be a solid light grey color (#ddd) and 1px (1 pixel) wide (default settings; see below). <!--If applying the template appears to shift the ''element'''s position, try adding the <code>display=noinline</code> parameter described below.-->
 
 
: <code><nowiki>{{border|Abc}}</nowiki><code> &rarr; {{border|Abc}}
 
: <code><nowiki>{{border|Abc}}</nowiki><code> &rarr; {{border|Abc}}
  

Revision as of 14:12, 26 August 2014

This template is used to place a border around text. Note, to add a border to an image use the |border parameter in [[:File:...]] (see Wikipedia:Picture tutorial).

Syntax

Basic

Basic usage is {{border|element}}, where element is the image, text, etc around which the border is to appear. The border will be a solid light grey color (#ddd) and 1px (1 pixel) wide (default settings; see below).

{{border|Abc}}Abc

All options

{{border |element |width=width |style=style |color=color}}
{{border |Abc|width=2px|style=dotted |color=red}}Abc

Parameters

element
(required) The element (image, text, etc) around which the border is to appear.
width
The width (thickness) of the border (default is 1px).
style The border's style
solid (default if the parameter is not used), dotted, dashed, double, groove, ridge, inset or outset.
color
The border's color (default #ddd, otherwise recommend a named color).
noinline 
Set this to any value to remove the inline style.

Abc

See also