Bước tới nội dung

Bản mẫu:ux

Từ điển mở Wiktionary
(Đổi hướng từ Bản mẫu:usex)
(vui lòng thêm nội dung cho phần ví dụ cách sử dụng này)
Tài liệu bản mẫu

Bản mẫu này được sử dụng để hiển thị các câu ví dụ sử dụng (không phải trích dẫn hoặc cụm từ) của một định nghĩa nhất định. Bản mẫu này thêm trang vào thể loại "Mục từ có ví dụ cách sử dụng" và đóng vai trò là bộ mô tả nội dung có thể đọc được bằng máy để xử lý tự động, đồng thời gắn thẻ ngôn ngữ văn bản cho trình đọc màn hình hoặc phần mềm tự động hóa khác.

Đối với các trích dẫn, vui lòng sử dụng các bản mẫu trích dẫn. Đối với cụm từ, vui lòng sử dụng {{coi}} hoặc {{co}}. Để biết hướng dẫn chung về các câu ví dụ sử dụng, vui lòng xem WT:USEX.

Parameters

[sửa]
|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=
If set to auto, auto-determines whether to display the entire usage example (including example, transliteration, translation, etc.) inline (on a single line) or multiline (using multiple lines, one each for the example, transliteration, translation, and other displayed values). The algorithm for doing this is currently quite basic. It simply counts the total number of displayed characters in the inline format (counting Asian-language, specifically CJK, characters twice), and if it is > 100, the multiline format is used, otherwise the inline format is used. If set to 1, yes, y, true, on, or certain other similar values, the inline format is always used. Otherwise, the multiline format is always used. See also {{uxi}}, which always uses the inline format.
|q=, |qN= or |qualifier=, |qualifierN=
To include a qualifier for the example or quote. You can specify multiple qualifiers using q2=, q3=, etc.
|footer=
Additional information to include in a footer.
|ref=
To include a reference or link to an originating external site.
|audio=
An audio file that contains the example sentence in spoken form.
|lit=
A literal translation.
|subst=
Substitutions to be applied to handle irregular transliterations in certain languages (e.g. Russian, Yiddish, Hindi). If specified, should be one or more substitution expressions separated by commas. Each substitution expression is of the form FROM//TO (FROM/TO is also accepted), where FROM is the source text as found in the example, and TO is the corresponding respelling in the source script (e.g. Cyrillic, Hebrew or Devanagari). The substitutions are applied in order and before transliteration. The idea is to phonetically respell words with irregular transliteration so that the transliteration comes out correctly, without the need to manually transliterate the entire example using |tr=. Multiple substitutions are separated by a comma with no space after it: |subst=FROM1//TO1,FROM2//TO2,FROM3//TO3. Note that FROM and TO are actually Lua patterns (see WT:LUA). This means, for example, that a hyphen in the source text needs to be "escaped" by writing it as %-. See below for an example of using this parameter. Other examples may be found in the documentation for {{uxi}} and {{quote}}.
|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.
|nocat=
Don't add categories.
|sort=
Sortkey. Add this only when the sortkey cannot be generated from the entry name.

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

Ví dụ

[sửa]

Ví dụ 1

[sửa]

On the page for tiếng Tajik китоб (kitob):

#: {{ux|tg|Ин '''китобро''' хондам.|I read this '''book'''.}}
gives
  1. Ин китобро хондам.
    In kitobro xondam.
    I read this book.

Ví dụ 2

[sửa]

On the page for tiếng Quốc tế ngữ indiki, using |ref=:

#: {{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/>
gives
  1. La forta vento indikas ke ŝtormo venas.[1]
    The strong wind indicates that a storm is coming.

References

Ví dụ 3

[sửa]

On the page for tiếng Quốc tế ngữ kiuj, using |ref=:

