Template:Sticky decoration wrapper
Appearance
{{{1}}}
This template is a wrapper for sticky elements; that is, elements using position: sticky
or position: fixed
to stay fixed on the viewer's screen. It is intended for user pages and user talk pages only, as other pages should not include floating elements for accessibility reasons.
The template wraps the content in class=sticky-decoration
, allowing users to hide it by configuring their personal preferences.
It should not be used to potentially hide functional elements.
Usage[edit]
{{stickwrap|This is a test sentence}}
gives:This is a test sentence{{stickwrap|This is a test sentence|color: red|center}}
gives the following with the "center" class:This is a test sentence{{stickwrap|This is a test sentence|style=color: #d25251|class=center}}
gives the following with the "center" class:This is a test sentence
TemplateData[edit]
This is the TemplateData documentation for this template used by VisualEditor and other tools.
TemplateData for Sticky decoration wrapper
Wrapper for decorative sticky elements (in the user namespace)
Parameter | Description | Type | Status | |
---|---|---|---|---|
Wrapped content | 1 | no description | Content | required |
CSS class(es) | class 3 | Separate by space | Line | optional |
Inline CSS style(s) | style 2 | no description | Line | optional |