Difference between revisions of "Template:GameMenu intro"
From Salem Wiki
m (Added auto-setting of 'Has icon') |
ShadowTani (talk | contribs) m |
||
(9 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | {{#set:isGameMenu=y}}{{#ifeq: GameMenu | + | {{#set:isGameMenu=y}}<!-- |
− | + | -->{{#ifeq: GameMenu | |
− | + | | {{#ifeq: {{SUBJECTSPACE: {{{page|{{FULLPAGENAME}} }}} }} | |
− | + | | {{ns:Template}} | |
− | + | | GameMenu | |
− | + | | {{PAGENAME}} | |
− | + | }} | |
− | + | | [[Image:Menu GameMenu.png]][[Image:Menu GameMenu2.png]]<br />{{-}} | |
− | + | | {{#set:isinGameMenu={{#titleparts: {{PAGENAME}}|1|-2}} | |
− | + | }}{{#set:Has icon=Image:Menu Button {{#titleparts: {{PAGENAME}}||-1}}.png | |
− | + | }}<h2>[[Image:Menu Button {{#titleparts: {{PAGENAME}}||-1}}.png|baseline]] About</h2> | |
− | |||
− | |||
− | |||
− | |||
− | |||
}} | }} | ||
− | |||
This page is about the {{#ifeq: GameMenu | This page is about the {{#ifeq: GameMenu | ||
| {{#ifeq: {{SUBJECTSPACE: {{{page|{{FULLPAGENAME}} }}} }} | | {{#ifeq: {{SUBJECTSPACE: {{{page|{{FULLPAGENAME}} }}} }} | ||
Line 23: | Line 17: | ||
| {{PAGENAME}} | | {{PAGENAME}} | ||
}} | }} | ||
− | | '''''Main''''' | + | | '''''Main''''' |
| '''''{{#titleparts: {{PAGENAME}}||-1}}''''' sub- | | '''''{{#titleparts: {{PAGENAME}}||-1}}''''' sub- | ||
}}menu of the game and will mention pages relevant to what one can find inside it. | }}menu of the game and will mention pages relevant to what one can find inside it. | ||
Line 33: | Line 27: | ||
}} | }} | ||
| | | | ||
− | | <br/>This sub-menu can be found inside the [[{{#titleparts: {{PAGENAME}}|-1}} | '''''{{#ifeq: {{#titleparts: {{PAGENAME}}|1|-2}} | GameMenu | Main | {{#titleparts: {{PAGENAME}}|1|-2}} }}''''']]-menu. | + | | <br/>This sub-menu can be found inside the [[{{#titleparts: {{PAGENAME}}|-1}} | '''''{{#ifeq: {{#titleparts: {{PAGENAME}}|1|-2}} |
+ | | GameMenu | ||
+ | | Main | ||
+ | | {{#titleparts: {{PAGENAME}}|1|-2}} | ||
+ | }}''''']]-menu. | ||
}}<br/> | }}<br/> | ||
*{{List Submenus}} | *{{List Submenus}} | ||
− | *{{List MenuEntries|menu={{#ifeq: {{SUBJECTSPACE: {{{page|{{FULLPAGENAME}} }}} }} | + | *{{List MenuEntries|menu={{ #ifeq: {{SUBJECTSPACE: {{{page|{{FULLPAGENAME}} }}} }} |
| {{ns:Template}} | | {{ns:Template}} | ||
| GameMenu | | GameMenu | ||
| this | | this | ||
}} | }} | ||
− | }} | + | }}<!-- |
− | <noinclude>{{documentation}}</noinclude> | + | --><includeonly>[[Category:Content|{{#titleparts: {{PAGENAME}}||-1}}]]</includeonly><!-- |
+ | --><noinclude>{{documentation}}</noinclude> |
Latest revision as of 10:07, 24 July 2015
This page is about the Main menu of the game and will mention pages relevant to what one can find inside it.
- Sub-menus you can find in the Main-menu are:
- no Non-menu entries found.Template documentation (for the template shown above, sometimes hidden or invisible)
Description
- This template is used to automatically list the intro part of GameMenu pages to provide a consistent look&feel for these kind of pages.
- It makes use of {{List Submenus}} and {{List MenuEntries}} to generate automatic lists using SMW-Queries.
Syntax
- Type the below code on top of a game-menu page:
{{GameMenu intro}}
- It defaults to list info related to the current sub-pagename where you invoke this template in.
- Except when in the Template-namespace; In this case it will default to "GameMenu" which is the main-menu of the game.
Examples
See the pages starting at GameMenu.
Visit Template:GameMenu intro/doc to edit this text! (How does this work?)