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
mNo edit summary
mNo edit summary
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>{{:Template:ScuffedMenu/doc}}
<noinclude>{{:Template:ScuffedMenu/doc}}
</noinclude>
</noinclude>
<includeonly><div class="noexcerpt" style="margin-left:{{{offset|0}}};margin-top:{{{voffset|-1.2em;}}}">{{{arrow|'''↳ '''}}}<sub>'''{{{page|{{SUBPAGENAME}}}}}{{{currentarrow| →}}}''' {{{1}}}</sub></div></includeonly>
<includeonly><div class="noexcerpt" style="margin-left:{{{offset|0}}};margin-top:{{{voffset|-1.2em;}}}">{{{arrow|'''↳ '''}}}<sub>{{#if:{{{nocurrent|}}}||'''{{{page|{{SUBPAGENAME}}}}}{{{currentarrow| →}}}'''}} {{{1}}}</sub></div></includeonly>

Latest revision as of 21:07, 20 October 2025

Usage

{{ScuffedMenu
|offset=
|(page=)
|
}}


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 |page= can be used to overwrite the current page.


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
  |[[Bananas]] {{!}} [[Out For]] {{!}} [[Harambe]]
  }}

Produces the following:

ScuffedMenu → Bananas | Out For | Harambe

Example 2

  {{ScuffedMenu
  |offset=10em
  |[[Bananas]] {{!}} [[Out]] {{!}} [[For]] {{!}} [[Harambe]]
  }}

Produces the following:

ScuffedMenu → Bananas | Out | For | Harambe