Template:IPA/doc: Difference between revisions

From TalossaWiki
Jump to navigation Jump to search
No edit summary
No edit summary
(32 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{documentation subpage}}
{{documentation subpage}}
<includeonly>{{pp-template|small=yes}}</includeonly>
<!--  
<!--  
     PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE
     PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE
-->
-->
==Usage==
=== Usage ===
1
 
'''[[Template:IPA]]''' is most useful when there are multiple instances of the IPA on a page. It contains
'''[[Template:IPA]]''' is most useful when there are multiple instances of the IPA on a page. It contains


Line 14: Line 13:
This allows fixing broken display of [[International Phonetic Alphabet]] (IPA) characters in MS Internet Explorer 6 for Windows, and choice of style in any browser.  
This allows fixing broken display of [[International Phonetic Alphabet]] (IPA) characters in MS Internet Explorer 6 for Windows, and choice of style in any browser.  


The font declarations are in [[MediaWiki:Common.css]]. Registered Wikipedia users can specify their own style for IPA text by editing, for each project, their user style sheet, e.g. monobook.css. Users can also specify the style locally in their browser, which works across projects.
The font declaration is in [[MediaWiki:Common.js]]. Registered Wikipedia users can specify their own style for IPA text by editing, for each project, their user style sheet, e.g. monobook.css. Users can also specify the style locally in their browser, which works across projects.


==Example==
=== Examples ===


Placing a phonetic rendering of the word ''characters'' in Template:IPA:
Placing a phonemic rendering of the word ''characters'' in Template:IPA:


  <nowiki>{{IPA|/ˈkærəktɚz/}}</nowiki>
  <nowiki>{{IPA|/ˈkærəktɚz/}}</nowiki>
Line 36: Line 35:
[The last two should only look different if you are using Internet Explorer 6 or lower on Windows, or if you have a custom style defined for IPA text.]
[The last two should only look different if you are using Internet Explorer 6 or lower on Windows, or if you have a custom style defined for IPA text.]


Please place all IPA text into Template:IPA, even if it doesn't have any special IPA characters, like this: {{IPA |[aɪ piː eɪ]}}.  This will allow users to format all examples of IPA text consistently, with their choice of fonts, colours, etc.
Please place all IPA text into Template:IPA, even if it doesn't have any special IPA characters, like this: {{IPA |/mi/}}.  This will allow users to format all examples of IPA text consistently, with their choice of fonts, colours, etc.
 
=== List of fonts ===
The following is a list of fonts that are specified using this template.
*[[Microsoft Sans Serif]]
*[[Arial Unicode MS]]
*[[Lucida Sans Unicode]]


==Choosing an IPA template==
{{usage of IPA templates}}
{{usage of IPA templates}}
<includeonly>
<includeonly>
<!-- PLEASE ADD CATEGORIES BELOW THIS LINE, THANKS. -->
<!-- PLEASE ADD CATEGORIES BELOW THIS LINE, THANKS. -->
Line 46: Line 49:


<!-- PLEASE ADD INTERWIKIS BELOW THIS LINE, THANKS. -->
<!-- PLEASE ADD INTERWIKIS BELOW THIS LINE, THANKS. -->
[[ar:قالب:IPA]]
[[be-x-old:Шаблён:IPA]]
[[ca:Plantilla:AFI]]
[[de:Vorlage:IPA]]
[[de:Vorlage:IPA]]
[[es:Plantilla:IPA]]
[[dsb:Pśedłoga:IPA]]
[[eo:Ŝablono:Prononco]]
[[fa:الگو:آوا]]
[[fa:الگو:آوا]]
[[fi:Malline:IPA]]
[[fr:Modèle:Prononciation API]]
[[fr:Modèle:Prononciation API]]
[[he:תבנית:IPA]]
[[hi:साँचा:अ-ध्व-लि]]
[[hsb:Předłoha:IPA]]
[[hu:Sablon:IPA]]
[[it:Template:IPA]]
[[it:Template:IPA]]
[[ja:Template:IPA2]]
[[ko:틀:IPA]]
[[ko:틀:IPA]]
[[nl:Template:IPA]]
[[nl:Template:IPA]]
[[ja:Template:IPA]]
[[nn:Mal:IPA]]
[[no:Mal:IPA]]
[[pl:Szablon:IPA]]
[[pl:Szablon:IPA]]
[[fi:Malline:IPA]]
[[pt:Predefinição:AFI]]
[[ru:Шаблон:IPA]]
[[simple:Template:IPA]]
[[sr:Шаблон:МФА]]
[[sv:Mall:IPA]]
[[sv:Mall:IPA]]
[[th:แม่แบบ:IPA]]
[[tpi:Template:IPA]]
[[vi:Tiêu bản:IPA]]
[[vi:Tiêu bản:IPA]]
</includeonly>
</includeonly>

Revision as of 04:24, 26 December 2011

Template:Documentation subpage

Usage

Template:IPA is most useful when there are multiple instances of the IPA on a page. It contains

<span title="Representation in the International Phonetic Alphabet (IPA)" class="IPA">{{{1}}}</span>

I.e., it simply specifies CSS class IPA.

This allows fixing broken display of International Phonetic Alphabet (IPA) characters in MS Internet Explorer 6 for Windows, and choice of style in any browser.

The font declaration is in MediaWiki:Common.js. Registered Wikipedia users can specify their own style for IPA text by editing, for each project, their user style sheet, e.g. monobook.css. Users can also specify the style locally in their browser, which works across projects.

Examples

Placing a phonemic rendering of the word characters in Template:IPA:

{{IPA|/ˈkærəktɚz/}}

The result will be a span with a class attribute, like this:

<span title="Representation in the International Phonetic Alphabet (IPA)" class="IPA">/ˈkærəktɚz/</span>

Which appears in your browser as:

/ˈkærəktɚz/

Without template:IPA:

/ˈkærəktɚz/

[The last two should only look different if you are using Internet Explorer 6 or lower on Windows, or if you have a custom style defined for IPA text.]

Please place all IPA text into Template:IPA, even if it doesn't have any special IPA characters, like this: /mi/. This will allow users to format all examples of IPA text consistently, with their choice of fonts, colours, etc.

List of fonts

The following is a list of fonts that are specified using this template.

Template:Usage of IPA templates