ข้ามไปเนื้อหา

แม่แบบ:ws

จาก วิกิพจนานุกรม พจนานุกรมเสรี

ɽ

This template is for use within Thesaurus entries. It links the synonym, antonym, or other related word to the corresponding Wiktionary entry, and to the Thesaurus entry of the same name if it exists.

The name of the template refers to the thesaurus project's original name, "Wikisaurus", or "WS" for short.

Parameters

[แก้ไข]

This template uses two or three unnamed (positional) parameters and a few named parameters. The first two positional parameters are mandatory; the remainder are optional.

  • |1= Mandatory: Language code of term to link to.
  • |2= Mandatory: Term.
  • |3= Optional hovertext gloss.
  • |link= Page to link to. If omitted, the second parameter will be linked to. If set to empty ({{ws|langcode|onym|link=}}), no link is shown.
  • |nows=1 Suppress the [⇒ thesaurus] link. By default, this link is displayed when a Thesaurus page exists for the provided word.

{{ws|langcode|onym|gloss}}

{{ws|en|ale|bitter fermented barley drink}}
{{ws|en|beer|bitter fermented barley drink}}
{{ws|en|abundant}}
{{ws|en|draft}}

result in:

[แก้ไข]
  • {{ws beginlist}} - to be put before a list of items formatted using {{ws}}
  • {{ws endlist}} - to be put after a list of items formatted using {{ws}}
  • {{ws ----}} - used to separate groups of items formatted using {{ws}}

See also

[แก้ไข]