Template:Ruled box/doc
![]() | This is a documentation subpage for Template:Ruled box. It contains usage information, categories and other content that is not part of the original template page. |
![]() | This template uses block elements, e.g. See H:DIVSPAN for details. |
![]() | This template uses TemplateStyles: |
Usage
[edit]A simple box with rules top and bottom, centred in the page.
- padding: left and right padding (default: 0)
- padding-left, padding-right: left and right padding, individually set (default: 0)
- padding-tb: top and bottom padding (default: 0)
- padding-top, padding-bottom: top and bottom padding, individually set (default: 0)
- border-top: border style, overridden by border-top and border-bottom (default:
1px solid
)- border-top, border-bottom: top/bottom border styles, set individually (default: not set)
- class: extra CSS classes for the container
- style: extra CSS styles for the container
The container always has the class wst-ruled-box
.
Examples
[edit]Example
{{ruled box | {{lorem ipsum}} }}
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.
Example
{{ruled box|padding=2em | {{lorem ipsum}} }}
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.
Example
{{ruled box | padding=0 | padding-tb=1em | border=3px double black | style=color:blue; | {{lorem ipsum}} }}
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.
Tracking Categories
[edit]See also
[edit]- {{Border}}: fully customisable fixed width box
- {{Centered Box}}: centered box, width to fit text
- {{Frame}}: full width frame around content
- {{Border2}} fully customisable box