Difference between revisions of "Template:Gamemenu"
From Salem Wiki
m (Text replacement - "efebe5" to "4c4c4c") |
|||
(26 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
<!-- Template START --> | <!-- Template START --> | ||
− | {| style="float:center" | + | {{-}} |
+ | {| align=center style="float:center" | ||
| | | | ||
<!-- Infobox START --> | <!-- Infobox START --> | ||
Line 7: | Line 8: | ||
! style="color:white; font-size:1.4em"|Game Menu | ! style="color:white; font-size:1.4em"|Game Menu | ||
| | | | ||
− | {| style=" | + | {| style="border:black 2px solid; background:#4c4c4c" |
− | | {{#if: {{{parent5|}}} | {{{parent5}}} ({{{key5}}}) | + | | '''{{#if: {{{parent5|}}} | {{{parent5}}} ({{{key5}}}) ⇒ }}{{#if: {{{parent4|}}} | {{{parent4}}} ({{{key4}}}) ⇒ }}{{#if: {{{parent3|}}} | {{{parent3}}} ({{{key3}}}) ⇒ }}{{#if: {{{parent2|}}} | {{{parent2}}} ({{{key2}}}) ⇒ }}{{#if: {{{parent1|}}} | [[IsinGameMenu::{{{parent1}}}]] ({{{key1}}}) ⇒ <includeonly>[[Category:{{{parent1}}} (menu){{!}}{{{key}}}}}}]]</includeonly> | <includeonly>[[Category:Game Menu{{!}}{{{key}}}]]</includeonly> }}{{#if: {{{item|}}} | {{{item}}} ({{{key}}}) }}''' |
|} | |} | ||
<!-- Infobox END --> | <!-- Infobox END --> | ||
|} | |} | ||
+ | {{#ifeq: {{SUBJECTSPACE: {{FULLPAGENAME}}}} | {{ns:Category}} | | {{#set:IsGameMenu=no}}}} | ||
<noinclude> | <noinclude> | ||
{| | {| | ||
Line 23: | Line 25: | ||
:the name of the menu item | :the name of the menu item | ||
;key | ;key | ||
− | :the keyboard shortcut for the item | + | :the keyboard shortcut for the item (the keyboard shortcut on the in-game menu is the letter displayed as yellow in the item name). |
;parent1 | ;parent1 | ||
:the name of the immediate parent menu item | :the name of the immediate parent menu item | ||
Line 29: | Line 31: | ||
:the keyboard shortcut for parent1 | :the keyboard shortcut for parent1 | ||
;parent and key 2, 3, 4, 5 | ;parent and key 2, 3, 4, 5 | ||
− | :parents of the immediate parent up to first level menu items (e.g., adventure) | + | :parents of the immediate parent up to first level menu items (e.g., adventure) |
+ | |||
===Blank code to copy+paste:=== | ===Blank code to copy+paste:=== | ||
|- | |- | ||
| | | | ||
<pre>{{Gamemenu | <pre>{{Gamemenu | ||
− | | item= | + | | item={{PAGENAME}} | key= |
− | | key= | + | | parent1= | key1= |
− | | parent1= | + | | parent2= | key2= |
− | | key1= | + | | parent3= | key3= |
− | | parent2= | + | | parent4= | key4= |
− | | key2= | + | | parent5= | key5= |
− | | parent3= | ||
− | | key3= | ||
− | | parent4= | ||
− | | key4= | ||
− | | parent5= | ||
− | | key5= | ||
}} | }} | ||
</pre> | </pre> | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
|}</noinclude> | |}</noinclude> |
Latest revision as of 18:33, 17 February 2018
|