Difference between revisions of "Template:Border"
m (Port from zhmgp) |
m (Changed to Category:Formatting templates) |
||
Line 1: | Line 1: | ||
<span style="display:{{{display|{{#if:{{{noinline|}}}|table-cell|inline-block}}}}};<!--border-collapse:collapse;--> border:{{{width|1px}}} {{{style|solid}}} {{{color|#ddd}}}; {{#if:{{{lh|{{{line-height|}}}}}}|line-height:{{{lh|{{{line-height|}}}}}};}} {{{style2|}}}">{{{1}}}</span><noinclude>{{documentation}} | <span style="display:{{{display|{{#if:{{{noinline|}}}|table-cell|inline-block}}}}};<!--border-collapse:collapse;--> border:{{{width|1px}}} {{{style|solid}}} {{{color|#ddd}}}; {{#if:{{{lh|{{{line-height|}}}}}}|line-height:{{{lh|{{{line-height|}}}}}};}} {{{style2|}}}">{{{1}}}</span><noinclude>{{documentation}} | ||
− | [[Category: | + | [[Category:Formatting templates]] |
</noinclude> | </noinclude> |
Latest revision as of 13:05, 30 January 2021
{{{1}}}
This template can be used to add a frame around a given picture/block of text.
Usage
- Parameters
{{border|Text/pic (mandatory)|display=Display method |width=Width |style=Frame style |style2=Additional style |color=Frame color |lh=Height}}
- Description
- display:Any of
inline
,block
ortable
- width:Sets the width of the frame. defaults to 1px
- color:Defaults to #ddd. Values such as
#F3F3F3
andpink
are also accepted.
Effect
{{border|Text}}
- Text
{{border|[[File:052BAiJRFlandre.jpg]]|width=2px|style=dotted |color=red}}
|