Template:Needs IPA/doc: Difference between revisions

From CAPipedia
m 1 revision imported
m Text replacement - "Wikipedia[^:]" to "CAPipedia"
 
Line 2: Line 2:
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
{{lua|Module:Lang|Module:String}}
{{lua|Module:Lang|Module:String}}
This template should be used on a single word or phrase that requires [[Transcription (linguistics)|transcription]] into the [[International Phonetic Alphabet]]. Use directly after the word or phrase. This template is a self-reference and so is part of the Wikipedia project rather than the encyclopedic content.
This template should be used on a single word or phrase that requires [[Transcription (linguistics)|transcription]] into the [[International Phonetic Alphabet]]. Use directly after the word or phrase. This template is a self-reference and so is part of the CAPipediaproject rather than the encyclopedic content.


== Usage ==
== Usage ==
Line 42: Line 42:
"description": "Provides the month and year; e.g., 'January 2013', but not 'jan13'",
"description": "Provides the month and year; e.g., 'January 2013', but not 'jan13'",
"type": "string",
"type": "string",
"autovalue": "{{subst:CURRENTMONTHNAME}} {{subst:CURRENTYEAR}}",
"autovalue": "January 2024",
"suggested": true
"suggested": true
},
},

Latest revision as of 14:14, 23 January 2024

[[Category:Template documentation pages{{#translation:}}]]

This template should be used on a single word or phrase that requires transcription into the International Phonetic Alphabet. Use directly after the word or phrase. This template is a self-reference and so is part of the CAPipediaproject rather than the encyclopedic content.

Usage

  • {{needs IPA|lang=xx}}

where xx is the ISO 639 code for the language for which a transcription is requested. It supports up to three languages.

  • {{needs IPA|lang=xx|lang2=yy|lang3=zz}}

In the main namespace, the template categorizes the page into the category named "Articles needing [language name] IPA" if it exists, and into Category:Articles needing IPA if it doesn't (or if no language is specified).

You may explicitly specify the term or language being requested in the first parameter, which appears between "needs" and "IPA":

  • {{needs IPA|English|lang=en}}
  • {{needs IPA|surname|lang=xx}}

Examples

Markup Renders as
Glauxkenfruble{{needs IPA|lang=lt}}

Glauxkenfruble[needs IPA]

Glauxkenfruble{{needs IPA|Lithuanian|lang=lt}}

Glauxkenfruble[needs Lithuanian IPA]

Tracking categories

TemplateData

This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:Needs IPA in articles based on its TemplateData.

TemplateData for Needs IPA

<templatedata>{ "description": "An inline template that marks a word or phrase as requiring transcription in the International Phonetic Alphabet", "params": { "1": { "label": "Qualifier", "description": "Text that appears between \"needs\" and \"IPA\"", "type": "string", "required": false, "example": "Lithuanian" }, "date": { "label": "Month and year", "description": "Provides the month and year; e.g., 'January 2013', but not 'jan13'", "type": "string", "autovalue": "January 2024", "suggested": true }, "lang": { "label": "Language", "description": "ISO 639 language code for the language for which a transcription is requested", "example": "en", "type": "string", "suggested": true }, "lang2": { "label": "Language 2", "description": "ISO 639 language code for the second language for which a transcription is requested", "example": "de", "type": "string" }, "lang3": { "label": "Language 3", "description": "ISO 639 language code for the third language for which a transcription is requested", "example": "ar", "type": "string" }, "reason": { "label": "Reason", "description": "Text appended in the tooltip providing context for the request", "type": "string" } }, "paramOrder": [ "1", "lang", "lang2", "lang3", "reason", "date" ] } </templatedata>

See also