# ({{plural of|eo|kiu}}) [[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>}}
gives
  1. (Số nhiều của 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.
    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.

Ví dụ 4

[sửa]

On the page for tiếng Quốc tế ngữ kelkaj, using {{uxi}}:

# {{inflection of|eo|kelka||p}}
## [[a few]]
## [[several]]
##: {{uxi|eo|'''Kelkaj''' el iliaj ovoj estas malbonaj.|'''Several''' of their eggs are bad.}}
gives
  1. Dạng số nhiều của kelka
    1. a few
    2. several
      Kelkaj el iliaj ovoj estas malbonaj.Several of their eggs are bad.

Ví dụ 5

[sửa]

On the page for tiếng Nga вследствие (vsledstvije), using |subst=:

#: {{ux|ru|Полице́йские огороди́ли середи́ну шоссе́ на гора́х, '''всле́дствие чего́''' бегле́ц был на во́ле.|Police officers blocked the middle of the highway '''as a consequence that''' a fugitive was on the loose.|subst=шоссе́//шоссэ́}}
gives
  1. Полице́йские огороди́ли середи́ну шоссе́ на гора́х, всле́дствие чего́ бегле́ц был на во́ле.
    Policéjskije ogorodíli seredínu šossɛ́ na goráx, vslédstvije čevó begléc byl na vóle.
    Police officers blocked the middle of the highway as a consequence that a fugitive was on the loose.

Ví dụ 6

[sửa]

On the page for tiếng Nga устав (ustav), using |lit= and |q=:

#: {{ux|ru|[[в|В]] [[чужо́й]] [[монасты́рь]] [[со]] [[свой|свои́м]] '''уста́вом''' [[не]] [[ходить|хо́дят]]|[[when in Rome, do as the Romans do]]|lit=You don't go to another monastery with your own '''charter'''|q=proverb}}
gives
  1. В чужо́й монасты́рь со свои́м уста́вом не хо́дят (proverb)
    V čužój monastýrʹ so svoím ustávom ne xódjat
    when in Rome, do as the Romans do
    (literally, “You don't go to another monastery with your own charter”)

Ví dụ 7

[sửa]

On the page for tiếng Hindi परंपरागत (paramprāgat), using |subst=:

#* {{quote|hi|इसके बाद आयोजकों ने '''परंपरागत''' लोकनृत्य के साथ मेले का शुभारंभ किया।|After this the organizers started the festival with a '''traditional''' folk dance.|subst=परंपरागत//परंप*रागत}}
gives
    • इसके बाद आयोजकों ने परंपरागत लोकनृत्य के साथ मेले का शुभारंभ किया।
      iske bād āyojkõ ne paramparāgat loknŕtya ke sāth mele kā śubhārambh kiyā.
      After this the organizers started the festival with a traditional folk dance.

Ví dụ 8

[sửa]

On the page for tiếng Bồ Đào Nha chegar, using |qualifier= to add a qualifier:

#* {{ux|pt|Em algumas horas '''chegaremos''' em Londres.|qualifier=Brazil|t=In a few hours '''we will arrive''' at London.}}
gives
    • Em algumas horas chegaremos em Londres. (Brazil)
      In a few hours we will arrive at London.

Xem thêm

[sửa]

TemplateData

[sửa]
Đây là tài liệu TemplateData cho bản mẫu này, được sử dụng bởi TemplateWizard, VisualEditor và các công cụ khác.

TemplateData cho ux

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

Tham số bản mẫu[Sửa dữ liệu bản mẫu]

Nên dùng bản mẫu này với các tham số đặt thành khối.

Tham sốMiêu tảKiểuTrạng thái
language code1

The language code of the example to be shown

Ví dụ
en
Chuỗi dàibắt buộc
example2

The example to be shown. Use '''bold''' to highlight the current term.

Ví dụ
The quick brown '''fox''' jumps over the lazy dog.
Chuỗi dàibắt buộc
translation3 t translation

The English translation for examples on foreign entries. Use '''bold''' to highlight the current term's translation.

Ví dụ
Le rapide '''renard''' brun saute par dessus le chien paresseux.
Chuỗi dàitùy chọn
transliterationtr transliteration

The Latin transliteration for examples in non-Latin script.

Chuỗi dàitùy chọn
script codesc

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

Ví dụ
Latn
Chuỗi dàitùy chọn
inlineinline

Set to 1 to include the translation and any transliteration in the same line as the example. Transliterations are set off using parens and translations using an em dash. Set to 'auto' to auto-determine whether to display inline or multiline.

Ví dụ
1
Sốtùy chọn
qualifierq qualifier

To qualify an example with a region or register, or a type of usage.

Ví dụ
informal
Chuỗi dàitùy chọn
referenceref

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

URLtùy chọn
audioaudio

An audio file that contains the example sentence in spoken form.

Tập tintùy chọn
literal translationlit

A literal translation of an idiomatic expression in a foreign language.

Ví dụ
to fly like plywood over Paris
Chuỗi dàitùy chọn
substitutionsubst

Substitutions to be applied to handle irregular transliterations in certain languages (e.g. Russian and Yiddish; see example above). If specified, should be one or more substitution expressions separated by commas, where each substitution expression is of the form FROM//TO (FROM/TO is also accepted), where FROM is a Lua pattern and TO is the corresponding replacement expression (see [[WT:LUA]]). The substitutions are applied in order and before transliteration; hence both FROM and TO should be in the source script (e.g. Cyrillic or Hebrew).

Ví dụ
шоссе́//шоссэ́
Chuỗi dàitùy chọn
noenumnoenum

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

Luận lýtùy chọn
nocatnocat

Don't add categories

Luận lýtùy chọn