Difference between revisions of "Template:List Submenus"
From Salem Wiki
m (Trying to prevent html-code polution) |
m (auto-link menu-name to its page) |
||
Line 7: | Line 7: | ||
| {{#titleparts: {{{page|{{PAGENAME}} }}} ||-1 }} | | {{#titleparts: {{{page|{{PAGENAME}} }}} ||-1 }} | ||
}}]] | }}]] | ||
− | |intro=Sub-menus you can find in the '''''{{#ifeq: | + | |intro=Sub-menus you can find in the [[{{#ifeq: |
+ | {{SUBJECTSPACE: {{{page|{{FULLPAGENAME}} }}} }} | ||
+ | | {{ns:Template}} | ||
+ | | GameMenu | ||
+ | | {{{page|{{PAGENAME}} }}} | ||
+ | }}<!-- | ||
+ | -->|<!-- | ||
+ | -->'''''{{#ifeq: | ||
{{#ifeq: | {{#ifeq: | ||
{{SUBJECTSPACE: {{{page|{{FULLPAGENAME}} }}} }} | {{SUBJECTSPACE: {{{page|{{FULLPAGENAME}} }}} }} | ||
Line 17: | Line 24: | ||
| Main | | Main | ||
| {{#titleparts: {{{page|{{PAGENAME}} }}} ||-1}} | | {{#titleparts: {{{page|{{PAGENAME}} }}} ||-1}} | ||
− | + | }}'''''<!-- | |
+ | -->]]-menu are:<ul><li> | ||
|sep=</li><li> | |sep=</li><li> | ||
|outro=</li></ul> | |outro=</li></ul> |
Revision as of 16:50, 15 June 2012
Sub-menus you can find in the Main-menu are:
Template documentation (for the template shown above, sometimes hidden or invisible)
Description
- This template is used to automatically list the submenus of a GameMenu using an SMW-Query.
- It uses {{List Submenus/query template}} for output formating.
- This template is used by {{GameMenu intro}}.
- See these pages for more SMW-documentation:
Syntax
- Type the below code somewhere on a page:
{{List Submenus}}
- It can accept one parameter to select a specific menu to list, to accommodate usage on any page.
- This optional named parameter is called page
- It defaults to the 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
- {{List Submenus}} gives:
Sub-menus you can find in the Main-menu are: - {{List Submenus|page=GameMenu/Build}} gives:
Sub-menus you can find in the Build-menu are:
Visit Template:List Submenus/doc to edit this text! (How does this work?)