Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:ScuffedMenu: Difference between revisions

Template page
m test
test
Line 1: Line 1:
{{:Template:ScuffedMenu/doc}}
{{:Template:ScuffedMenu/doc}}
<onlyinclude><includeonly><div class="noexcerpt" style="margin-left:{{{offset|0}}};margin-top:{{{voffset|-1.2em;}}}">
<onlyinclude><includeonly><div class="noexcerpt" style="margin-left:{{{offset|0}}};margin-top:{{{voffset|-1.2em;}}}">
'''↳ '''<sub>{{#if:{{{page|}}}
'''↳ '''{{#if:{{{page|}}}
|'''{{{page}}} →'''
|<sub>'''{{{page}}}</sub> → '''
|{{#ifeq:{{{page}}}|
|{{#ifeq:{{{page}}}|
  |
  |
  |'''{{SUBPAGENAME}} →'''
  |<sub>'''{{SUBPAGENAME}}</sub> <sub>'''
  }}
  }}
}} {{{1}}}</sub></div></includeonly></onlyinclude>
}}{{{1}}}</sub></div></includeonly></onlyinclude>

Revision as of 13:32, 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:

ScuffedMenuBananas | Out For | Harambe


Example 2 - offset=10em

{{ScuffedMenu</nowiki>
|offset=10em
|[[Bananas]] {{!}} [[Out]] {{!}} [[For]] {{!}} [[Harambe]]</nowiki>
}}

Produces the following:

ScuffedMenuBananas | Out | For | Harambe


Example 3 - page=schlong

{{ScuffedMenu</nowiki>
|offset=10em
|page=schlong
|[[Bananas]] {{!}} [[Out]] {{!}} [[For]] {{!}} [[Harambe]]</nowiki>
}}

Produces the following:

schlongBananas | Out | For | Harambe

Example 4 - no current page → page=

{{ScuffedMenu</nowiki>
|offset=10em
|page=
|[[Bananas]] {{!}} [[Out]] {{!}} [[For]] {{!}} [[Harambe]]</nowiki>
}}

Produces the following:

Bananas | Out | For | Harambe