Template:GM/sub: Difference between revisions
Jump to navigation
Jump to search
(mros) |
(GM name-restructure: Update Call-Names.) |
||
(5 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
<includeonly | <includeonly | ||
>{{ | >{{GM/box | ||
| {{{1|}}} | | {{{1|}}} | ||
| {{{2|}}} | | {{{2|}}} | ||
Line 8: | Line 8: | ||
| {{{5|}}} | | {{{5|}}} | ||
| {{{6|}}} | | {{{6|}}} | ||
| inline={{{inline|}}} | |||
}}<!-- | }}<!-- | ||
Line 13: | Line 14: | ||
| {{ns:legacy}} = | | {{ns:legacy}} = | ||
{{ | {{GM/cat/legacy | ||
| {{#replace:{{{1|}}}|$}} | |||
| {{#replace:{{{2|}}}|$}} | |||
| {{#replace:{{{3|}}}|$}} | |||
| {{#replace:{{{4|}}}|$}} | |||
| {{#replace:{{{5|}}}|$}} | |||
| {{#replace:{{{6|}}}|$}} | |||
}} | |||
{{GM/prop/legacy | |||
| {{#replace:{{{1|}}}|$}} | | {{#replace:{{{1|}}}|$}} | ||
| {{#replace:{{{2|}}}|$}} | | {{#replace:{{{2|}}}|$}} | ||
Line 22: | Line 31: | ||
}} | }} | ||
| {{ | | {{GM/prop | ||
| {{#replace:{{{1|}}}|$}} | | {{#replace:{{{1|}}}|$}} | ||
| {{#replace:{{{2|}}}|$}} | | {{#replace:{{{2|}}}|$}} | ||
Line 30: | Line 39: | ||
| {{#replace:{{{6|}}}|$}} | | {{#replace:{{{6|}}}|$}} | ||
}} | }} | ||
{{ | {{GM/cat | ||
| {{#replace:{{{1|}}}|$}} | | {{#replace:{{{1|}}}|$}} | ||
| {{#replace:{{{2|}}}|$}} | | {{#replace:{{{2|}}}|$}} | ||
Line 38: | Line 47: | ||
| {{#replace:{{{6|}}}|$}} | | {{#replace:{{{6|}}}|$}} | ||
}} | }} | ||
{{#set: Menu_usage_raw ={{{1|}}};{{{2|}}};{{{3|}}};{{{4|}}};{{{5|}}};{{{6|}}};{{{7|}}} }} | |||
}}</includeonly | }}</includeonly | ||
><noinclude>{{documentation}}</noinclude> | ><noinclude>{{documentation}}</noinclude> |
Latest revision as of 12:23, 12 September 2024
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:
- or
- {{GM
- | $Menu Item 1
- | Menu $Item 2
- | Menu Ite$m 3
- | Menu Item $4
- | Menu Item 5
- }}
- Output:
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.
Visit Template:GM/sub/doc to edit this text! (How does this work?)