Template:Sticky decoration wrapper
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 sticky elements for accessibility reasons.
The template wraps the content in class=sticky-decoration, allowing users to hide it by configuring their personal preferences. This functionality, WP:STICKYDECO, was implemented after the March 2025 Wikipedia talk:User pages/Archive 19 § RfC: allowing editors to opt-out of seeing floating decorative elements.
It should not be used to potentially hide functional elements, such as {{skip to top and bottom}}.
Usage
{{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
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 |
| Inline CSS style(s) | style 2 | no description | Line | optional |
| CSS class(es) | class 3 | Separate by space | Line | optional |
Content Disclaimer
Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.
- The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
- There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
- It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
- Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
- Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.