跳转到内容

模板:Dablink/doc

本页使用了标题或全文手工转换
维基百科,自由的百科全书

这是本页的一个历史版本,由Dabao qian留言 | 贡献2018年10月14日 (日) 17:01 (Dabao qian移动页面Template:Hatnote/docTemplate:Dablink/doc覆盖重定向)编辑。这可能和当前版本存在着巨大的差异。

本模板用于显示自定义的消歧义内容。

用法

{{Hatnote|自定义文字}}

范例

{{Hatnote|关于在[[16世纪]]出版的[[法文]]百科全书,见《'''[[:fr:Encyclopédie|]]'''》。}}

错误

If no hatnote text is supplied, the template will output the following message:

  • 错误:text参数缺失(帮助)。

If you see this error message, it is for one of four reasons:

  1. No parameters were specified (the template code was {{hatnote}}). Please use {{hatnote|text}} instead.
  2. Some parameters were specified, but the hatnote text wasn't included. For example, the template text {{hatnote|extraclasses=seealso}} will produce this error. Please use (for example) {{hatnote|text|extraclasses=seealso}} instead.
  3. The hatnote text was specified, but that text contains an equals sign ("="). The equals sign has a special meaning in template code, and because of this it cannot be used in template parameters that do not specify a parameter name. For example, the template code {{hatnote|2+2=4}} will produce this error. To work around this, you can specify the parameter name explicitly by using 1= before the hatnote text, like this: {{hatnote|1=2+2=4}}.
  4. You tried to access Module:Hatnote directly by using {{#invoke:hatnote|hatnote|text}}. Use of #invoke in this way has been disabled for performance reasons. Please use {{hatnote|text}} instead.

If you see this error message and are unsure of what to do, please post a message on Template talk:Hatnote, and someone should be able to help you.

Pages that contain this error message are tracked in Category:Hatnote templates with errors.

重定向

参见