Template:GM/sub/doc: Difference between revisions

From Ring of Brodgar
Jump to navigation Jump to search
m (Reverted edits by Ricky (talk) to last revision by MvGulik)
mNo edit summary
Line 1: Line 1:
<includeonly>[[Category:General wiki templates|{{PAGENAME}}]]</includeonly><noinclude>[[Category:Template documentation|{{PAGENAME}}]]</noinclude>
<includeonly>[[Category:General wiki templates|{{PAGENAME}}]]</includeonly
><noinclude>[[Category:Template documentation|{{PAGENAME}}]]</noinclude>
===Info===
===Info===
:Main Game-Menu bar template.
:Main Game-Menu(GM) bar template.
:Currently supporting up to 6 parameters. (anonymous type)
:Currently supporting up to 6 parameters. (anonymous type)
:Use a leading $ character to target the used menu short-cut key.
:Use a leading $ character to target the used menu short-cut key.
Line 21: Line 22:
:or
:or
:<nowiki>{{GM</nowiki>
:<nowiki>{{GM</nowiki>
:| '''$'''Menu Item 1  
:| '''$'''Menu Item 1
:| Menu '''$'''Item 2  
:| Menu '''$'''Item 2
:| Menu Ite'''$'''m 3  
:| Menu Ite'''$'''m 3
:| Menu Item '''$'''4
:| Menu Item '''$'''4
:| Menu Item 5
:| Menu Item 5
:}}
:}}
:Output: {{Key_box
:Output: {{Key_box
| $Menu Item 1  
| $Menu Item 1
| Menu $Item 2  
| Menu $Item 2
| Menu Ite$m 3  
| Menu Ite$m 3
| Menu Item $4
| Menu Item $4
| Menu Item 5
| Menu Item 5
Line 37: Line 38:


===Used templates===
===Used templates===
:[[Template:Menu_usage_scan|Menu_usage_scan]] .. ''Property part.''
:[[Template:Menu_usage-set_prop|Menu_usage-set_prop]] .. ''Property assignments.''
:[[Template:Key_box|Key_box]] .. ''Graphic part.''
:[[Template:Menu_usage-set_catg|Menu_usage-set_catg]] .. ''Category assignments.''
:[[Template:Menu_usage-set_catg-Legacy|Menu_usage-set_catg-Legacy]] .. ''Category assignments. (Legacy specific)''
:[[Template:Key_box|Key_box]] .. ''Graphics.''
::[[Template:Key_ws|Key_ws]] .. ''Short-cut-key part.''
::[[Template:Key_ws|Key_ws]] .. ''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 21:26, 9 July 2018

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

{{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_catg-Legacy .. Category assignments. (Legacy specific)
Key_box .. Graphics.
Key_ws .. Short-cut-key part.
Str_us2sp
Str_sp2us