Difference between revisions of "Template:Box"
From LFS Manual
Jump to navigationJump to searchm |
m |
||
Line 1: | Line 1: | ||
− | <div style="border: 1px solid {{{border|#c8ccd1}}}; background-color: {{{bg|#FAFAFA}}}; padding: {{{padding|0}}}">{{{1}}}</div><noinclude> | + | <includeonly><div style="border: 1px solid {{{border|#c8ccd1}}}; background-color: {{{bg|#FAFAFA}}}; padding: {{{padding|0}}}">{{{1}}}</div></includeonly><noinclude> |
− | {{box|box content}} | + | {{Documentation| |
− | {{box|border=red|box content}} | + | |
− | {{box|box content|border=red|bg=yellow}} | + | === Basic usage === |
− | {{box|box content|border=red|bg=yellow|padding=8px}} | + | |
+ | {{markup| | ||
+ | <nowiki>{{box|box content}}</nowiki>|{{box|box content}}}}<!-- Template:Mra --> | ||
+ | |||
+ | === Border color === | ||
+ | |||
+ | {{markup| | ||
+ | <nowiki>{{box|border=red|box content}}</nowiki>|{{box|border=red|box content}}}}<!-- Template:Mra --> | ||
+ | |||
+ | === Background color === | ||
+ | |||
+ | {{markup| | ||
+ | <nowiki>{{box|bg=yellow|box content}}</nowiki>|{{box|bg=yellow|box content}}}}<!-- Template:Mra --> | ||
+ | |||
+ | === Padding === | ||
+ | |||
+ | {{markup| | ||
+ | <nowiki>{{box|padding=8px|box content}}</nowiki>|{{box|padding=8px|box content}}}}<!-- Template:Mra --> | ||
+ | |||
+ | === All at once === | ||
+ | |||
+ | {{markup| | ||
+ | <nowiki>{{box|box content|border=red|bg=yellow|padding=8px}}</nowiki>|{{box|box content|border=red|bg=yellow|padding=8px}}}}<!-- Template:Mra --> | ||
+ | }} | ||
[[Category:Layout templates]] | [[Category:Layout templates]] |
Revision as of 00:24, 3 December 2023
Template documentation
[[
Basic usage
Markup | Renders as |
---|---|
{{box|box content}} |
box content
|
Border color
Markup | Renders as |
---|---|
{{box|border=red|box content}} |
box content
|
Background color
Markup | Renders as |
---|---|
{{box|bg=yellow|box content}} |
box content
|
Padding
Markup | Renders as |
---|---|
{{box|padding=8px|box content}} |
box content
|
All at once
Markup | Renders as |
---|---|
{{box|box content|border=red|bg=yellow|padding=8px}} |
box content
|
/doc|View]] - Edit
{{:
Basic usage
Markup | Renders as |
---|---|
{{box|box content}} |
box content
|
Border color
Markup | Renders as |
---|---|
{{box|border=red|box content}} |
box content
|
Background color
Markup | Renders as |
---|---|
{{box|bg=yellow|box content}} |
box content
|
Padding
Markup | Renders as |
---|---|
{{box|padding=8px|box content}} |
box content
|
All at once
Markup | Renders as |
---|---|
{{box|box content|border=red|bg=yellow|padding=8px}} |
box content
|
/doc}}