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

From blackwiki
Jump to navigation Jump to search
imported>DePiep
imported>DePiep
(update into new structure)
Line 1: Line 1:
 
{{Documentation subpage}}
 
{{Documentation subpage}}
 
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE. -->
 
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE. -->
 
 
==Usage==
 
==Usage==
  
===Basic example===
+
===Basic examples===
* Input: A, Single letter:
+
* Input: A, single letter: {{tlx|Latin alphabet|<nowiki>A|</nowiki>}} &rarr;
 
{{Latin alphabet|A|}}
 
{{Latin alphabet|A|}}
* Input: À, all up:
+
* Input: A, show pairs, and a diacritic: {{tlx|Latin alphabet|<nowiki>A|show diacritic=grave|show pairs=yes</nowiki>}} &rarr;
{{Latin alphabet|À|show pairs=yes}}
+
{{Latin alphabet|A|show diacritic=grave|show pairs=yes}}
 +
* Input: À, and a diacritic: {{tlx|Latin alphabet|<nowiki>À</nowiki>}} &rarr;
 +
{{Latin alphabet|À}}
  
 
===Parameter list===
 
===Parameter list===
Line 27: Line 28:
 
:'''''show letter''''': (default: determined from input 1). Sets which block "Letter X with diacritics" is shown. Also: if set to <code>show letter=no</code> the diacritic blok will not be shown at all.
 
:'''''show letter''''': (default: determined from input 1). Sets which block "Letter X with diacritics" is shown. Also: if set to <code>show letter=no</code> 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.
 
:'''''show pairs''''': (default:yes if input 1 = A-Z). If set to "yes", all pairs with basic input 1-letter are shown.
===Custom Usage===
 
  
<code><nowiki>{{Latin alphabet||}}</nowiki></code> gives the basic Latin alphabet:
+
===Editing the template===
{{Latin alphabet||}}
+
;Technical background:
 
+
* Technical: [http://en.wikipedia.org/wiki/Special:PrefixIndex/Template:Latin_alphabet/ all /subpages]
<code><nowiki>{{Latin alphabet|D}}</nowiki></code> gives the basic alphabet plus the combinations associated with [[D]]:
 
{{Latin alphabet|D}}
 
 
 
<code><nowiki>{{Latin alphabet|C|cedilla}}</nowiki></code> gives the basic alphabet plus the combinations associated with [[C]] or with [[cedilla]]:
 
{{Latin alphabet|C|cedilla}}
 
 
 
==Construction==
 
This template produces the basic latin alphabet from Aa to Zz, and a latin alphabet links footer.
 
 
 
It also includes:
 
* Alternate letters, digits, and diacritics
 
* Two-letter and letter/digit combinations
 
  
 
== See also ==
 
== See also ==
 
* {{lts|Latin alphabet}}
 
* {{lts|Latin alphabet}}
 
* {{lts|Latin alphabet navbox}}
 
* {{lts|Latin alphabet navbox}}
 
* Technical: [http://en.wikipedia.org/wiki/Special:PrefixIndex/Template:Latin_alphabet/ all /subpages]
 
  
  

Revision as of 16:57, 28 July 2011

Usage

Basic examples

  • Input: A, show pairs, and a diacritic: {{Latin alphabet|A|show diacritic=grave|show pairs=yes}}

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