No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
<onlyinclude><includeonly><!-- |
<onlyinclude><includeonly><!-- |
||
+ | -->{{#if:{{{1|}}}|<!-- |
||
− | --><div style="position:fixed;{{{2}}}:60px; {{{3}}}:30px; overflow:visible;">{{{1}}}</div><!-- |
+ | --><div style="position: fixed; {{#ifeq:{{lc:{{{2|}}}}}|left|left|right}}: 60px; {{#ifeq:{{lc:{{{3|}}}}}|bottom|bottom|top}}: 30px; overflow: visible;">{{{1|}}}</div><!-- |
+ | -->}}<!-- |
||
--></includeonly></onlyinclude> |
--></includeonly></onlyinclude> |
Revision as of 12:52, 22 July 2010
Template for generating an absolutely positioned element on user pages. This element is positioned relative to the browser window, i.e. it stays in the same position when scrolling.
Usage
{{Fixed position|Content|Position 1|Position 2}}
Parameters
<unnamed 1>
Content which should appear in a fixed position.
(default: "right")
<unnamed 2>Horizontal position.
Available options:
- left
- right
(default: "top")
<unnamed 3>Vertical position.
Available options:
- top
- bottom