Template:GM/box/doc: Difference between revisions

From Ring of Brodgar
Jump to navigation Jump to search
m (Reverted edits by Ricky (talk) to last revision by MvGulik)
(→‎Info: add redirect usage note towards "GM"/"Menu usage box" template.)
Line 6: Line 6:
:Targeted character gets enclosed by a [[template:key|key]] template call.
:Targeted character gets enclosed by a [[template:key|key]] 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"/"Menu usage box" template.'')'''


===Usage===
===Usage===

Revision as of 12:00, 15 February 2019

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 template call.
(Only intended, and tested, with one '$' instance per string.)
(Only intended to be used from "GM"/"Menu usage box" template.)

Usage

{{Key_box|String1|String2|..|String6}}

Example

{{Key_box| $Menu Item 1 | Menu $Item 2 | Menu Ite$m 3 | Menu Item $4| Menu Item 5}}
Output: Template:Key box
or
{{ Key_box
| $Menu Item 1
| Menu $Item 2
| Menu Ite$m 3
| Menu Item $4
| Menu Item 5
}}
Output: Template:Key box
Leading and trailing string spaces in examples are optional.

Used templates

Key_ws
Str_us2sp
Str_sp2us