Template:GM/box/doc: Difference between revisions

From Ring of Brodgar
Jump to navigation Jump to search
m (bit more doc)
m (more Doc)
Line 1: Line 1:
<includeonly>[[Category:General wiki templates|{{PAGENAME}}]]</includeonly><noinclude>[[Category:Template documentation|{{PAGENAME}}]]</noinclude>
<includeonly>[[Category:General wiki templates|{{PAGENAME}}]]</includeonly><noinclude>[[Category:Template documentation|{{PAGENAME}}]]</noinclude>
===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 [[template:key|key]] template call.
:(''Only intended, and tested, with one '$' instance per string.'')
===Usage===
===Usage===
:<code>{{t|Key_box|String1|String2|..|String6}}</code>
:<code>{{t|Key_box|String1|String2|..|String6}}</code>
Line 5: Line 12:
===Example===
===Example===
:<nowiki>{{Key_box|</nowiki> '''$'''Menu Item 1 | Menu '''$'''Item 2 | Menu Ite'''$'''m 3 | Menu Item '''$'''4| Menu Item 5}}
:<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}}
:Output: {{Key_box| $Menu Item 1 | Menu $Item 2 | Menu Ite$m 3 | Menu Item $4 | Menu Item 5}}
:or
:or
:<nowiki>{{ Key_box</nowiki>
:<nowiki>{{ Key_box</nowiki>
Line 14: Line 21:
:| Menu Item 5
:| Menu Item 5
:}}
:}}
:{{Key_box
:Output: {{Key_box
| $Menu Item 1  
| $Menu Item 1  
| Menu $Item 2  
| Menu $Item 2  
Line 21: Line 28:
| Menu Item 5
| Menu Item 5
}}
}}
:''Leading and trailing string spaces in examples are optional.''


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

Revision as of 09:29, 3 May 2015

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.)

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