Difference between revisions of "Template:Gamemenu"

From Salem Wiki
Jump to: navigation, search
Line 10: Line 10:
 
| {{#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}}}) >}}{{#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}}}) }}
 
|}
 
|}
<!-- Infobox END -->  
+
<!-- Infobox END -->
 
|}
 
|}
 
<noinclude>
 
<noinclude>

Revision as of 08:16, 22 November 2012

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
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=
}}
Game Menu
Adventure (A) >Travel (L) >...Home (H)