No edit summary Tag: wikieditor |
No edit summary Tag: wikieditor |
||
Line 1: | Line 1: | ||
<includeonly><div style="margin-left:{{{offset|0}}};margin-top:-1em;">↳ <sub>{{{1}}}</sub></div></includeonly> | <noinclude>==Usage== | ||
<code>{{ScuffedMenu</code><br> | |||
<code>|offset=</code><br> | |||
<code>|</code><br> | |||
<code>}}</code><br> | |||
---- | |||
==Note== | |||
The <code>|offset=</code> parameter is used to push the menu to the right and uses CSS values, such as <code>em</code>. Example: | |||
|offset=3.4em | |||
---- | |||
The empty parameter <code>|</code> should contain the actual menu, with the following structure: | |||
(menu item 1) <nowiki>{{!}}</nowiki> (menu item 2) <nowiki>{{!}}</nowiki> (menu item 3) | |||
---- | |||
==Example== | |||
<nowiki>{{ScuffedMenu</nowiki> | |||
|offset=3.4em | |||
|[[Menu Item 1]] <nowiki>{{!}}</nowiki> [[Menu Item 2]] <nowiki>{{!}}</nowiki> [[Menu Item 3]] | |||
}} | |||
Produces the following: | |||
{{ScuffedMenu | |||
|offset=3.4em | |||
|[[Menu Item 1]] {{!}} [[Menu Item 2]] {{!}} [[Menu Item 3]] | |||
}} | |||
</noinclude><includeonly><div style="margin-left:{{{offset|0}}};margin-top:-1em;">↳ <sub>{{{1}}}</sub></div></includeonly> |
Revision as of 16:07, 17 March 2023
Usage
{{ScuffedMenu
|offset=
|
}}
Note
The |offset=
parameter is used to push the menu to the right and uses CSS values, such as em
. Example:
|offset=3.4em
The empty parameter |
should contain the actual menu, with the following structure:
(menu item 1) {{!}} (menu item 2) {{!}} (menu item 3)
Example
{{ScuffedMenu |offset=3.4em |Menu Item 1 {{!}} Menu Item 2 {{!}} Menu Item 3 }}
Produces the following: