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

From blackwiki
Jump to navigation Jump to search
imported>Mxn
(Removed interwikis)
imported>Lfdder
Line 9: Line 9:
 
====Adding the block "Letter X with diacritics"====
 
====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"
 
* When the parameter is "A" (or À: with or without diacritics), the block is added "Letter A with diacritics"
* {{tlx|Latin alphabet|<nowiki>A</nowiki>}} → {{Latin alphabet|A|show pairs=no}}
+
* {{tlx|Latin alphabet|<nowiki>A</nowiki>}} →
 +
{{Latin alphabet|A|show pairs=no}}
  
 
====Adding the block "Letters with diacritic ^"====
 
====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 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>}}
 
* 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>}} → {{Latin alphabet|A|show diacritic=circumflex|show pairs=no}}
+
* {{tlx|Latin alphabet|<nowiki>A|show diacritic=circumflex</nowiki>}} →
 +
{{Latin alphabet|A|show diacritic=circumflex|show pairs=no}}
  
 
====Adding the block "Pairs with Letter X"====
 
====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 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:
 
* When the parameter <code>show pairs=yes/no</code> is set, the pairs will show/hide accordingly:
{{tlx|Latin alphabet|<nowiki>À|show pairs=yes</nowiki>}} → {{Latin alphabet|À|show pairs=yes}}
+
{{tlx|Latin alphabet|<nowiki>À|show pairs=yes</nowiki>}} →
 +
{{Latin alphabet|À|show pairs=yes}}
  
 
====More options====
 
====More options====
 
* When the parameter <code>show diacritic 2=</code> is used, a second block of diacritics will be shown:
 
* When the parameter <code>show diacritic 2=</code> is used, a second block of diacritics will be shown:
* {{tlx|Latin alphabet|<nowiki>A|show diacritic=grave|show diacritic 2=circumflex</nowiki>}} → {{Latin alphabet|A|show diacritic=grave|show diacritic 2=circumflex|show pairs=no}}
+
* {{tlx|Latin alphabet|<nowiki>A|show diacritic=grave|show diacritic 2=circumflex</nowiki>}} →
 +
{{Latin alphabet|A|show diacritic=grave|show diacritic 2=circumflex|show pairs=no}}
  
 
===Parameter list===
 
===Parameter list===
Line 51: Line 55:
 
* {{lts|Latin alphabet}}
 
* {{lts|Latin alphabet}}
 
* {{lts|Latin alphabet navbox}}
 
* {{lts|Latin alphabet navbox}}
 
  
 
<includeonly><!--
 
<includeonly><!--

Revision as of 03:36, 19 April 2014

Usage

Basic examples

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"
  • {{Latin alphabet|A}}

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: {{Latin alphabet|A|show diacritic=grave}}
  • {{Latin alphabet|A|show diacritic=circumflex}}

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 show pairs=yes/no is set, the pairs will show/hide accordingly:

{{Latin alphabet|À|show pairs=yes}}

More options

  • When the parameter show diacritic 2= is used, a second block of diacritics will be shown:
  • {{Latin alphabet|A|show diacritic=grave|show diacritic 2=circumflex}}

Parameter list

The full parameter list:

{{Latin alphabet
|
| show diacritic =
| show diacritic 2 =
| show letter = 
| show pairs = 
}}

Input options are:

First, unnamed parameter: (default: the PAGENAME). The input where information is derived from: which basic A-Z letter, which diacritic is used?
show diacritic: (default: derived from first parameter). Which diacritic is shown: acute, hook, ... Also: if set to show diacritic=no the diacritic blok will not be shown at all.
show diacritic 2: Allows for the block of a second diacritic being shown. Currently automatically for "dot" (shows dot above and dot below).
show letter: (default: determined from input 1). Sets which block "Letter X with diacritics" is shown. Also: if set to show letter=no the diacritic blok will not be shown at all.
show pairs: (default:yes if input 1 = A-Z). If set to "yes", all pairs with basic input 1-letter are shown.

Editing the template

Technical background

See also