ഫലകം:Box

വിക്കിപീഡിയ, ഒരു സ്വതന്ത്ര വിജ്ഞാനകോശം.
[തിരുത്തുക] [പുതുക്കുക] ഫലകത്തിന്റെ വിവരണം

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)
opt1
 |background=
opt2
 |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

Examples[തിരുത്തുക]

Lorem ipsum dolor sit amet, consectetur adipiscing 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 adipiscing 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.

Curabitur pretium tincidunt lacus. Nulla gravida orci a odio. Nullam varius, turpis et commodo pharetra, est eros bibendum elit, nec luctus magna felis sollicitudin mauris. Integer in mauris eu nibh euismod gravida. Duis ac tellus et risus vulputate vehicula. Donec lobortis risus a elit. Etiam tempor. Ut ullamcorper, ligula eu tempor congue, eros est euismod turpis, id tincidunt sapien risus a quam. Maecenas fermentum consequat mi. Donec fermentum. Pellentesque malesuada nulla a mi. Duis sapien sem, aliquet nec, commodo eget, consequat quis, neque. Aliquam faucibus, elit ut dictum aliquet, felis nisl adipiscing sapien, sed malesuada diam lacus eget erat. Cras mollis scelerisque nunc. Nullam arcu. Aliquam consequat. Curabitur augue lorem, dapibus quis, laoreet et, pretium ac, nisi. Aenean magna nisl, mollis quis, molestie eu, feugiat in, orci. In hac habitasse platea dictumst.

C

Lorem ipsum dolor sit amet, consectetur adipiscing 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

Thebottom 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
അജ്ഞാതംഐച്ഛികം
widthwidth

The width of the box

സ്വതേ
''the width of the text plus the margin''
അജ്ഞാതംഐച്ഛികം
CSSCSS

Any additional CSS to use

അജ്ഞാതംഐച്ഛികം

Tracking categories[തിരുത്തുക]

See also[തിരുത്തുക]

"https://ml.wikipedia.org/w/index.php?title=ഫലകം:Box&oldid=3932343" എന്ന താളിൽനിന്ന് ശേഖരിച്ചത്