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

From blackwiki
Jump to navigation Jump to search
imported>Kwamikagami
imported>Lfdder
(switch to using navbox)
Line 1: Line 1:
{| class="unicode" style="width:{{{width|90%}}}; margin:0.2em auto; border:1px solid #ccc; background:#f7f7f7;"
+
{{navbox
<!-- new line here -->
+
|name = Latin alphabet
{{Latin alphabet/row26col | title={{Navbar-header|The [[ISO basic Latin alphabet]]|Latin alphabet}}| background=#ccc}}
+
 
{{Latin alphabet/row26col <!--
+
|title = The [[ISO basic Latin alphabet]]
-->|A{{!}}Aa|B{{!}}Bb|C{{!}}Cc|D{{!}}Dd|E{{!}}Ee|F{{!}}Ff|G{{!}}Gg|H{{!}}Hh|I{{!}}Ii|J{{!}}Jj|K{{!}}Kk|L{{!}}Ll|M{{!}}Mm<!--
+
 
-->|N{{!}}Nn|O{{!}}Oo|P{{!}}Pp|Q{{!}}Qq|R{{!}}Rr|S{{!}}Ss|T{{!}}Tt|U{{!}}Uu|V{{!}}Vv|W{{!}}Ww|X{{!}}Xx|Y{{!}}Yy|Z{{!}}Zz}}
+
|list1  = {{(!}} style="width: 100%;"
|-
+
{{Latin alphabet/row26col
{{Latin alphabet/letter with all diacritics| show letter={{{show letter|no}}} }}
+
|A{{!}}Aa|B{{!}}Bb|C{{!}}Cc|D{{!}}Dd|E{{!}}Ee|F{{!}}Ff|G{{!}}Gg|H{{!}}Hh|I{{!}}Ii|J{{!}}Jj|K{{!}}Kk|L{{!}}Ll|M{{!}}Mm
|-
+
|N{{!}}Nn|O{{!}}Oo|P{{!}}Pp|Q{{!}}Qq|R{{!}}Rr|S{{!}}Ss|T{{!}}Tt|U{{!}}Uu|V{{!}}Vv|W{{!}}Ww|X{{!}}Xx|Y{{!}}Yy|Z{{!}}Zz
{{Latin alphabet/diacritic with all letters| show diacritic={{{show diacritic|no}}} }}
+
}}
|- <!-- if needed or requested: show second block of diacritics -->
+
{{!}}-
{{#switch: {{{show diacritic|no}}}
+
{{Latin alphabet/letter with all diacritics| show letter={{{show letter|no}}} }}
| dot = {{Latin alphabet/diacritic with all letters| show diacritic=dot below}}  
+
{{!}}-
| #default = {{Latin alphabet/diacritic with all letters| show diacritic={{{show diacritic 2|no}}} }}
+
{{Latin alphabet/diacritic with all letters| show diacritic={{{show diacritic|no}}} }}
  }}
+
{{!}}- <!-- if needed or requested: show second block of diacritics -->
|-
+
{{#switch: {{{show diacritic|no}}}
  {{Latin alphabet/AZ09 pairs| 1={{{1|}}} | show pairs={{{show pairs|no}}}| show letter={{{show letter|}}}}}
+
|dot     = {{Latin alphabet/diacritic with all letters| show diacritic=dot below}}  
|-
+
|#default = {{Latin alphabet/diacritic with all letters| show diacritic={{{show diacritic 2|no}}} }}
  {{Latin alphabet/row26col | title=Related}}
+
}}
|-
+
  {{!}}-
| colspan="27" class="hlist" style="text-align: center; font-size:90%" |
+
{{Latin alphabet/AZ09 pairs| 1={{{1|}}} | show pairs={{{show pairs|no}}}| show letter={{{show letter|}}}}}
 +
  {{!)}}
 +
 
 +
|belowclass = hlist
 +
|below =
 
* [[Latin alphabets|Derivations]]
 
* [[Latin alphabets|Derivations]]
 
* [[Diacritic]]s
 
* [[Diacritic]]s
Line 29: Line 33:
 
* [[Punctuation]]
 
* [[Punctuation]]
 
* [[Latin script in Unicode|Unicode]]
 
* [[Latin script in Unicode|Unicode]]
|}<noinclude>
+
}}<noinclude>
 
{{Documentation|Template:Latin alphabet/doc}}
 
{{Documentation|Template:Latin alphabet/doc}}
 
</noinclude>
 
</noinclude>

Revision as of 03:00, 19 April 2014

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