Template:col

From Wiktionary, the free dictionary
Jump to navigation Jump to search

    Usage

    [edit]

    This template creates a balanced table with a specified number of columns and may be used to replace more specific templates such as {{col2}}, {{col3}}, {{col4}} or {{col5}}.

    Parameters

    [edit]
    |1= (required)
    Language code of the terms; see Wiktionary:List of languages. The parameter |lang= is a deprecated synonym; please do not use. If this is used, all numbered parameters move down by one.
    |2= (required)
    Number of columns.
    |3=, |4=, ...
    Terms to insert into the table. Individual terms can specify transliterations, glosses and other modifications inline using a syntax like Изабе́лла<tr:Izabɛ́lla><t:Isabelle>; see below.
    |title=
    Used to add a title.
    |sort=
    Use |sort=0 to suppress auto-sorting of the contents.
    |sc=
    Specifies the script code of all the terms in the table. This is rarely needed. It can be used for instance in Translingual entries that contain lists of cuneiform characters, where notating the script with <sc:Xsux> for every term would be overly verbose.
    |collapse=
    Use |collapse=0 to suppress auto-collapsing.

    Example

    [edit]

    {{col|en|2|day job|calendar day|daycare|a broken clock is right twice a day|daylight|all-day|as the day is long|Canada Day|daily|day after day|daybreak|daydream|day in, day out|day laborer|daylily|day nursery|day off|day of reckoning|day one|daypart|day school|daystar}}

    results in

    Inline modifiers

    [edit]

    Use a syntax like Изабе́лла<tr:Izabɛ́lla><t:Isabelle> to specify modifiers such as transliterations, glosses and qualifiers. In this example, for the Russian name Изабе́лла (Izabɛ́lla, Isabelle), the manual transliteration Izabɛ́lla and gloss "Isabelle" are given. The following modifiers are recognized; see {{link}} for the exact meaning of these modifiers.

    • t: gloss
    • tr: transliteration
    • ts: transcription, for languages where the transliteration and pronunciation are markedly different
    • q: qualifier, e.g. rare; this appears *BEFORE* the term, parenthesized and italicized
    • qq: qualifier, e.g. rare; this appears *AFTER* the term, parenthesized and italicized
    • g: comma-separated list of gender/number specifications
    • alt: alternative display text
    • pos: part of speech
    • lit: literal meaning
    • id: sense ID; see {{senseid}}
    • sc: script code

    Examples

    [edit]
    example in Latin script, with glosses
    {{col|io|2
    |novo<t:a newcomer>
    |novajo<t:a new thing, novelty>
    |nove<t:newly, freshly>
    |novyaro<t:New Year>
    |novyara<t:New Year>
    |novigar<t:to innovate>
    |novero<t:innovator>
    }}
    

    results in

    example in non-Latin script, with transliterations and glosses
    {{col|fa|2
    |حرف اضافه<tr:harf-e ezâfe><t:preposition>
    |حرف ربط<tr:harf-e rabt><t:conjunction>
    |حرف زدن<tr:harf zadan><t:to speak>
    |حرف انداختن<tr:harf andâxtan>
    |پرحرف<tr:por-harf>
    |کم‌حرف<tr:kam-harf>
    }}
    

    results in

    See also

    [edit]