Template:GM/box/doc: Difference between revisions

From Ring of Brodgar
Jump to navigation Jump to search
m (add: Usage & Example)
m (bit more doc)
Line 4: Line 4:


===Example===
===Example===
:<nowiki>{{Key_box|</nowiki> '''$'''MenuItem1 | Menu'''$'''Item2 | MenuItem'''$'''3 | MenuItem4}}
:<nowiki>{{Key_box|</nowiki> '''$'''Menu Item 1 | Menu '''$'''Item 2 | Menu Ite'''$'''m 3 | Menu Item '''$'''4| Menu Item 5}}
:{{Key_box| $MenuItem1 | Menu$Item2 | MenuItem$3 | MenuItem4}}
:{{Key_box| $Menu Item 1 | Menu $Item 2 | Menu Ite$m 3 | Menu Item $4 | Menu Item 5}}
:or
:<nowiki>{{ Key_box</nowiki>
:| '''$'''Menu Item 1
:| Menu '''$'''Item 2
:| Menu Ite'''$'''m 3  
:| Menu Item '''$'''4
:| Menu Item 5
:}}
:{{Key_box
| $Menu Item 1
| Menu $Item 2
| Menu Ite$m 3  
| Menu Item $4
| Menu Item 5
}}


===Info===
===Info===
Line 11: Line 26:
:Currently supporting up to 6 parameters. (anonymous type)
:Currently supporting up to 6 parameters. (anonymous type)
:Target the used menu-key with a leading '$' character.
:Target the used menu-key with a leading '$' character.
:Uses Key_ws template.
:Uses templates: [[Template:Key_ws|Key_ws]], [[Template:Str_us2sp|Str_us2sp]], [[Template:Str_sp2us|Str_sp2us]]

Revision as of 17:18, 30 April 2015

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}}
Template:Key box
or
{{ Key_box
| $Menu Item 1
| Menu $Item 2
| Menu Ite$m 3
| Menu Item $4
| Menu Item 5
}}
Template:Key box

Info

General "menu path to feature" box ...
Currently supporting up to 6 parameters. (anonymous type)
Target the used menu-key with a leading '$' character.
Uses templates: Key_ws, Str_us2sp, Str_sp2us