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Ĥ|Î|Ĵ|Ḽ|Ṋ|Ô|Ŝ|Ṱ|Û|Ṷ|Ŵ|Ŷ|Ẑ|circumflex=circumflex
+
|Â|Ĉ|Ḓ|Ê|Ḙ|Ĝ|Ĥ|Î|Ĵ|Ḽ|Ṋ|Ô|Ŝ|Ṱ|Û|Ṷ|Ŵ|X̂|Ŷ|Ẑ|circumflex=circumflex
|Ș|Ț|comma=comma
+
|D̦|Ș|Ț|Ꜯ|comma=comma
 
|Ä|Ë|Ḧ|Ï|Ö|T̈|ẗ|Ü|Ṳ|ᴞ|Ẅ|Ẍ|Ÿ|umlaut|diaeresis=diaeresis
 
|Ä|Ë|Ḧ|Ï|Ö|T̈|ẗ|Ü|Ṳ|ᴞ|Ẅ|Ẍ|Ÿ|umlaut|diaeresis=diaeresis
|Ȧ|Ạ|Ḃ|Ḅ|Ċ|Ḋ|Ḍ|Ė|Ẹ|Ḟ|Ġ|Ḣ|Ḥ|İ|Ị|Ḳ|Ḷ|Ṁ|Ṃ|Ṅ|Ṇ|Ȯ|Ọ|Ṗ|Ṙ|Ṛ|Ṡ|Ṣ|Ṫ|Ṭ|Ụ|Ṿ|Ẇ|Ẉ|Ẋ|Ẏ|Ỵ|Ż|Ẓ|Turkish dotted and dotless I|dot above|dot below|dot=dot
+
|Ȧ|Ạ|Ḃ|Ḅ|Ċ|Ꜿ|Ḋ|Ḍ|Ė|Ẹ|Ḟ|Ġ|Ḣ|Ḥ|İ|Ị|Ḳ|Ŀ|Ḷ|Ṁ|Ṃ|Ṅ|Ṇ|Ȯ|O͘|Ọ|Ṗ|Ṙ|Ṛ|Ṡ|Ṣ|Ṫ|Ṭ|Ụ|Ṿ|Ẇ|Ẉ|Ẋ|X̣|Ẏ|Ỵ|Ż|Ẓ|Turkish dotted and dotless I|dot above|dot below|dot=dot
 
|Ő|Ű|double acute=double acute
 
|Ő|Ű|double acute=double acute
 
|Ȁ|Ȅ|Ȉ|Ȍ|Ȑ|Ȕ|double grave=double grave
 
|Ȁ|Ȅ|Ȉ|Ȍ|Ȑ|Ȕ|double grave=double grave
|À|È|Ì|Ǹ|Ò|Ù|Ẁ|Ỳ|grave=grave
+
|æ̀|ə̀|ɚ̀|i̇̀|Ǹ|Ò|ɔ̀|ʌ̀|Ẁ|Ỳ|grave=grave
|Ɓ|Ƈ|Ɗ|Ƒ|Ɠ|Ɦ|Ƙ|Ɱ|Ƥ|ʠ|ʂ|Ƭ|Ʋ|Ⱳ|Ƴ|hook=hook
+
|Ꞗ|ɕ|ᶝ|ȡ|ᶑ|ɝ|ⱸ|ꬴ|Ƒ|Ɠ|ʛ|ꬶ|ʮ|ʯ|ʱ|Ɦ|ᶨ|Ʝ|ȴ|ᶬ|Ɱ|ꬺ|Ɲ|ȵ|ᶮ|ꬻ|ꬼ|Ꝍ|Ꝓ|Ꝕ|Ɋ|ɻ|ɾ|ɿ|ʵ|Ɽ|ⱹ|ꭉ|ꭊ|ꭌ|ᶳ|Ȿ|ȶ|ꭒ|ꭟ|ᶹ|ⱱ|ⱴ|Ⱳ|Ƴ|Ỿ|Ȥ|ʑ|ᶽ|Ɀ|ƺ|ɚ|ɧ|ʆ|ʓ|hook=hook
 
|Ả|Ẳ|Ẩ|Ẻ|Ể|Ỉ|Ỏ|Ổ|Ở|Ủ|Ử|Ỷ|hook above=hook above
 
|Ả|Ẳ|Ẩ|Ẻ|Ể|Ỉ|Ỏ|Ổ|Ở|Ủ|Ử|Ỷ|hook above=hook above
 
|Ơ|Ư|horn=horn
 
|Ơ|Ư|horn=horn
|Ā|Ē|Ḡ|Ī|Ō|Ū|Ȳ|Ǣ|Ḇ|Ḏ|ẖ|Ḵ|Ḻ|Ṉ|Ṟ|Ṯ|Ẕ|macron=macron
+
|Ā|Ē|Ḡ|Ī|Ō|Ū|Ȳ|Ǣ|Ḇ|Ḏ|ẖ|Ḵ|Ḻ|Ṉ|Ṟ|Ṯ|X̱|Ẕ|macron=macron
 
|Ą|Ą̈|Ę|Į|Ǫ|Ǫ̈|O᷎|Ų|ogonek=ogonek
 
|Ą|Ą̈|Ę|Į|Ǫ|Ǫ̈|O᷎|Ų|ogonek=ogonek
 
|ᶀ|ꞔ|ᶁ|ᶂ|ᶃ|ꞕ|ᶄ|ᶅ|ᶪ|ᶆ|ᶇ|ᶈ|ᶉ|ᶊ|ƫ|ᶵ|ᶌ|ᶍ|ᶎ|ᶋ|palatal hook=palatal hook
 
|ᶀ|ꞔ|ᶁ|ᶂ|ᶃ|ꞕ|ᶄ|ᶅ|ᶪ|ᶆ|ᶇ|ᶈ|ᶉ|ᶊ|ƫ|ᶵ|ᶌ|ᶍ|ᶎ|ᶋ|palatal hook=palatal hook
|ᶏ|ᶒ|ᶖ|ɭ|ɳ|Ʈ|ᶙ|ʐ|ᶚ|retroflex hook=retroflex hook
+
|ᶏ|ᶐ|ᶒ|ᶓ|ᶔ|ᶖ|ɭ|ᶩ|ᶯ|ᶗ|Ʈ|ᶙ|ʐ|ᶼ|ᶕ|ᶘ|ᶚ|retroflex hook=retroflex hook
|Å|Ů|W̊|ẘ|Y̊|ẙ|ring=ring
+
|Ḁ|ẚ|ꬹ|ⱺ|Ů|W̊|ẘ|ꭖ|ꭘ|Y̊|ẙ|ꭔ|ring=ring
|Ⱥ||Ƀ|Ƃ|Ꞓ|Đ|Ƌ|Ɇ|Ꞙ|Ꞡ|Ǥ|Ħ|Ɨ|Ɉ|||Ꝁ|Ꝅ|Ƚ|Ⱡ|Ꝉ|Ł||Ꝋ|Ɵ|Ø|Ᵽ|Ꝑ|Ꝙ||Ꞧ|Ɍ|Ꞩ|Ⱦ|Ŧ|||Ʉ|Ꝟ|Ɏ|Ƶ|ʡ|ƾ|ʢ|ᴃ|ᴌ|ᵻ|ᵾ|ꬰ|ꬳ|ꬾ|ɟ|ᵼ|ƛ|||ꬿ|||ꭄ|ꭂ|ꭁ|ꭏ|ᵿ|bar|stroke=stroke
+
|Ⱥ||ᴃ|ᴯ|Ꞓ|Đ|Ƌ|Ɇ|ꬳ|Ꞙ|Ꞡ|Ħ||ᵻ|ᶤ|ᶧ|Ɉ|ɟ|ʄ||Ꝁ|Ꝃ|Ꝅ|Ꞣ|Ł|ᴌ|Ⱡ|Ꝉ|Ꞥ|Ø|Ɵ|ᴓ||Ꝋ||ꬿ|Ᵽ|Ꝑ|Ꝗ|Ꝙ|Ɍ|Ꞧ|ẜ|ẝ|Ꞩ|Ⱦ|Ʉ||||Ꝟ|Ɏ|Ƶ|ƛ|ƻ|ʢ||ᵼ|ᵿ||||||ꭄ|bar|stroke=stroke
|Ã|ᵬ|ᵭ|Ẽ|||Ĩ|Ɫ|ꬸ|ᵯ|Ñ|ᵰ|Õ|P̃|ᵱ||ᵲ|ᵴ|ᵵ|Ũ|Ṵ|Ṽ|Ỹ|ᵶ|tilde=tilde
+
|Ã|ᵬ|ᵭ|Ḛ|Ẽ|ᵮ|G̃|i̇̃|Ḭ|J̃|j̇̃|L̃|Ɫ|ꬸ|ꭞ|M̃|ᵯ|Ñ|ᵰ|Õ|P̃|ᵱ||ᵲ|ᵳ|ᵴ|ᵵ|Ũ|Ṵ|Ṽ|Ỹ|ᵶ|tilde=tilde
 
|#default=<!-- blank: no diacritic detected -->
 
|#default=<!-- blank: no diacritic detected -->
 
}}<noinclude>
 
}}<noinclude>
 
{{documentation|Template:Latin alphabet/doc}}
 
{{documentation|Template:Latin alphabet/doc}}
 
</noinclude>
 
</noinclude>

Revision as of 00:35, 1 February 2017

Template documentation[view] [edit] [history] [purge]

Usage

Basic examples

  • Input parameter #1: À, single letter: {{Latin script|À}}

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 script|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 script|A|show diacritic=grave}}
  • {{Latin script|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 script|À|show pairs=yes}}

More options

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

Parameter list

The full parameter list:

{{Latin script
|
| 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.
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

Template data

This is the TemplateData documentation for this template used by VisualEditor and other tools; see the monthly parameter usage report for this template.

TemplateData for Latin script

No description.

Template parameters

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Letter/Diacritic1

The input where information is derived from: which basic A-Z letter, which diacritic is used?

Default
Defaults to ((PAGENAME))
Auto value
Stringsuggested
Diactriticshow diacritic

Which diacritic is shown: acute, hook, ... Also: if set to show diacritic=no the diacritic block will not be shown at all.

Default
This parameter defaults to the first parameter.
Stringoptional
2nd Diacriticshow diacritic 2

Allows for the block of a second diacritic being shown.

Stringoptional
Lettershow letter

Sets which block "Letter X with diacritics" is shown. Also: if set to show letter=no the diacritic block will not be shown at all.

Default
This parameter defaults to the first parameter.
Stringoptional
Pairsshow pairs

If set to "yes", all pairs with basic input 1-letter are shown.

Default
This parameter defaults to "yes" if input 1 = A-Z
Booleanoptional

See also