m (Adding category to the page) |
Kentsmith9 (talk | contribs) (Updated doc) |
||
Line 3: | Line 3: | ||
This template is a meta-template that can be used to create nicely-styled floating content boxes. | This template is a meta-template that can be used to create nicely-styled floating content boxes. | ||
== | == Prameters == | ||
The following optional parameters are available in the template. | |||
*{{para|text}} – the text to display in the box | *{{para|text}} – the text to display in the box | ||
*{{para|image}} – a full image | *{{para|image}} – a full image (or other content) on the right of the text | ||
*{{para|imageright}} – a full image | *{{para|imageright}} – a full image (or other content) to display in a separate table cell on the right of the box adjacent to the main text | ||
*{{para|position}} – if set to <code>left</code>, | *{{para|position}} – if set to <code>left</code>, a non-floating box appears on the left side of the page rather than a floating box on the right | ||
*{{para|style}} – styles to apply to the box | *{{para|style}} – styles to apply to the box | ||
*{{para|textstyle}} – styles to apply to the text cells only | *{{para|textstyle}} – styles to apply to the text cells only | ||
*{{para|below}} – content to appear in a separate row underneath the main | *{{para|below}} – separate content to appear in a separate row underneath the main text and any images, spanning the entire width of the box, but still inside it | ||
== | == Usage == | ||
*{{ | {{Sidebox | ||
| text = This is a sidebox positioned on the right of the screen as the default. | |||
}} | |||
{{Lorem ipsum}} | |||
{{Clear}} | |||
{{Sidebox | |||
| position = left | |||
| text = This is a sidebox positioned on the left of the screen with an image on the left and right with separate text below this text. | |||
| image = [[File:Navigate icon.png]] | |||
| imageright = [[File:Check-icon.png]] | |||
| below = This is below the main text and any images shown in the box. Note that the text below the box is not wrapping around this box. That is intentional for the Left position. | |||
}} | |||
{{Lorem ipsum}} | |||
{{Clear}} | |||
== Notes == | |||
Include the {{tl|Clear}} template after the {{tlc|Side box}} to prevent any text to wrap around the floating box, typically before a new section heading. | |||
== See also == | |||
* {{tl|mbox}} | |||
* {{tl|Infobox}} | |||
<includeonly> | <includeonly> | ||
<!-- ADD CATEGORIES BELOW THIS LINE --> | <!-- ADD CATEGORIES BELOW THIS LINE --> | ||
[[Category: | [[Category:Infobox templates]] | ||
<!-- ADD INTERWIKIS BELOW THIS LINE --> | <!-- ADD INTERWIKIS BELOW THIS LINE --> | ||
</includeonly> | </includeonly> |
Revision as of 21:43, 25 August 2022
This is a documentation subpage for . It contains usage information, categories and other content that is not part of the original template page. |
This template is a meta-template that can be used to create nicely-styled floating content boxes.
Prameters
The following optional parameters are available in the template.
|text=
– the text to display in the box|image=
– a full image (or other content) on the right of the text|imageright=
– a full image (or other content) to display in a separate table cell on the right of the box adjacent to the main text|position=
– if set toleft
, a non-floating box appears on the left side of the page rather than a floating box on the right|style=
– styles to apply to the box|textstyle=
– styles to apply to the text cells only|below=
– separate content to appear in a separate row underneath the main text and any images, spanning the entire width of the box, but still inside it
Usage
This is a sidebox positioned on the right of the screen as the default. |
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.
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.
Notes
Include the {{Clear}} template after the {{Side box}}
to prevent any text to wrap around the floating box, typically before a new section heading.