Difference between revisions of "Template:IPA-fr/doc"
imported>Nardog |
imported>Daviddwd (short desc) |
||
Line 26: | Line 26: | ||
}}</includeonly> | }}</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> |
Revision as of 19:07, 6 April 2019
![]() | 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:
For the default lede, however, the placeholder ‹-› is required in the second cell:
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 |