Template:GM/sub: Difference between revisions

From Ring of Brodgar
Jump to navigation Jump to search
m (fixup)
(mros)
Line 1: Line 1:
<includeonly
<includeonly


>{{#switch: {{NAMESPACE}}
>{{ Key_box
| {{ns:legacy}} = {{Menu_usage-set_catg-Legacy|{{{1|}}}|{{{2|}}}|{{{3|}}}|{{{4|}}}|{{{5|}}}|{{{6|}}}}}
| {{{1|}}}
| {{Menu_usage-set_prop|{{{1|}}}|{{{2|}}}|{{{3|}}}|{{{4|}}}|{{{5|}}}|{{{6|}}}}}
| {{{2|}}}
  {{Menu_usage-set_catg|{{{1|}}}|{{{2|}}}|{{{3|}}}|{{{4|}}}|{{{5|}}}|{{{6|}}}}}
| {{{3|}}}
}}{{Key_box|{{{1|}}}|{{{2|}}}|{{{3|}}}|{{{4|}}}|{{{5|}}}|{{{6|}}}
| {{{4|}}}
| {{{5|}}}
| {{{6|}}}
}}<!--
 
-->{{#switch: {{NAMESPACE}}
 
| {{ns:legacy}} =
{{ Menu_usage-set_catg-Legacy
| {{#replace:{{{1|}}}|$}}
| {{#replace:{{{2|}}}|$}}
| {{#replace:{{{3|}}}|$}}
| {{#replace:{{{4|}}}|$}}
| {{#replace:{{{5|}}}|$}}
| {{#replace:{{{6|}}}|$}}
}}
 
| {{ Menu_usage-set_prop
| {{#replace:{{{1|}}}|$}}
| {{#replace:{{{2|}}}|$}}
| {{#replace:{{{3|}}}|$}}
| {{#replace:{{{4|}}}|$}}
| {{#replace:{{{5|}}}|$}}
| {{#replace:{{{6|}}}|$}}
}}
{{ Menu_usage-set_catg
| {{#replace:{{{1|}}}|$}}
| {{#replace:{{{2|}}}|$}}
| {{#replace:{{{3|}}}|$}}
| {{#replace:{{{4|}}}|$}}
| {{#replace:{{{5|}}}|$}}
| {{#replace:{{{6|}}}|$}}
}}
}}</includeonly
}}</includeonly


><noinclude>{{documentation}}</noinclude>
><noinclude>{{documentation}}</noinclude>

Revision as of 18:26, 10 July 2018

Template documentation (for the template shown above, sometimes hidden or invisible)

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

Visit Template:GM/sub/doc to edit this text! (How does this work?)