Šablon:IPA/dok

Izvor: Vojna Enciklopedija
< Шаблон:IPA
Lua error: Cannot create process: proc_open(/dev/null): failed to open stream: Operation not permitted
(razl) ← Starija izmena | Trenutna verzija (razl) | Novija izmena → (razl)
Pređi na navigaciju Pređi na pretragu

Lua error: Cannot create process: proc_open(/dev/null): failed to open stream: Operation not permitted Lua error: Cannot create process: proc_open(/dev/null): failed to open stream: Operation not permitted

Usage

Template:IPA is most useful when there are multiple instances of the International Phonetic Alphabet (IPA) on a page. It contains

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

This means, it simply specifies a class called “IPA” as a hook for CSS styling and DOM scripting. This allows fixing broken display of IPA characters in Windows XP, and choice of style in any browser.

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

MediaWiki:Common.css also ensures that links inside IPA transcriptions marked up with this template do not use underlines since these carry special semantics there.

TemplateData

Ovo je TemplateData dokumentacija za ovaj šablon, korišćena u Vizuelnom uređivaču i u drugim alatkama; pogledajte mesečni izveštaj o greškama za ovaj šablon.

TemplateData za IPA

This template ensures proper display of transcriptions using the International Phonetic Alphabet (IPA), especially in older operating systems and browsers. There are related specialized templates that also semi-automatically generate the transcription itself.

Parametri šablona

ParametarOpisVrstaStatus
Izraz1 izraz

including square brackets [...] for phonetic transcriptions or enclosing forward slashes /.../ for phonemic ones

tekstobavezno

Examples

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

{{IPA|/ˈkærəktɚz/}}
{{IPA|/[[character|ˈ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 appear in your browser as:

/ˈkærəktɚz/
/ˈkærəktɚz/

Without template:IPA:

/ˈkærəktɚz/
/ˈkærəktɚz/

[These sets may look different if you are using Windows XP, or if you have a custom style defined for IPA text.]

Please place all IPA text into the template, 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 used in Windows XP that are used using this template.




Obično, IPA na stranici treba biti uklopljen u {{IPA}} šablon, koji formatuje tekst u IPA kompatibilan font. Pre šablona preporučljivo je napisati: <small>-{IPA}-:</small>&nbsp;, tako da rezultat bude:

  • <small>-{IPA}-:</small>&nbsp;{{IPA|/ɪntə'næʃənəl fə'nɛtɪk əsoʊsi'eɪʃn/}}IPA: /ɪntə'næʃənəl fə'nɛtɪk əsoʊsi'eɪʃn/.

Za strane reči koje nisu asimilovane u srpskom, koristiti šablone za povezivanje više opšte šeme (v. Pomoć:IPA), sa svim glavnim IPA simbolima:

  • {{IPA-all}}: {{IPA-all|реч}}IPA[реч]