Template:GM/box: Difference between revisions
Jump to navigation
Jump to search
(Replace table code (html => css), +Inline support (Main GM template).) |
m (Name fix.) |
||
Line 38: | Line 38: | ||
{{{1}}} //pass parm 1 text. | {{{1}}} //pass parm 1 text. | ||
}} //close:sp2us | }} //close:sp2us | ||
}} //close: | }} //close:Key_ws | ||
}} //close:us2sp | }} //close:us2sp | ||
}} //close:if | }} //close:if |
Revision as of 06:09, 8 September 2024
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:
- or
- {{GM/box
- | $Menu Item 1
- | Menu $Item 2
- | Menu Ite$m 3
- | Menu Item $4
- | Menu Item 5
- }}
- Output:
- Leading and trailing string spaces in examples are optional.
Used templates
Visit Template:GM/box/doc to edit this text! (How does this work?)