Template:User:Kiril kovachev/bg-new/documentation

Bulgarian autocreation template, modelled after, using the lua function in Module:bg-new to do its job.

Must be substituted.

Basic structure
stressed

Core parameters

 * stressed
 * The term with correct accent marks on the stressed syllable(s), such as.
 * PoS
 * Part of speech. Acronyms are accepted and preferred. Default is 'n' if empty. See lua in Module:bg-new#lua for a list of acronyms.
 * def
 * Definition. Complex definitions spanning multiple lines remain unsupported; please make these edits mau

Other parameters
- Definition
 * |eg=, |eg2=, etc.
 * More definitions under the first def. Append  or   like you normally would to add examples or quotes.

- Wikipedia
 * |wp=y
 * Wikipedia link.
 * |wp=wikipedia_page_name
 * Wikipedia link to a page named differently from the headword.

- Etymology: The ones below generate the ===Etymology=== header.
 * |en=
 * Specifies the etymology number. By default the result begins with ==Bulgarian== and L3 POS headers. Using this parameter will cause the template to generate ===Etymology n=== and L4 POS headers.
 * |e=
 * Self-written text under that header.
 * |d=, |dl=
 * If derived from another language. Uses . |d=source_word, |dl=code_of_source_language (empty: 'en'), |tr=transcription (optional), t=gloss (optional), lit=literal_gloss (optional), pos=part_of_speech (optional), g=gender (optional).
 * |b=, |bl=
 * If borrowed from another language. Uses . |b=source_word, |bl=code_of_source_language (empty: 'en'), |tr=transcription (optional), t=gloss (optional), lit=literal_gloss (optional), pos=part_of_speech (optional), g=gender (optional). e.g..
 * |lb=, |lbl=
 * If learnedly borrowed from another language. Uses . |b=source_word, |bl=code_of_source_language (empty: 'grc'), |tr=transcription (optional), t=gloss (optional), lit=literal_gloss (optional), pos=part_of_speech (optional), g=gender (optional).
 * |co1=, |co2=, etc.
 * If the word is a compound. |co1=first_element, |co2=second_element. |tr1=, |tr2=, etc., |t1=, |t2=, etc., |pos1=, |pos2=, etc., |g1=, |g2=, etc. are added accordingly. Uses . Only |co1= and |co2= are mandatory.
 * |pr1=, |pr2=
 * Similar to |co1=, |co2=, except |pr1=prefix. Uses.
 * |su1=, |su2=
 * Similar to |co1=, |co2=, except |su2=suffix. Uses.
 * |c=, |cl=, |co1=, |co2=
 * If the word is a calque. Uses . |c=source_word, |cl=code_of_source_language. You can also use |co1=, |co2=, etc. or |pr1=, |pr2=, etc. or |su1=, |su2=, etc. for further clarification.

- Pronunciation
 * |acc2=, |acc3=
 * Stresses to include in the entry besides the main lemma, whose stress is normally sufficient.
 * |hmp=homophone, |hmp2=homophone, |hmp3=homophone, |hmp4=homophone, |hmp5=homophone, |hmp6=homophone
 * Adds homophones.

- Inflection
 * |a=
 * Aspect of the entry if it is a verb.  or
 * |ac=
 * Aspectual counterpart verb, e.g. отида and отивам are perfective and imperfective respectively. In отида, a=pf and ac=отивам.
 * |tran=
 * Transitivity of verb ('trans' or 'intrans').
 * |infl=
 * Parameters to pass to the relevant inflection template (, or ). Pass the arguments without the enclosing   that are used.

- Usage notes
 * |use=usage_notes

- Other words: No brackets needed in these parameters.
 * |alt=, |alt2=, |alt3=, |alt4=
 * Alternative forms.
 * |syn=, |syn2=, |syn3=, |syn4=
 * Synonyms.
 * |ant=, |ant2=, |ant3=, |ant4=
 * Antonyms.
 * |der=, |der2=, |der3=, |der4=
 * Derived terms.
 * |rel=, |rel2=, |rel3=, |rel4=
 * Related terms.
 * |also=, |also2=, |also3=, |also4=
 * See-also terms.
 * |adj=
 * Related adjective, appearing in noun headers.

- References: (Usage note: Modern words are often only in RBE2, and old, obscure, or highly formal terms often only in RBE1.)
 * |ref=
 * Manually controls whether to add a reference section. Default is to add both and, but setting ref=1 or ref=2 will add only the first or the second of these. ref=n will set no references.

- Categorization:
 * |cn=category_name (not capitalized, without the word "Bulgarian"), |cn2=category_name, etc.
 * Adds categories using.
 * |ct=category_name (capitalized), |cat2=category_name, etc.
 * Adds categories using.

Examples
As development is still underway, the module is not able to realise a complete entry, thus no examples can yet be provided.