Template:Syn-saurus/doc
此頁面是Template:Syn-saurus的Template文档文檔。 此頁面可能包含了模板的使用說明、分類和其他内容。 |
This template looks up synonyms on a thesaurus page and displays them.
参数
编辑|1=
(必填)- 待抓取类词库(同义词、近义词)的语言代码。
|2=
- Thesaurus page to fetch synonyms of, minus the
Thesaurus:
prefix. Defaults to the current page name. |header=
- Header to look for synonyms under. Defaults to
近義詞
. |templates=
- Comma-separated list of Lua patterns matching template names to look for, which contain the synonyms. Default is
col[0-9]*
, i.e.{{col}}
and any numbered variants such as{{col3}}
. The first parameter of the template must match the language code in|1=
. Note that, since these are Lua patterns, hyphens in template names must be escaped using%-
. |nolang_templates=
- Comma-separated list of Lua patterns matching template names to look for, which contain the synonyms. Unlike the templates listed in
|templates=
, these templates do not need to match the language code; they are assumed to be language-specific.
举例
编辑To look up the synonyms of 漢語 車輛/车辆 (“vehicle, car”), use:
{{syn-saurus|zh|車輛}}
which displays
參見
编辑{{ant-saurus}}
}:生成反義詞表