Difference between revisions of "Template:IPA-fr/doc"
imported>WOSlinker (moved docs to subpage) |
imported>Vanisaac |
||
| (7 intermediate revisions by 7 users not shown) | |||
| Line 3: | Line 3: | ||
==Usage== | ==Usage== | ||
| − | This template formats IPA transcriptions and links them to [[ | + | This template formats IPA transcriptions and links them to [[Help:IPA/French]]. The transcription should match the conventions of that key; for narrower dialect transcriptions, use {{tl|IPA-all}}, which links to a more complete IPA key. |
The first cell in the template is for the transcription, and a second optional cell is a switch that controls the lede. With no second value, the lede ''French pronunciation:'' appears: | The first cell in the template is for the transcription, and a second optional cell is a switch that controls the lede. With no second value, the lede ''French pronunciation:'' appears: | ||
| Line 21: | Line 21: | ||
{{usage of IPA templates}} | {{usage of IPA templates}} | ||
| − | <includeonly> | + | <includeonly>{{Sandbox other|| |
| − | + | [[Category:IPA language templates|{{PAGENAME}}]] | |
| + | [[ur:سانچہ:IPA-fr]] | ||
| − | + | }}</includeonly> | |
| − | < | + | ==TemplateData== |
| − | + | {{TemplateDataHeader}} | |
| − | + | <templatedata> | |
| − | + | { | |
| − | </ | + | "params": { |
| + | "1": { | ||
| + | "type": "line", | ||
| + | "label": "IPA pronunciation", | ||
| + | "description": "The IPA pronunciation of the text", | ||
| + | "example": "pʁezidɑ̃t‿a mɔʁtje", | ||
| + | "required": true | ||
| + | }, | ||
| + | "2": { | ||
| + | "type": "line", | ||
| + | "label": "lede", | ||
| + | "example": "-, pron, IPA, local, lang", | ||
| + | "description": "controls the lede (label) before the IPA text" | ||
| + | }, | ||
| + | "3": { | ||
| + | "label": "sound file", | ||
| + | "type": "wiki-file-name", | ||
| + | "description": "A sound file for the pronunciation", | ||
| + | "example": "Fr-eau.ogg" | ||
| + | } | ||
| + | }, | ||
| + | "format": "inline", | ||
| + | "description": "Gives IPA pronunciation for French text" | ||
| + | } | ||
| + | </templatedata> | ||
Latest revision as of 22:07, 25 April 2020
| 40px | This is a documentation subpage for Template:IPA-fr. It contains usage information, categories and other content that is not part of the original template page. |
Usage
This template formats IPA transcriptions and links them to Help:IPA/French. The transcription should match the conventions of that key; for narrower dialect transcriptions, use {{IPA-all}}, which links to a more complete IPA key.
The first cell in the template is for the transcription, and a second optional cell is a switch that controls the lede. With no second value, the lede French pronunciation: appears:
{{IPA-fr|o}}→ French pronunciation: [o]{{IPA-fr|o|pron}}→ pronounced [o]{{IPA-fr|o|lang}}→ French: [o]{{IPA-fr|o|IPA}}→ IPA: [o]{{IPA-fr|o|local}}→ locally [o]{{IPA-fr|o|}}→ [o]
Any of these may be combined with a sound file in an optional third cell:
{{IPA-fr|o|IPA|Fr-eau.ogg}}→ IPA: [o] (About this soundlisten)
For the default lede, however, the placeholder ‹-› is required in the second cell:
{{IPA-fr|o|-|Fr-eau.ogg}}→ French pronunciation: [o] (About this soundlisten)
Template:Usage of IPA templates
TemplateData
TemplateData for IPA-fr
Gives IPA pronunciation for French text
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| IPA pronunciation | 1 | The IPA pronunciation of the text
| Line | required |
| lede | 2 | controls the lede (label) before the IPA text
| Line | optional |
| sound file | 3 | A sound file for the pronunciation
| File | optional |