Difference between revisions of "Template:Gamemenu"

From Salem Wiki
Jump to: navigation, search
(Added properties to show on the GameMenu pages. Will revert if breaks. Have tested on personal page.)
Line 9: Line 9:
 
|
 
|
 
{| style="border:black 2px solid; background:#efebe5"
 
{| style="border:black 2px solid; background:#efebe5"
| '''{{#if: {{{parent5|}}} | {{{parent5}}} ({{{key5}}}) &rArr; }}{{#if: {{{parent4|}}} | {{{parent4}}} ({{{key4}}}) &rArr; }}{{#if: {{{parent3|}}} | {{{parent3}}} ({{{key3}}}) &rArr; }}{{#if: {{{parent2|}}} | {{{parent2}}} ({{{key2}}}) &rArr; }}{{#if: {{{parent1|}}} | {{{parent1}}} ({{{key1}}}) &rArr; <includeonly>[[Category:{{{parent1}}} (menu){{!}}{{{key}}}}}}]]</includeonly> | <includeonly>[[Category:Game Menu{{!}}{{{key}}}]]</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>
 
{|
 
{|

Revision as of 01:50, 25 March 2014


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= | key=
| parent1= | key1=
| parent2= | key2=
| parent3= | key3=
| parent4= | key4=
| parent5= | key5=
}}