Difference between revisions of "Template:List Submenus/doc"

From Salem Wiki
Jump to: navigation, search
(Initial setup)
 
m (Protected "Template:List Submenus/doc": Documentation of key-feature ([edit=sysop] (indefinite) [move=sysop] (indefinite)))
 
(3 intermediate revisions by the same user not shown)
Line 2: Line 2:
 
:This template is used to automatically list the submenus of a [[GameMenu]] using an SMW-Query.
 
:This template is used to automatically list the submenus of a [[GameMenu]] using an SMW-Query.
 
:It uses {{t|List Submenus/query template}} for output formating.
 
:It uses {{t|List Submenus/query template}} for output formating.
 +
:This template is used by {{t|GameMenu intro}}.
 +
 +
:;See these pages for more SMW-documentation<nowiki>:</nowiki>
 +
:*[http://semantic-mediawiki.org/wiki/Help:Selecting_pages Help:Selecting pages]
 +
:*[http://semantic-mediawiki.org/wiki/Help:Displaying_information Help:Displaying information]
 +
:*[http://semantic-mediawiki.org/wiki/Help:Template_format Help:Template format].
 +
 
==Syntax==
 
==Syntax==
 
:Type the below code somewhere on a page:
 
:Type the below code somewhere on a page:

Latest revision as of 18:35, 25 July 2012

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

  1. {{List Submenus}} gives:
    Sub-menus you can find in the Main-menu are:
  2. {{List Submenus|page=GameMenu/Build}} gives:
    Sub-menus you can find in the Build-menu are: