Template:ScuffedMenu: Difference between revisions

Template page
No edit summary
Tag: wikieditor
No edit summary
Tag: wikieditor
 
(11 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly><div style="margin-left:{{{offset|0}}};margin-top:-1em;">↳ <sub>{{{1}}}</sub></div></includeonly>
<noinclude>==Usage==
<code>{{ScuffedMenu</code><br>
<code>|offset=</code><br>
<code>|</code><br>
<code>}}</code><br>
----
==Note==
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
----
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]]
}}
----
==Example 2==
  <nowiki>{{ScuffedMenu</nowiki>
  |offset=10em
  |<nowiki>[[Bananas]] {{!}} [[Out]] {{!}} [[For]] {{!}} [[Harambe]]</nowiki>
  }}
Produces the following:
{{ScuffedMenu
|offset=10em
|[[Bananas]] {{!}} [[Out]] {{!}} [[For]] {{!}} [[Harambe]]
}}
 
</noinclude>
<includeonly><div style="margin-left:{{{offset|0}}};margin-top:{{{voffset|-1.2em;}}}">{{{arrow|''''''}}}<sub>'''{{{current|{{#explode:{{PAGENAME}}|/|-1}}}}}{{{currentarrow| →}}}''' {{{1}}}</sub></div></includeonly>

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

ScuffedMenu → Bananas | Out For | Harambe

Example 2

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

Produces the following:

ScuffedMenu → Bananas | Out | For | Harambe