Difference between revisions of "Template:Border"

From Moegirlpedia
Jump to: navigation, search
(the effect)
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
This mould can be use to add a border next to a picture or a sentence.
+
<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:Formatting templates]]
== Instruction ==
+
</noinclude>
;Paramaters
 
<nowiki>{{border|</nowiki>text or picture(necessity)|display=显示方式 |width=宽度 |style=边框样式 |style2=额外样式 |color=边框颜色 |lh=行高}}
 
 
 
 
 
;Description
 
*display:you can type in  inline、block、table etc. value.
 
*width:you can set the border's width,,the default value is 1px
 
*color:the default value is #ddd,or you can type in #F3F3F3、Pink etc. value(参考[https://zh.wikipedia.org/wiki/%E7%BD%91%E9%A1%B5%E9%A2%9C%E8%89%B2 网页颜色])
 

Latest revision as of 13:05, 30 January 2021

{{{1}}}

Template-info.svg Template Documentation  [View] [Edit] [History] [Refresh]

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 or table
  • width:Sets the width of the frame. defaults to 1px
  • color:Defaults to #ddd. Values such as #F3F3F3 and pink are also accepted.

Effect

{{border|Text}}
Text
{{border|[[File:052BAiJRFlandre.jpg]]|width=2px|style=dotted |color=red}}
052BAiJRFlandre.jpg