Difference between revisions of "Template:Latin script/doc"

From blackwiki
Jump to navigation Jump to search
(Undid revision 444341978 by 84.0.240.40 (talk) sorry, accident)
imported>DePiep
(+examples)
Line 4: Line 4:
  
 
===Basic examples===
 
===Basic examples===
* Input: A, single letter: {{tlx|Latin alphabet|<nowiki>A|</nowiki>}} &rarr;
+
* Input parameter #1: À, single letter: {{tlx|Latin alphabet|<nowiki>À</nowiki>}} &rarr;
{{Latin alphabet|A|}}
 
* Input: A, show pairs, and a diacritic: {{tlx|Latin alphabet|<nowiki>A|show diacritic=grave|show pairs=yes</nowiki>}} &rarr;
 
{{Latin alphabet|A|show diacritic=grave|show pairs=yes}}
 
* Input: À, and a diacritic: {{tlx|Latin alphabet|<nowiki>À</nowiki>}} &rarr;
 
 
{{Latin alphabet|À}}
 
{{Latin alphabet|À}}
  
 +
====Adding the block "Letter X with diacritics"====
 +
* When the parameter is "A" (or À: with or without diacritics), the block is added "Letter A with diacritics"
 +
* {{tlx|Latin alphabet|<nowiki>A</nowiki>}} &rarr; {{Latin alphabet|A|show pairs=no}}
 +
 +
====Adding the block "Letters with diacritic ^"====
 +
* When the parameter has a diacritic e.g. Â, the block "All letters with diacritic ^ (circumflex)" is shown.
 +
* When the parameter "show diacritic=" is set, that block will show: {{tlx|Latin alphabet|<nowiki>A|show diacritic=grave</nowiki>}}
 +
* {{tlx|Latin alphabet|<nowiki>A|show diacritic=circumflex</nowiki>}} &rarr; {{Latin alphabet|A|show diacritic=circumflex|show pairs=no}}
 +
 +
====Adding the block "Pairs with Letter X"====
 +
* When the parameter is a straight letter A-Z, the block with letter pairs is shown.
 +
* When the parameter <code>show pairs=yes/no</code> is set, the pairs will show/hide accordingly:
 +
{{tlx|Latin alphabet|À|show pairs=yes}} &rarr; {{Latin alphabet|À|show pairs=yes}}
 +
 +
====More options====
 +
* When the parameter <code>show diacritic 2=</code> is used, a second block of diacritics will be shown:
 +
* {{tlx|Latin alphabet|A|show diacritic=grave|show diacritic 2=circumflex}} &rarr; {{Latin alphabet|A|show diacritic=grave|show diacritic 2=circumflex|show pairs=no}}
 +
 +
* The loption
 
===Parameter list===
 
===Parameter list===
The full parameter list:
+
The full parameter list: <code>show letter=</code> forces the letter to be shown.
 +
* {{tlx|Latin alphabet|A|show letter=Z}} &rarr; {{Latin alphabet|A|show letter=Z|show pairs=no}}
 +
 
 
<pre>
 
<pre>
 
{{Latin alphabet
 
{{Latin alphabet

Revision as of 10:00, 3 September 2011

Usage

Basic examples

Adding the block "Letter X with diacritics"