Difference between revisions of "Template:List MenuEntries"
From Salem Wiki
m (Changing menu value for "any" listing and introducing "this" value. Also correcting link target) |
m (Changing default text for no results.) |
||
Line 41: | Line 41: | ||
}}are:<ul> | }}are:<ul> | ||
|outro=</ul> | |outro=</ul> | ||
− | |default=no entries found. | + | |default=no Non-menu entries found. |
|format=template | |format=template | ||
|template=List MenuEntries/query template | |template=List MenuEntries/query template | ||
|link=none<!-- disable automatic turning results into links --> | |link=none<!-- disable automatic turning results into links --> | ||
}}<noinclude>{{documentation}}</noinclude> | }}<noinclude>{{documentation}}</noinclude> |
Revision as of 13:14, 17 June 2012
Non-menu entries are:
- 'Shroom-Stuffed Bellpepper.
- 'Shrooms-on-a-Stick.
- ... Home.
- ... to Providence.
- A Fish in the Reeds.
- A Rabbit in the Cabbage.
- A Side of Venison.
- A Snake in the Grass.
- A Taste of Autumn.
- A Taste of The New World.
- A Walk on the Wild Side.
- Acorn Indian.
- Admiral's Uniform.
- Adventurer's Boots.
- Adventurer's Hat.
- Adventurer's Jacket.
- Adventurer's Pants.
- Adventurer's Shoes.
- Adventurer's Trailmix.
- Alchemist's Hat.
- Alchemist's Pants.
- Alchemists Robes.
- Alchemy Table.
- Amber Coarse-Grain Thread.
- Amber Pin.
- Anadama Bread.
- Another Brick.
- Antler Buttons.
- Anvil.
- Any Glowworm.
- Argomoon.
- Argopelter Cape.
- Argopelter Trophy.
- Aspen Masque.
- At the Ready.
- Autumn Delight.
- Aztec Abattoir.
- Badge of Aggression.
- Badge of Battery.
- Badge of Carnage.
- NewHaven:Badge of Carnage.
- Badge of Fyre.
- Badge of Intrusion.
- Badge of Plunder.
- Badge of Ruin.
- Baguettes.
- Bajgiel.
- Bar of Bubbly Soap.
- Bar of Rose Scented Soap.
- Bark Binder. ... further results
Template documentation (for the template shown above, sometimes hidden or invisible)
Description
- This template is used to automatically list the non-menu entries of a GameMenu using an SMW-Query.
- It uses {{List MenuEntries/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 MenuEntries}}
- It can accept one parameter to select a specific menu to list, to accommodate usage on any page.
- This optional named parameter is called menu and controls which info is displayed according to its value:
- this
- List non-menu pages that have Property:isinGameMenu set to the last part of the pagename where you invoke this template in. (eg. 'sub' for page 'main/sub')
- This is the default for normal pages, see below for exception.
- any
- List all non-menu pages that have Property:isinGameMenu set to any value. (SMW-Query conditon-value '+')
- This is the default when in the Template-namespace.
- When using anything other as this or any
- It will use the last part of this value as a SMW-Query conditon-value for Property:isinGameMenu to select pages. (eg. 'sub' for 'main/sub')
- It will use the last part of this value to display as menu-name. (eg. 'sub' for 'main/sub')
- It will use the whole value as link-target for the displayed menu-name. (eg. 'main/sub' for 'main/sub')
- So unless you have redirect-pages setup, you should use the whole path of the menu-structure to list entries of some menu on any-other pages !
- Example: 'Build' as value would properly display the non-menu entries for the Build menu, but it would link to a page named "Build" and not the one inside the menu-hierarchy, which would be "GameMenu/Build" in this case...
- this
Examples
- {{List MenuEntries}} gives:
Non-menu entries are:- 'Shroom-Stuffed Bellpepper.
- 'Shrooms-on-a-Stick.
- ... Home.
- ... to Providence.
- A Fish in the Reeds.
- A Rabbit in the Cabbage.
- A Side of Venison.
- A Snake in the Grass.
- A Taste of Autumn.
- A Taste of The New World.
- A Walk on the Wild Side.
- Acorn Indian.
- Admiral's Uniform.
- Adventurer's Boots.
- Adventurer's Hat.
- Adventurer's Jacket.
- Adventurer's Pants.
- Adventurer's Shoes.
- Adventurer's Trailmix.
- Alchemist's Hat.
- Alchemist's Pants.
- Alchemists Robes.
- Alchemy Table.
- Amber Coarse-Grain Thread.
- Amber Pin.
- Anadama Bread.
- Another Brick.
- Antler Buttons.
- Anvil.
- Any Glowworm.
- Argomoon.
- Argopelter Cape.
- Argopelter Trophy.
- Aspen Masque.
- At the Ready.
- Autumn Delight.
- Aztec Abattoir.
- Badge of Aggression.
- Badge of Battery.
- Badge of Carnage.
- NewHaven:Badge of Carnage.
- Badge of Fyre.
- Badge of Intrusion.
- Badge of Plunder.
- Badge of Ruin.
- Baguettes.
- Bajgiel.
- Bar of Bubbly Soap.
- Bar of Rose Scented Soap.
- Bark Binder. ... further results
- {{List MenuEntries|menu=GameMenu/Build}} gives:
Non-menu entries you can find in the Build-menu are:
Visit Template:List MenuEntries/doc to edit this text! (How does this work?)