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
test
mNo edit summary
 
(14 intermediate revisions by the same user not shown)
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="font-size:.8em;margin-left:{{{offset|0}}};margin-top:{{{voffset|-1.5em;}}}">
'''↳ '''<sub>
<span style="font-size:1.5em;vertical-align:.05em">'''↳ </span>{{#if:{{{page|}}}
{{#if:{{{page|}}}
|{{{page}}} →
|'''{{{page|}}} →'''
|{{#ifeq:{{{page}}}|
|{{#ifeq:{{{page}}}
||
  |
  |
  |'''{{SUBPAGENAME}} →'''
  |{{SUBPAGENAME}} →
  }}
  }}
}} {{{1}}}</sub></div></includeonly></onlyinclude>
}} '''{{{1}}}</div></includeonly></onlyinclude>

Latest revision as of 13:57, 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:

ScuffedMenu → Bananas | Out For | Harambe


Example 2 - offset=10em

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

Produces the following:

ScuffedMenu → Bananas | Out | For | Harambe


Example 3 - page=schlong

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

Produces the following:

schlong → Bananas | 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