Template:ScuffedMenu: Difference between revisions

Template page
No edit summary
Tag: wikieditor
Tag: wikieditor
Line 26: Line 26:
   <nowiki>{{ScuffedMenu</nowiki>
   <nowiki>{{ScuffedMenu</nowiki>
   |offset=10em
   |offset=10em
   |<nowiki>[[Bananas]] {{!}} [[Out For]] {{!}} [[Harambe]]</nowiki>
   |<nowiki>[[Bananas]] {{!}} [[Out]] {{!}} [[For]] {{!}} [[Harambe]]</nowiki>
   }}
   }}
Produces the following:
Produces the following:
{{ScuffedMenu
{{ScuffedMenu
|offset=10em
|offset=10em
|[[Bananas]] {{!}} [[Out For]] {{!}} [[Harambe]]
|[[Bananas]] {{!}} [[Out]] {{!}} [[For]] {{!}} [[Harambe]]
}}
}}


</noinclude>
</noinclude>
<includeonly><div style="margin-left:{{{offset|0}}};margin-top:-1em;">↳ <sub>{{{1}}}</sub></div></includeonly>
<includeonly><div style="margin-left:{{{offset|0}}};margin-top:-1em;">↳ <sub>{{{1}}}</sub></div></includeonly>

Revision as of 16:11, 17 March 2023

Usage

{{ScuffedMenu
|offset=
|
}}


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 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:


Example 2

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

Produces the following:

Bananas | Out | For | Harambe