Difference between revisions of "Template:Latin script/doc"
Jump to navigation
Jump to search
imported>Drmccreedy (merge dot above and dot below to match other above/below diacritics like circumflex, diaeresis, macron, and tilde) |
imported>PK2 m (PK2 moved page Template:Latin alphabet/doc to Template:Latin script/doc over redirect) |
||
| (7 intermediate revisions by 5 users not shown) | |||
| Line 1: | Line 1: | ||
{{Documentation subpage}} | {{Documentation subpage}} | ||
| − | <!-- PLEASE ADD CATEGORIES | + | <!-- PLEASE ADD CATEGORIES AT THE BOTTOM OF THIS PAGE. --> |
==Usage== | ==Usage== | ||
===Basic examples=== | ===Basic examples=== | ||
| − | * Input parameter #1: À, single letter: {{tlx|Latin | + | * Input parameter #1: À, single letter: {{tlx|Latin script|<nowiki>À</nowiki>}} → |
| − | {{Latin | + | {{Latin script|À}} |
====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 | + | * {{tlx|Latin script|<nowiki>A</nowiki>}} → |
| − | {{Latin | + | {{Latin script|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 | + | * When the parameter "show diacritic=" is set, that block will show: {{tlx|Latin script|<nowiki>A|show diacritic=grave</nowiki>}} |
| − | * {{tlx|Latin | + | * {{tlx|Latin script|<nowiki>A|show diacritic=circumflex</nowiki>}} → |
| − | {{Latin | + | {{Latin script|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 | + | {{tlx|Latin script|<nowiki>À|show pairs=yes</nowiki>}} → |
| − | {{Latin | + | {{Latin script|À|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 | + | * {{tlx|Latin script|<nowiki>A|show diacritic=grave|show diacritic 2=circumflex</nowiki>}} → |
| − | {{Latin | + | {{Latin script|A|show diacritic=grave|show diacritic 2=circumflex|show pairs=no}} |
===Parameter list=== | ===Parameter list=== | ||
| Line 33: | Line 33: | ||
<pre> | <pre> | ||
| − | {{Latin | + | {{Latin script |
| | | | ||
| show diacritic = | | show diacritic = | ||
| Line 50: | Line 50: | ||
===Editing the template=== | ===Editing the template=== | ||
;Technical background: | ;Technical background: | ||
| − | * Technical: [[Special:PrefixIndex/Template:Latin | + | * Technical: [[Special:PrefixIndex/Template:Latin script|all /subpages]] |
| + | |||
| + | == Template data == | ||
| + | |||
| + | {{TemplateData header}} | ||
| + | <templatedata> | ||
| + | { | ||
| + | "params": { | ||
| + | "1": { | ||
| + | "label": "Letter/Diacritic", | ||
| + | "description": "The input where information is derived from: which basic A-Z letter, which diacritic is used?", | ||
| + | "type": "string", | ||
| + | "default": "Defaults to ((PAGENAME))", | ||
| + | "autovalue": "", | ||
| + | "suggested": true | ||
| + | }, | ||
| + | "show diacritic": { | ||
| + | "label": "Diactritic", | ||
| + | "description": "Which diacritic is shown: acute, hook, ... Also: if set to show diacritic=no the diacritic block will not be shown at all.", | ||
| + | "type": "string", | ||
| + | "default": "This parameter defaults to the first parameter. " | ||
| + | }, | ||
| + | "show letter": { | ||
| + | "label": "Letter", | ||
| + | "description": "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.", | ||
| + | "type": "string", | ||
| + | "default": "This parameter defaults to the first parameter. " | ||
| + | }, | ||
| + | "show diacritic 2": { | ||
| + | "label": "2nd Diacritic", | ||
| + | "description": "Allows for the block of a second diacritic being shown.", | ||
| + | "type": "string" | ||
| + | }, | ||
| + | "show pairs": { | ||
| + | "label": "Pairs", | ||
| + | "description": "If set to \"yes\", all pairs with basic input 1-letter are shown.", | ||
| + | "type": "boolean", | ||
| + | "default": "This parameter defaults to \"yes\" if input 1 = A-Z" | ||
| + | } | ||
| + | }, | ||
| + | "paramOrder": [ | ||
| + | "1", | ||
| + | "show diacritic", | ||
| + | "show diacritic 2", | ||
| + | "show letter", | ||
| + | "show pairs" | ||
| + | ], | ||
| + | "format": "block" | ||
| + | } | ||
| + | </templatedata> | ||
== See also == | == See also == | ||
| − | * {{lts|Latin | + | * {{lts|Latin script}} |
| − | * {{lts|Latin alphabet | + | * {{lts|Latin alphabet sidebar}} |
| − | <includeonly><!-- | + | <includeonly>{{Sandbox other|| |
| − | + | <!-- PLEASE ADD CATEGORIES BELOW THIS LINE, INSIDE INCLUDEONLY TAGS, THANK YOU. --> | |
| − | [[Category:Writing system templates | + | [[Category:Writing system templates]] |
[[Category:Exclude in print]] | [[Category:Exclude in print]] | ||
| − | </includeonly> | + | }}</includeonly> |
Latest revision as of 21:45, 27 December 2020
| This is a documentation subpage for Template:Latin script. It contains usage information, categories and other content that is not part of the original template page. |
Contents
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/nois 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=nothe 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=nothe 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: all /subpages
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.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Letter/Diacritic | 1 | The input where information is derived from: which basic A-Z letter, which diacritic is used?
| String | suggested |
| Diactritic | show diacritic | Which diacritic is shown: acute, hook, ... Also: if set to show diacritic=no the diacritic block will not be shown at all.
| String | optional |
| 2nd Diacritic | show diacritic 2 | Allows for the block of a second diacritic being shown. | String | optional |
| Letter | show 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.
| String | optional |
| Pairs | show pairs | If set to "yes", all pairs with basic input 1-letter are shown.
| Boolean | optional |
See also
- Template:Latin script(edit talk links history)
- Template:Latin alphabet sidebar(edit talk links history)