Template:Side box: Difference between revisions

From FlightGear wiki
Jump to navigation Jump to search
m (cat: Undocumented templates)
(+doc: Documenting parameters based on https://en.wikipedia.org/w/index.php?title=Template:Side_box/doc&oldid=495931739)
 
Line 14: Line 14:
}}
}}
</table><noinclude>
</table><noinclude>
{{Informative template|1=
__NOTOC__
== Goal ==
This is a meta template used for creating other small messagebox templates that will float on the right side.


[[Category:Undocumented templates]]
== Usage ==
<!-- Description of how to use the template -->
{{obr}}'''side box'''
{{!}} text      =
{{!}} ''image''      =
{{!}} ''imageright'' =
{{!}} ''position''  =
{{!}} ''style''      =
{{!}} ''textstyle''  =
{{!}} ''class''      =
{{!}} ''below''      =
{{cbr}}
 
The only mandatory parameter is '''text'''.  The other parameters are optional.
 
; text:        Text to display in the box.
; image:      Full image tag (or other content).
; imageright:  Full image tag (or other content) to display in a separate table cell on the right of the box.
; position:    If set to '''left''', the box will float on the left side of the page rather than the right.
; style:      CSS styles to apply to the box.
; textstyle:  CSS styles to apply to the text cells only.
; class:      CSS class to apply.
; below:      Content to appear in a separate row underneath the main cell (and spanning the entire width of the box).
 
== Examples ==
<nowiki>{{Side box
| image      = [[File:FlightGear logo.png|40px]]
| text      = The FlightGear forum has a <br>
subforum related to: {{project infrastructure|forum|urn=viewforum.php?f={{{1}}}|text=''{{{2}}}''}}
| class      = plainlinks
}}</nowiki>
 
{{side box
| image      = [[File:FlightGear logo.png|40px]]
| text      = The FlightGear forum has a <br>
subforum related to: {{project infrastructure|forum|urn=viewforum.php?f={{{1}}}|text=''{{{2}}}''}}
| class      = plainlinks
}}{{-}}
}}
 
[[Category:Messagebox templates]]
</noinclude>
</noinclude>

Latest revision as of 13:11, 22 July 2020

The following template description is not displayed when the template is inserted in an article.

Goal

This is a meta template used for creating other small messagebox templates that will float on the right side.

Usage

{{side box
| text       =
| image      =
| imageright =
| position   =
| style      =
| textstyle  =
| class      =
| below      =
}}

The only mandatory parameter is text. The other parameters are optional.

text
Text to display in the box.
image
Full image tag (or other content).
imageright
Full image tag (or other content) to display in a separate table cell on the right of the box.
position
If set to left, the box will float on the left side of the page rather than the right.
style
CSS styles to apply to the box.
textstyle
CSS styles to apply to the text cells only.
class
CSS class to apply.
below
Content to appear in a separate row underneath the main cell (and spanning the entire width of the box).

Examples

{{Side box
| image      = [[File:FlightGear logo.png|40px]]
| text       = The FlightGear forum has a <br>
subforum related to: {{project infrastructure|forum|urn=viewforum.php?f={{{1}}}|text=''{{{2}}}''}}
| class      = plainlinks
}}