Templat:Latin alphabet/doc: Perbedaan antara revisi

Konten dihapus Konten ditambahkan
Xqbot (bicara | kontrib)
k Robot: Fixing double redirect to Templat:Huruf Latin
k Robot: Perubahan kosmetika
 
(Satu revisi perantara oleh satu pengguna lainnya tidak ditampilkan)
Baris 1:
{{Documentation subpage}}
#alih [[Templat:Huruf Latin]]{{A templat}}
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE. -->
== Usage ==
 
=== Basic examples ===
* Input parameter #1: À, single letter: {{tlx|Latin alphabet|<nowiki>À</nowiki>}} →
{{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>}} → {{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>}} → {{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|<nowiki>À|show pairs=yes</nowiki>}} → {{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|<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 ===
The full parameter list:
 
<pre>
{{Latin alphabet
|
| show diacritic =
| show diacritic 2 =
| show letter =
| show pairs =
}}
</pre>
Input options are:
:'''''First, unnamed parameter''''': (default: the <small>PAGENAME</small>). 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 <code>show diacritic=no</code> 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 <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.
 
=== Editing the template ===
;Technical background:
* Technical: [[Istimewa:PrefixIndex/Template:Latin alphabet|all /subpages]]
 
== See also ==
* {{lts|Latin alphabet}}
* {{lts|Latin alphabet navbox}}
 
 
<includeonly><!--
++++ PLEASE ADD CATEGORIES AND INTERWIKIS BELOW THIS LINE, INSIDE INCLUDEONLY TAGS, THANK YOU. -->
[[Kategori:Writing system templates|{{PAGENAME}}]]
[[Kategori:Exclude in print]]
</includeonly>