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/doc: Difference between revisions

Template page
mNo edit summary
No edit summary
 
Line 1: Line 1:
==Usage==
==Usage==
<code>{{ScuffedMenu</code><br>
<pre>{{ScuffedMenu
<code>|offset=</code><br>
|offset=
<code>|(page=)</code><br>
|(page=)
<code>|</code><br>
|
<code>}}</code><br>
}}</pre>
Copy-paste:
<pre>{{ScuffedMenu
|offset=3.4em
|[[menu_item_1]] {{!}} [[menu_item_2]] {{!}} [[menu_item_3]]
}}</pre>
----
----
==Note==
==Note==
Line 10: Line 15:
   |offset=3.4em
   |offset=3.4em
----
----
The optional <code>|page=</code> can be used to overwrite the current page.
The optional parameter <code>|page=</code> 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 [https://www.mediawiki.org/wiki/Help:Magic_words#Variables magic word]<code>{<nowiki/>{SUBPAGENAME]}}</code>.
----
----
The empty parameter <code>|</code> should contain the actual menu, with the following structure:
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)
     (menu item 1) <nowiki>{{!}}</nowiki> (menu item 2) <nowiki>{{!}}</nowiki> (menu item 3)
----
----
==Example==
==Examples==
  <nowiki>{{ScuffedMenu</nowiki>
===Example 1===
  |offset=3.4em
<pre>{{ScuffedMenu</nowiki>
  |<nowiki>[[Bananas]] {{!}} [[Out For]] {{!}} [[Harambe]]</nowiki>
|offset=3.4em
  }}
|[[Bananas]] {{!}} [[Out For]] {{!}} [[Harambe]]</nowiki>
}}</pre>
Produces the following:
Produces the following:
{{ScuffedMenu
{{ScuffedMenu
Line 26: Line 34:
}}
}}
----
----
==Example 2==
===Example 2 - offset=10em===
  <nowiki>{{ScuffedMenu</nowiki>
<pre>{{ScuffedMenu</nowiki>
  |offset=10em
|offset=10em
  |<nowiki>[[Bananas]] {{!}} [[Out]] {{!}} [[For]] {{!}} [[Harambe]]</nowiki>
|[[Bananas]] {{!}} [[Out]] {{!}} [[For]] {{!}} [[Harambe]]</nowiki>
  }}
}}</pre>
Produces the following:
{{ScuffedMenu
|offset=10em
|[[Bananas]] {{!}} [[Out]] {{!}} [[For]] {{!}} [[Harambe]]
}}
----
===Example 3 - page=schlong===
<pre>{{ScuffedMenu</nowiki>
|offset=10em
|page=schlong
|[[Bananas]] {{!}} [[Out]] {{!}} [[For]] {{!}} [[Harambe]]</nowiki>
}}</pre>
Produces the following:
{{ScuffedMenu
|offset=10em
|page=schlong
|[[Bananas]] {{!}} [[Out]] {{!}} [[For]] {{!}} [[Harambe]]
}}
===Example 4 - no current page → page= ===
<pre>{{ScuffedMenu</nowiki>
|offset=10em
|page=
|[[Bananas]] {{!}} [[Out]] {{!}} [[For]] {{!}} [[Harambe]]</nowiki>
}}</pre>
Produces the following:
Produces the following:
{{ScuffedMenu
{{ScuffedMenu
|offset=10em
|offset=10em
|page=
|[[Bananas]] {{!}} [[Out]] {{!}} [[For]] {{!}} [[Harambe]]
|[[Bananas]] {{!}} [[Out]] {{!}} [[For]] {{!}} [[Harambe]]
}}
}}

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

doc → Bananas | Out For | Harambe


Example 2 - offset=10em

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

Produces the following:

doc → 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