Модул:sl-headword/док

Ово је документациона подстраница за Модул:sl-headword

This module is used for all Slovene headword-line templates. It provides a basic functionality common to all of them, but some of the templates have specific additional functionality to show genders or inflected forms.

Accented headwords[уреди]

All Slovene headword-line templates use the first parameter to provide the headword, with accented vowels where present. This uses the stress-based diacritics (with only `, ´ and ^). Tonal diacritics should be given in the pronunciation section using the {{sl-tonal}} template. See Appendix:Slovene pronunciation and Wiktionary:About Slovene for more details. For example:

{{sl-noun|jéž|m-an|jéža|jéži}}
{{sl-adj|nòv|novêjši}}
{{sl-pron|ôna}}

If the word can be accented in more than one way, use additional |head2=, |head3= (etc.) parameters. For example on takoj:

{{sl-adv|takój|head2=takòj}}

The headword parameter works exactly like |head= on the {{head}} template, so it supports all the same special features. You can therefore also use this parameter to link to individual words of a multi-word term. These words can be linked with accents still in place; the module will remove them from the page name before creating a link, much like {{l}} does.

All Slovene words are expected to have accents specified. The module will check the parameter for the presence of accents, and categorize the entry in Category:Slovene terms needing accents if none are found. Some words like prepositions really have no inherent accent of their own, and some words with foreign spelling (like Sydney) can't be reliably given accents without respelling them. For such words, give - as the first parameter, as on the preposition brez:

{{sl-prep|-}}

This tells the module that you are sure that the word should not have accents, so that it will not check for them.

If you don't know where to place the accents, you can leave the parameter empty, or just write the page name without accents. Don't use - unless you're sure the word should not have any accents.