Difference between revisions of "Template:Gamemenu"

From Salem Wiki
Jump to: navigation, search
m (Text replacement - "efebe5" to "4c4c4c")
 
(18 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 
<!-- Template START -->
 
<!-- Template START -->
 +
{{-}}
 
{| align=center style="float:center"
 
{| align=center style="float:center"
 
|
 
|
Line 7: Line 8:
 
! style="color:white; font-size:1.4em"|Game Menu
 
! style="color:white; font-size:1.4em"|Game Menu
 
|
 
|
{| style="border:black 2px solid; background:#efebe5"
+
{| style="border:black 2px solid; background:#4c4c4c"
| '''{{#if: {{{parent5|}}} | {{{parent5}}} ({{{key5}}}) ==>}}{{#if: {{{parent4|}}} | {{{parent4}}} ({{{key4}}}) ==> }}{{#if: {{{parent3|}}} | {{{parent3}}} ({{{key3}}}) ==> }}{{#if: {{{parent2|}}} | {{{parent2}}} ({{{key2}}}) ==>''' }}{{#if: {{{parent1|}}} | {{{parent1}}} ({{{key1}}}) ==> <includeonly>[[Category:Menu {{{parent1}}}]]</includeonly> }}{{#if: {{{item|}}} | {{{item}}} ({{{key}}}) }}'''
+
| '''{{#if: {{{parent5|}}} | {{{parent5}}} ({{{key5}}}) &rArr; }}{{#if: {{{parent4|}}} | {{{parent4}}} ({{{key4}}}) &rArr; }}{{#if: {{{parent3|}}} | {{{parent3}}} ({{{key3}}}) &rArr; }}{{#if: {{{parent2|}}} | {{{parent2}}} ({{{key2}}}) &rArr; }}{{#if: {{{parent1|}}} | [[IsinGameMenu::{{{parent1}}}]] ({{{key1}}}) &rArr; <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


Game Menu
'


When to use this template:

Add at the end of any page that represents a game menu item.

How to use this template:

Breakdown of parameters:

item
the name of the menu item
key
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
the name of the immediate parent menu item
key1
the keyboard shortcut for parent1
parent and key 2, 3, 4, 5
parents of the immediate parent up to first level menu items (e.g., adventure)

Blank code to copy+paste:

{{Gamemenu
| item={{PAGENAME}} | key=
| parent1= | key1=
| parent2= | key2=
| parent3= | key3=
| parent4= | key4=
| parent5= | key5=
}}