Template:GM/sub/doc: Difference between revisions

From Ring of Brodgar
Jump to navigation Jump to search
m (Mvg bot moved page Template:Menu usage box/doc to Template:GM/sub/doc without leaving a redirect: GM name-restructure: Rename Doc Pages.)
(GM name-restructure: Update Call-Names.)
Line 9: Line 9:
===Usage===
===Usage===
:<code>{{t|GM|String1|String2|..|String6}}</code>
:<code>{{t|GM|String1|String2|..|String6}}</code>
:(''Don't call this "Menu usage box" templates directly on main pages. Ie: Always use GM for that.'')
:(''Don't call this "GM/sub" templates directly on main pages. Ie: Always use GM for that.'')


===Example===
===Example===
<!--
<!--
Note: Not using GM/"Menu usage box" in example calls here, to not get the template added as a Menu_Usage property. (should not be a problem btw, due to "annotations namespace restrictions" here.)
Note: Not using GM/"GM/sub" in example calls here, to not get the template added as a Menu_Usage property. (should not be a problem btw, due to "annotations namespace restrictions" here.)
-->
-->
:''Leading and trailing string spaces in examples are optional.''
:''Leading and trailing string spaces in examples are optional.''


:<nowiki>{{GM|</nowiki> '''$'''Menu Item 1 | Menu '''$'''Item 2 | Menu Ite'''$'''m 3 | Menu Item '''$'''4| Menu Item 5}}
:<nowiki>{{GM|</nowiki> '''$'''Menu Item 1 | Menu '''$'''Item 2 | Menu Ite'''$'''m 3 | Menu Item '''$'''4| Menu Item 5}}
:Output: {{Key_box| $Menu Item 1 | Menu $Item 2 | Menu Ite$m 3 | Menu Item $4 | Menu Item 5}}
:Output: {{GM/box| $Menu Item 1 | Menu $Item 2 | Menu Ite$m 3 | Menu Item $4 | Menu Item 5}}
:or
:or
:<nowiki>{{GM</nowiki>
:<nowiki>{{GM</nowiki>
Line 27: Line 27:
:| Menu Item 5
:| Menu Item 5
:}}
:}}
:Output: {{Key_box
:Output: {{GM/box
| $Menu Item 1
| $Menu Item 1
| Menu $Item 2
| Menu $Item 2
Line 37: Line 37:


===Used templates===
===Used templates===
:[[Template:Menu_usage-set_prop|Menu_usage-set_prop]] .. ''Property assignments.''
:[[Template:GM/prop|GM/prop]] .. ''Property assignments.''
:[[Template:Menu_usage-set_catg|Menu_usage-set_catg]] .. ''Category assignments.''
:[[Template:GM/cat|GM/cat]] .. ''Category assignments.''
:[[Template:Menu_usage-set_prop-Legacy|Menu_usage-set_prop-Legacy]] .. ''Property assignments. (Legacy specific)''
:[[Template:GM/prop-Legacy|GM/prop-Legacy]] .. ''Property assignments. (Legacy specific)''
:[[Template:Menu_usage-set_catg-Legacy|Menu_usage-set_catg-Legacy]] .. ''Category assignments. (Legacy specific)''
:[[Template:GM/cat-Legacy|GM/cat-Legacy]] .. ''Category assignments. (Legacy specific)''
:[[Template:Key_box|Key_box]] .. ''Graphics.''
:[[Template:GM/box|GM/box]] .. ''Graphics.''
::[[Template:Key_ws|Key_ws]] .. ''Short-cut-key part.''
::[[Template:GM/keys|GM/keys]] .. ''Short-cut-key part.''
::[[Template:Str_us2sp|Str_us2sp]]
::[[Template:Str_us2sp|Str_us2sp]]
::[[Template:Str_sp2us|Str_sp2us]]
::[[Template:Str_sp2us|Str_sp2us]]

Revision as of 11:07, 12 September 2024

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.)

Usage

{{GM|String1|String2|..|String6}}
(Don't call this "GM/sub" templates directly on main pages. Ie: Always use GM for that.)

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:

Icon keyboard.pngMenu Item 1 > Menu Item 2 > Menu Item 3 > Menu Item 4 > Menu Item 5

or
{{GM
| $Menu Item 1
| Menu $Item 2
| Menu Ite$m 3
| Menu Item $4
| Menu Item 5
}}
Output:

Icon keyboard.pngMenu Item 1 > Menu Item 2 > Menu Item 3 > Menu Item 4 > Menu Item 5


Used templates

GM/prop .. Property assignments.
GM/cat .. Category assignments.
GM/prop-Legacy .. Property assignments. (Legacy specific)
GM/cat-Legacy .. Category assignments. (Legacy specific)
GM/box .. Graphics.
GM/keys .. Short-cut-key part.
Str_us2sp
Str_sp2us