More actions
test |
test |
||
| Line 3: | Line 3: | ||
'''↳ '''<sub> | '''↳ '''<sub> | ||
{{#if:{{{page|}}} | {{#if:{{{page|}}} | ||
|'''{{{page | |'''{{{page}}} →''' | ||
|{{#ifeq:{{{page}}} | |{{#ifeq:{{{page}}}| | ||
| | | | ||
|'''{{SUBPAGENAME}} →''' | |'''{{SUBPAGENAME}} →''' | ||
}} | }} | ||
}} {{{1}}}</sub></div></includeonly></onlyinclude> | }} {{{1}}}</sub></div></includeonly></onlyinclude> | ||
Revision as of 13:03, 22 October 2025
Usage
{{ScuffedMenu
|offset=
|(page=)
|
}}
Copy-paste:
{{ScuffedMenu
|offset=3.4em
|[[menu_item_1]] {{!}} [[menu_item_2]] {{!}} [[menu_item_3]]
}}
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 optional parameter |page= can be used to either remove the current page and arrow, or write an alternate current page.
If this parameter is excluded entirely it uses the magic word{{SUBPAGENAME]}}.
The empty parameter | should contain the actual menu, with the following structure:
(menu item 1) {{!}} (menu item 2) {{!}} (menu item 3)
Examples
Example 1
{{ScuffedMenu</nowiki>
|offset=3.4em
|[[Bananas]] {{!}} [[Out For]] {{!}} [[Harambe]]</nowiki>
}}
Produces the following:
Example 2 - offset=10em
{{ScuffedMenu</nowiki>
|offset=10em
|[[Bananas]] {{!}} [[Out]] {{!}} [[For]] {{!}} [[Harambe]]</nowiki>
}}
Produces the following:
Example 3 - page=schlong
{{ScuffedMenu</nowiki>
|offset=10em
|page=schlong
|[[Bananas]] {{!}} [[Out]] {{!}} [[For]] {{!}} [[Harambe]]</nowiki>
}}
Produces the following:
Example 4 - no current page → page=
{{ScuffedMenu</nowiki>
|offset=10em
|page=
|[[Bananas]] {{!}} [[Out]] {{!}} [[For]] {{!}} [[Harambe]]</nowiki>
}}
Produces the following: