Difference between revisions of "Template:Border/doc"
Jump to navigation
Jump to search
imported>DixonDBot m (Migrating 20 interwiki links, now provided by Wikidata on d:Q5832664) |
imported>Frietjes |
||
| Line 1: | Line 1: | ||
{{Documentation subpage}} | {{Documentation subpage}} | ||
<!-- EDIT TEMPLATE DOCUMENTATION BELOW THIS LINE --> | <!-- EDIT TEMPLATE DOCUMENTATION BELOW THIS LINE --> | ||
| − | + | This template is used to place a border around text. Note, to add a border to an image use <code><nowiki>|border</nowiki></code> (see [[Wikipedia:Picture tutorial#Border]]). | |
__NOTOC__ | __NOTOC__ | ||
== Syntax == | == Syntax == | ||
| Line 24: | Line 24: | ||
; ''noinline'' : Set this to any value to remove the inline style. | ; ''noinline'' : Set this to any value to remove the inline style. | ||
| + | == See also == | ||
| + | * {{tl|color box}} | ||
| + | * {{tl|legend inline}} | ||
| + | |||
<includeonly> | <includeonly> | ||
<!--Categories--> | <!--Categories--> | ||
| − | [[Category: | + | [[Category:Text color templates]] |
| − | |||
| − | |||
</includeonly> | </includeonly> | ||
Revision as of 16:34, 22 October 2013
| This is a documentation subpage for Template:Border. It contains usage information, categories and other content that is not part of the original template page. |
This template is used to place a border around text. Note, to add a border to an image use |border (see Wikipedia:Picture tutorial#Border).
Syntax
Basic
{{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).
Full
{{border |element |width=width |style=style |color=color}}
Parameters
- element
- (required) The element (image, text, etc) around which the border is to appear.
- width
- The width (thickness) of the border (default 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.
See also
- {{color box}}
- {{legend inline}}