More actions
mNo edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
==Usage== | ==Usage== | ||
< | <pre>{{ScuffedMenu | ||
|offset= | |||
|(page=) | |||
| | |||
}}</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 | 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== | ||
===Example 1=== | |||
<pre>{{ScuffedMenu</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=== | ||
<pre>{{ScuffedMenu</nowiki> | |||
|offset=10em | |||
|[[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:
Example 2 - offset=10em
{{ScuffedMenu</nowiki>
|offset=10em
|[[Bananas]] {{!}} [[Out]] {{!}} [[For]] {{!}} [[Harambe]]</nowiki>
}}
Produces the following:
Example 3 - page=schlong
{{ScuffedMenu</nowiki>
|offset=10em
|page=schlong
|[[Bananas]] {{!}} [[Out]] {{!}} [[For]] {{!}} [[Harambe]]</nowiki>
}}
Produces the following:
Example 4 - no current page → page=
{{ScuffedMenu</nowiki>
|offset=10em
|page=
|[[Bananas]] {{!}} [[Out]] {{!}} [[For]] {{!}} [[Harambe]]</nowiki>
}}
Produces the following: