সাঁচ:Box/doc

ৱিকিউৎসৰ পৰা

Usage[সম্পাদনা কৰক]

Recommended Usage: {{box|Contents}}
Special Parameters
Parameter Description Values
|type= The type of box
black
,
white
or
transparent
|span= Uses span tags instead of div tags yes
|wide= Set the box to be as wide as the page/table
yes
|inline= Set the box to be inline text text text
yes
text text text
|header= Adds an optional header
Header
Text
|shadow= Add a shadow to the box
yes
Supported Parameters
Parameter Description Default CSS
"content" The contents of the box (Highly Recommend)
সাঁচ:Small
 |background=
সাঁচ:Small
 |color=
The color of the background of the box White background-color
|align= The alignment of the box (left, center, right) (Recommended) left float
|padding= The inner padding of the border 3px padding
|style= The style of the border Solid border-style
|border color= The color of the border Black background-color
|border size= The size of the border 3px border-width
|text align= The alignment of the text (Recommended) left text-align
|spacing= The spacing of the letters letter-spacing
|font= The font of the box's text font-family
|font size= The font size of the box's text font-size
|text color= The color of the text black text-color
|margin= The outer margin of the box (Only does horizontal when type isn't inline-block or block) 3px margin
|box type= The type of box (inline, inline-block, block) inline-block display
|height= The height of the box height
|width= The width of the box (The width of the text) width
|CSS= Any Additional CSS you want to add

(make sure to add ; to end)

Other Parameters
Parameter Description Default CSS
|top margin= The top outer margin of the box (Only does horizontal when type isn't inline-block or block) 3px margin-top
|bottom margin= The bottom outer margin of the box (Only does horizontal when type isn't inline-block or block) 3px margin-bottom
|left margin= The left outer margin of the box (Only does horizontal when type isn't inline-block or block) 3px margin-left
|right margin= The right outer margin of the box (Only does horizontal when type isn't inline-block or block) 3px margin-right
|top padding= The top inner padding of the border 3px padding-top
|bottom padding= The bottom inner padding of the border 3px padding-bottom
|left padding= The left inner padding of the border 3px padding-left
|right padding= The right inner padding of the border 3px padding-right
|radius= Border radius 0 border-radius
|max-height= The maximum height of the box max-height
|min-height= The minimum height of the box min-height
|max-width= The maximum width of the box max-width
|min-width= The minimum width of the box min-width

Examples[সম্পাদনা কৰক]

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

A
B

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.

C

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

{{box|A|background=red|text color=white}}
{{box|B|background=blue|text color=orange}}
{{box|C|background=black|text color=white|margin=0px|height=1em|width=40px|border color=yellow}}

DOG
{{box|spacing=5px|height=50px|DOG}}

The quick brown fox jumps over the lazy dog
{{box|background=yellow|align=center|border size=10px|radius=20px|text align=center|The quick brown fox jumps over the lazy dog}}

Data[সম্পাদনা কৰক]

This template produces a variety of boxes from preset options and from CSS.

সাঁচ পেৰামিটাৰ

এই সাঁচে পেৰামিটাৰসমূহৰ ইনলাইন ফৰ্মেটিং পছন্দ কৰে।

পেৰামিটাৰবিৱৰণপ্ৰকাৰস্থিতি
11

The contents of the box

উদাহৰণ
Hello, world!
অজ্ঞাতপ্ৰস্তাৱিত
headerheader

A heading for the box

উদাহৰণ
Warning
অজ্ঞাতপ্ৰস্তাৱিত
alignalign

The alignment of the box

পূৰ্বনিৰ্ধাৰিত
left
উদাহৰণ
center
অজ্ঞাতপ্ৰস্তাৱিত
box typebox type

The type of box (css display) (block, inline-block or inline)

উদাহৰণ
block
স্বয়ংক্ৰিয় মান
inline-block
অজ্ঞাতঐচ্ছিক
widewide

If set to yes the box will be wide

পূৰ্বনিৰ্ধাৰিত
no
উদাহৰণ
yes
স্বয়ংক্ৰিয় মান
বুলিয়ানঐচ্ছিক
inlineinline

Set to yes for the box type to be inline

পূৰ্বনিৰ্ধাৰিত
no
উদাহৰণ
yes
বুলিয়ানঐচ্ছিক
stylestyle

The style of the border

পূৰ্বনিৰ্ধাৰিত
solid
অজ্ঞাতঐচ্ছিক
paddingpadding

The padding of the box

পূৰ্বনিৰ্ধাৰিত
3px
অজ্ঞাতঐচ্ছিক
top paddingtop padding

The top padding of the box

অজ্ঞাতঐচ্ছিক
bottom paddingbottom padding

The bottom padding of the box

অজ্ঞাতঐচ্ছিক
left paddingleft padding

The left padding of the box

অজ্ঞাতঐচ্ছিক
right paddingright padding

The right padding of the box

অজ্ঞাতঐচ্ছিক
border colorborder color

The color of the box border

পূৰ্বনিৰ্ধাৰিত
black
উদাহৰণ
red
ষ্ট্ৰিংঐচ্ছিক
radiusradius

Border corner radius

পূৰ্বনিৰ্ধাৰিত
0
উদাহৰণ
5em
অজ্ঞাতঐচ্ছিক
typetype

The type of box (black,white,transparent)

উদাহৰণ
black
অজ্ঞাতঐচ্ছিক
border sizeborder size

The size of the border

পূৰ্বনিৰ্ধাৰিত
3px
অজ্ঞাতঐচ্ছিক
colorcolor background

The color of background

পূৰ্বনিৰ্ধাৰিত
white
উদাহৰণ
black
অজ্ঞাতঐচ্ছিক
text colortext color

The color of the text

পূৰ্বনিৰ্ধাৰিত
black
উদাহৰণ
green
অজ্ঞাতঐচ্ছিক
text aligntext align

The alignment of the text (css text-align)

পূৰ্বনিৰ্ধাৰিত
left
উদাহৰণ
center
অজ্ঞাতঐচ্ছিক
spacingspacing

The spacing of the letters

অজ্ঞাতঐচ্ছিক
fontfont

The font of the text

অজ্ঞাতঐচ্ছিক
font sizefont size text size

The size of the text

অজ্ঞাতঐচ্ছিক
marginmargin

The size of the box's margin

পূৰ্বনিৰ্ধাৰিত
3px
উদাহৰণ
30px
অজ্ঞাতঐচ্ছিক
top margintop margin

The size of the box's top margin

অজ্ঞাতঐচ্ছিক
bottom marginbottom margin

The size of the box's bottom margin

অজ্ঞাতঐচ্ছিক
left marginleft margin

The size of the box's left margin

অজ্ঞাতঐচ্ছিক
right marginright margin

The size of the box's right margin

অজ্ঞাতঐচ্ছিক
heightheight

The height of the box

পূৰ্বনিৰ্ধাৰিত
''the height of the contents plus the margin''
উদাহৰণ
400px
অজ্ঞাতঐচ্ছিক
max-heightmax-height

The maximum height of the box

উদাহৰণ
800px
অজ্ঞাতঐচ্ছিক
min-heightmin-height

The minimum height of the box

উদাহৰণ
100px
অজ্ঞাতঐচ্ছিক
widthwidth

The width of the box

পূৰ্বনিৰ্ধাৰিত
''the width of the text plus the margin or padding''
অজ্ঞাতঐচ্ছিক
max-widthmax-width

The maximum width of the box

অজ্ঞাতঐচ্ছিক
min-widthmin-width

The minimum width of the box

অজ্ঞাতঐচ্ছিক
CSSCSS

Any additional CSS to use

অজ্ঞাতঐচ্ছিক

Tracking categories[সম্পাদনা কৰক]

See also[সম্পাদনা কৰক]