Template:ux

Definition from Wiktionary, the free dictionary
Jump to: navigation, search
(please add the primary text of this usage example)

This is used to show usage examples (not quotations) following a definition line. The actual work is delegated to Module:usex/templates and Module:usex. See WT:USEX for some general guidelines regarding usage examples.

Parameters

|1=
The language code of the example to be shown, e.g. en for English; see WT:LANGLIST for the full list.
|2=
The example to be shown. It should not contain wikilinks.
|3=, |translation= or |t=
The English translation for examples on foreign entries.
|tr= or |transliteration=
The Latin transliteration for examples in non-Latin script.
|sc=
The script code, required for certain languages with multiple possible scripts; see Wiktionary:List of scripts for the full list.
|inline=
To include the translation in the same line as the example, separated from the example by em dash, assuming that the example, its translation and transliteration are short enough to fit in a single line. (Set it to 1 to choose inline mode.)
|ref=
To include a reference or link to an originating external site.
|lit=
A literal translation.
|noenum=
To use in unnumbered sections (not following a definition). It may start the line following the definition or may be prefixed by "#:" for visual aesthetics.

Usage examples are normally preceded by "#:", or by "#*" or "#*:" to hide the usage example (normally used for direct quotes).

Examples

Wikitext (from Tajik китоб(kitob))

# [[book]]
#: {{ux|tg|sc=Cyrl|Ин '''китобро''' хондам.|tr=In kitobro xondam.|I read this '''book'''.}}

Output

  1. book
    Ин китобро хондам.
    In kitobro xondam.
    I read this book.


Wikitext (from Esperanto indiki)

# to [[indicate]]
#: {{ux|eo|La forta vento '''indikas''' ke ŝtormo venas.|The strong wind '''indicates''' that 
a storm is coming.|ref=<ref>http://tatoeba.org/eng/sentences/show/454290</ref>}}

===References===
<references/>

Output

  1. to indicate
    La forta vento indikas ke ŝtormo venas.[1]
    The strong wind indicates that a storm is coming.

References

  1. ^ http://tatoeba.org/eng/sentences/show/454290


Wikitext (from Esperanto kiuj)

# ({{plural of|kiu|lang=eo}}) [[which]] {{gloss|relative}}
#: {{ux|eo|La elementoj '''kiuj''' troviĝis sur piratflagoj estis skeletkapo, la simbolo por la morto, skeleto indikis turmentan morton,
sablohorloĝo indikis ke la tempo venis, sanganta koro malrapida kaj dolora morto kaj ponardo aŭ maĉeto signifis impulso por batali.
|The elements '''which''' were found on pirate flags were: skull, the symbol for death, skeleton indicated torturous death, hourglass
indicated that the time came, bleeding heart → slow and painful death and dagger or machete signified impulse for battle.
|ref=<sup>[//eo.wikipedia.org/wiki/Jolly_Roger]</sup>}}

Output

  1. (plural of kiu) which (relative)
    La elementoj kiuj troviĝis sur piratflagoj estis skeletkapo, la simbolo por la morto, skeleto indikis turmentan morton, sablohorloĝo indikis ke la tempo venis, sanganta koro malrapida kaj dolora morto kaj ponardo aŭ maĉeto signifis impulso por batali.[1]
    The elements which were found on pirate flags were: skull, the symbol for death, skeleton indicated torturous death, hourglass indicated that the time came, bleeding heart → slow and painful death and dagger or machete signified impulse for battle.


Wikitext (from Esperanto kelkaj)

# {{inflection of|kelka||p|lang=eo}}
## [[a few]]
## [[several]]
##: {{ux|eo|'''Kelkaj''' el iliaj ovoj estas malbonaj.|'''Several''' of their eggs are bad.|inline=1}}

Output

  1. plural of kelka
    1. a few
    2. several
      Kelkaj el iliaj ovoj estas malbonaj.‎ ― Several of their eggs are bad.

See also

TemplateData

This is the TemplateData documentation for this template used by VisualEditor and other tools.

TemplateData for ux

This is used to show usage examples (not quotations) following a definition line.

Template parameters

This template has custom formatting.

Parameter Description Type Status
language code 1

The language code of the example to be shown

Default
empty
Example
en
Auto value
empty
String required
example 2

The example to be shown

Default
empty
Example
The quick brown fox jumps over the lazy dog.
Auto value
empty
String required
translation 3t

The English translation for examples on foreign entries.

Default
empty
Example
Le rapide renard brun saute par dessus le chien paresseux.
Auto value
empty
String optional
transliteration tr

The Latin transliteration for examples in non-Latin script.

Default
empty
Example
empty
Auto value
empty
String suggested
script code sc

The script code, required for certain languages with multiple possible scripts.

Default
empty
Example
Latn
Auto value
empty
String optional
inline inline

To include the translation in the same line as the example, separated from the example by em dash, assuming that the example, its translation and transliteration are short enough to fit in a single line. (Set it to 1 to choose inline mode.)

Default
empty
Example
1
Auto value
empty
Number suggested
reference ref

To include a reference or link to an originating external site.

Default
empty
Example
empty
Auto value
empty
URL optional
noenum noenum

To use in unnumbered sections (not following a definition). It may start the line following the definition or may be prefixed by "#:" for visual aesthetics.

Default
empty
Example
empty
Auto value
empty
Boolean optional