Template:Border/doc

&#x3c;!-- EDIT TEMPLATE DOCUMENTATION BELOW THIS LINE --&#x3e; This template is used to place a border around text. Note, to add a border to an image use the &#x3c;code&#x3e;&#x3c;nowiki&#x3e;|border&#x3c;/nowiki&#x3e;&#x3c;/code&#x3e; parameter in &#x3c;code&#x3e;&#x3c;nowiki&#x3e;&#x3c;/nowiki&#x3e;&#x3c;/code&#x3e; (see Wikipedia:Picture tutorial).

Basic
Basic usage is &#x3c;code&#x3e;&#x3c;nowiki&#x3e;&#x3c;/code&#x3e;, 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). &#x3c;!--If applying the template appears to shift the element's position, try adding the &#x3c;code&#x3e;display=noinline&#x3c;/code&#x3e; parameter described below.--&#x3e;
 * &#x3c;code&#x3e;&#x3c;nowiki&#x3e;&#x3c;/nowiki&#x3e;&#x3c;/code&#x3e; &#x26;rarr;

All options show:
 * &#x3c;code&#x3e;&#x3c;nowiki&#x3e;&#x3c;/code&#x3e;


 * &#x3c;code&#x3e;&#x3c;nowiki&#x3e;&#x3c;/nowiki&#x3e;&#x3c;/code&#x3e; &#x26;rarr;

Parameters

 * element: (required) The element (image, text, etc) around which the border is to appear.


 * display The element's display method: inline-block (default if the parameter is not used), block, inline, table, flex, etc.


 * width: The width (thickness) of the border (default is &#x3c;code&#x3e;1px&#x3c;/code&#x3e;).


 * style The border's style: solid (default if the parameter is not used), dotted, dashed, double, groove, ridge, inset or outset.


 * style2: Additional CSS properties can be used in this template.


 * color: The border's color (default #ddd, otherwise recommend a named color).

Inline of element

 * noinline: Set &#x26;lt;anytext&#x3e; to replace the default &#x3c;code&#x3e;inline-block&#x3c;/code&#x3e; display style.
 * Some text
 * Inline reading