Sticky – Template
| Lou Montana (talk | contribs)  (Template creation) | Lou Montana (talk | contribs)  m (Use CSS class) | ||
| Line 1: | Line 1: | ||
| <includeonly>{{#if:{{{1|}}} | <includeonly>{{#if:{{{1|}}} | ||
| | <div  | | <div class="sticky-{{#ifeq:{{lc:{{{2|top}}}}}|bottom|bottom|top}}">{{{1}}}</div> | ||
| |-no content provided- | | -no content provided- | ||
| }}</includeonly><noinclude>{{Doc/Template | }}</includeonly><noinclude>{{Doc/Template | ||
| |descr= Creates a sticky note - an information that sticks to the page, even after scrolling. | |descr= Creates a sticky note - an information that sticks to the page, even after scrolling. | ||
Revision as of 14:28, 21 February 2021
Creates a sticky note - an information that sticks to the page, even after scrolling.
This template is used on these pages.
Usage
{{Sticky|content|position}}
- content: the sticky note content
- position: (Optional, default top) can be top or bottom.
| Code | Result | 
|---|---|
| {{Sticky}} | -no content provided- | 
| {{Sticky|{{Feature|warning|Use '''on'''EventName in [[Config]]!}}}} | |
| {{Sticky|Jump to [[#top|the top]] of the page|bottom}} | Jump to the top of the page | 
