Template:Side box/doc View history

m (Adding category to the page)
(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.   


=== Usage ===
== 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 tag (or other content)
*{{para|image}} – a full image (or other content) on the right of the text
*{{para|imageright}} – a full image tag (or other content) to display in a separate table cell on the right of the box
*{{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}} &ndash; if set to <code>left</code>, floats the box on the left side of the page rather than the right
*{{para|position}} &ndash; 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}} &ndash; styles to apply to the box
*{{para|style}} &ndash; styles to apply to the box
*{{para|textstyle}} &ndash; styles to apply to the text cells only
*{{para|textstyle}} &ndash; styles to apply to the text cells only
*{{para|below}} &ndash; content to appear in a separate row underneath the main cell (and spanning the entire width of the box)
*{{para|below}} &ndash; 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


===Related pages===
== Usage ==


*{{tlx|mbox}}
{{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:Templates not transcluded as of 2016-08]]
[[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 Template:Side box.
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 to left, 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

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.

See also