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
 
(36 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>==Usage==
{{:Template:ScuffedMenu/doc}}
<code>{{ScuffedMenu</code><br>
<onlyinclude><includeonly><div class="noexcerpt" style="font-size:.8em;margin-left:{{{offset|0}}};margin-top:{{{voffset|-1.5em;}}}">
<code>|offset=</code><br>
<span style="font-size:1.5em;vertical-align:.05em">'''↳ </span>{{#if:{{{page|}}}
<code>|</code><br>
|{{{page}}}
<code>}}</code><br>
|{{#ifeq:{{{page}}}|
----
|
==Note==
|{{SUBPAGENAME}}
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
}} '''{{{1}}}</div></includeonly></onlyinclude>
----
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
  |<nowiki>[[Bananas]] {{!}} [[Out For]] {{!}} [[Harambe]]</nowiki>
  }}
Produces the following:
{{ScuffedMenu
|offset=3.4em
|[[Bananas]] {{!}} [[Out For]] {{!}} [[Harambe]]
}}
</noinclude><includeonly><div style="margin-left:{{{offset|0}}};margin-top:-1em;">↳ <sub>{{{1}}}</sub></div></includeonly>

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