Template:GM/sub/doc: Difference between revisions

From Ring of Brodgar
Jump to navigation Jump to search
(→‎Used templates: + prop-legacy)
m (→‎Info: add redirect usage note towards "GM"/"Menu usage box" template.)
Line 6: Line 6:
:Use a leading $ character to target the used menu short-cut key.
:Use a leading $ character to target the used menu short-cut key.
:(''Only intended, and tested, with one '$' instance per string.'')
:(''Only intended, and tested, with one '$' instance per string.'')
:'''(''Only intended to be used from "GM"/"Menu usage box" template.'')'''


===Usage===
===Usage===

Revision as of 11:58, 15 February 2019

Info

Main Game-Menu(GM) bar template.
Currently supporting up to 6 parameters. (anonymous type)
Use a leading $ character to target the used menu short-cut key.
(Only intended, and tested, with one '$' instance per string.)
(Only intended to be used from "GM"/"Menu usage box" template.)

Usage

{{Menu_usage_box|String1|String2|..|String6}}
or with the preferred shorter name:
{{GM|String1|String2|..|String6}}

Example

Leading and trailing string spaces in examples are optional.
{{GM| $Menu Item 1 | Menu $Item 2 | Menu Ite$m 3 | Menu Item $4| Menu Item 5}}
Output: Template:Key box
or
{{GM
| $Menu Item 1
| Menu $Item 2
| Menu Ite$m 3
| Menu Item $4
| Menu Item 5
}}
Output: Template:Key box


Used templates

Menu_usage-set_prop .. Property assignments.
Menu_usage-set_catg .. Category assignments.
Menu_usage-set_prop-Legacy .. Property assignments. (Legacy specific)
Menu_usage-set_catg-Legacy .. Category assignments. (Legacy specific)
Key_box .. Graphics.
Key_ws .. Short-cut-key part.
Str_us2sp
Str_sp2us