Template:GM/box/doc: Difference between revisions
< Template:GM | box
Jump to navigation
Jump to search
m (Text replacement - "Category:General wiki templates" to "Category:templates") |
(GM name-restructure: Update Call-Names.) |
||
(3 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
<includeonly>[[Category:templates|{{PAGENAME}}]]</includeonly><noinclude>[[Category:Template documentation|{{PAGENAME}}]]</noinclude> | <includeonly>[[Category:General wiki templates|{{PAGENAME}}]]</includeonly><noinclude>[[Category:Template documentation|{{PAGENAME}}]]</noinclude> | ||
===Info=== | ===Info=== | ||
:General "menu path to feature" template. | :General "menu path to feature" template. | ||
:Currently supporting up to 6 parameters. (anonymous type) | :Currently supporting up to 6 parameters. (anonymous type) | ||
:Use a leading '$' character to target a string character. | :Use a leading '$' character to target a string character. | ||
:Targeted character gets enclosed by a [[template: | :Targeted character gets enclosed by a [[template:Key/box|Key/box]] template call. | ||
:(''Only intended, and tested, with one '$' instance per string.'') | :(''Only intended, and tested, with one '$' instance per string.'') | ||
:'''(''Only intended to be used from "GM"/"GM/sub" template.'')''' | |||
===Usage=== | ===Usage=== | ||
:<code>{{t| | :<code>{{t|GM/box|String1|String2|..|String6}}</code> | ||
===Example=== | ===Example=== | ||
:<nowiki>{{ | :<nowiki>{{GM/box|</nowiki> '''$'''Menu Item 1 | Menu '''$'''Item 2 | Menu Ite'''$'''m 3 | Menu Item '''$'''4| Menu Item 5}} | ||
:Output: {{ | :Output: {{GM/box| $Menu Item 1 | Menu $Item 2 | Menu Ite$m 3 | Menu Item $4 | Menu Item 5}} | ||
:or | :or | ||
:<nowiki>{{ | :<nowiki>{{GM/box</nowiki> | ||
:| '''$'''Menu Item 1 | :| '''$'''Menu Item 1 | ||
:| Menu '''$'''Item 2 | :| Menu '''$'''Item 2 | ||
Line 21: | Line 22: | ||
:| Menu Item 5 | :| Menu Item 5 | ||
:}} | :}} | ||
:Output: {{ | :Output: {{GM/box | ||
| $Menu Item 1 | | $Menu Item 1 | ||
| Menu $Item 2 | | Menu $Item 2 | ||
Line 31: | Line 32: | ||
===Used templates=== | ===Used templates=== | ||
:[[Template: | :[[Template:GM/keys|GM/keys]] | ||
:[[Template:Str_us2sp|Str_us2sp]] | :[[Template:Str_us2sp|Str_us2sp]] | ||
:[[Template:Str_sp2us|Str_sp2us]] | :[[Template:Str_sp2us|Str_sp2us]] |
Latest revision as of 11:08, 12 September 2024
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:
Menu Item 1 > Menu Item 2 > Menu Item 3 > Menu Item 4 > Menu Item 5
- or
- {{GM/box
- | $Menu Item 1
- | Menu $Item 2
- | Menu Ite$m 3
- | Menu Item $4
- | Menu Item 5
- }}
- Output:
Menu Item 1 > Menu Item 2 > Menu Item 3 > Menu Item 4 > Menu Item 5
- Leading and trailing string spaces in examples are optional.