Template:GM/box: Difference between revisions
Jump to navigation
Jump to search
m (disable nowrap - table (test)) |
(Allow for dummy GM call (no parm's) to show just used icon. (not to sure about rest of GM in relation to no parm's case)) |
||
Line 10: | Line 10: | ||
border: 1px solid LightBlue; | border: 1px solid LightBlue; | ||
">[[File:Icon_keyboard.png|x32px]]</td><td style = " | ">[[File:Icon_keyboard.png|x32px]]{{ | ||
#if:{{{1|}}}|</td><td style = " | |||
border: 1px solid LightBlue; | |||
padding: 0px 5px; | |||
//white-space: nowrap; | |||
">{{ | ">{{ | ||
#if:{{{1|}}}|{{Str_us2sp|{{Key_ws|{{Str_sp2us|{{{1}}}}}}}}}}}{{ | |||
#if:{{{2|}}}| > {{Str_us2sp|{{Key_ws|{{Str_sp2us|{{{2}}}}}}}}}}}{{ | |||
#if:{{{3|}}}| > {{Str_us2sp|{{Key_ws|{{Str_sp2us|{{{3}}}}}}}}}}}{{ | |||
#if:{{{4|}}}| > {{Str_us2sp|{{Key_ws|{{Str_sp2us|{{{4}}}}}}}}}}}{{ | |||
#if:{{{5|}}}| > {{Str_us2sp|{{Key_ws|{{Str_sp2us|{{{5}}}}}}}}}}}{{ | |||
#if:{{{6|}}}| > {{Str_us2sp|{{Key_ws|{{Str_sp2us|{{{6}}}}}}}}} | |||
}} | |||
}}</td></tr></table></includeonly><noinclude>{{documentation}} | |||
<!-- More Human readable version: | <!-- More Human readable version: |
Revision as of 15:18, 9 February 2020
Template documentation (for the template shown above, sometimes hidden or invisible)
Info
- General "menu path to feature" template.
- Currently supporting up to 6 parameters. (anonymous type)
- Use a leading '$' character to target a string character.
- Targeted character gets enclosed by a Key/box template call.
- (Only intended, and tested, with one '$' instance per string.)
- (Only intended to be used from "GM"/"GM/sub" template.)
Usage
{{GM/box|String1|String2|..|String6}}
Example
- {{GM/box| $Menu Item 1 | Menu $Item 2 | Menu Ite$m 3 | Menu Item $4| Menu Item 5}}
- Output:
Template:Key ws > Template:Key ws > Template:Key ws > Template:Key ws > Template:Key ws - or
- {{GM/box
- | $Menu Item 1
- | Menu $Item 2
- | Menu Ite$m 3
- | Menu Item $4
- | Menu Item 5
- }}
- Output:
Template:Key ws > Template:Key ws > Template:Key ws > Template:Key ws > Template:Key ws - Leading and trailing string spaces in examples are optional.
Used templates
Visit Template:GM/box/doc to edit this text! (How does this work?)