More actions
mNo edit summary |
mNo edit summary |
||
| (3 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
{{:Template:ScuffedMenu/doc}} | {{:Template:ScuffedMenu/doc}} | ||
<onlyinclude><includeonly><div class="noexcerpt" style="margin-left:{{{offset|0}}};margin-top:{{{voffset|-1. | <onlyinclude><includeonly><div class="noexcerpt" style="font-size:.8em;margin-left:{{{offset|0}}};margin-top:{{{voffset|-1.5em;}}}"> | ||
<span style="font-size:1.5em;vertical-align:.05em">'''↳ </span>{{#if:{{{page|}}} | |||
|{{{page}}} | |{{{page}}} → | ||
|{{#ifeq:{{{page}}}| | |{{#ifeq:{{{page}}}| | ||
| | | | ||
|{{SUBPAGENAME}} | |{{SUBPAGENAME}} → | ||
}} | }} | ||
}}'''{{{1}}} | }} '''{{{1}}}</div></includeonly></onlyinclude> | ||
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:
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: