For faster navigation, this Iframe is preloading the Wikiwand page for 用户:Cdip150/留念/Template:NoContentConvertLink.

用户:Cdip150/留念/Template:NoContentConvertLink

模板介绍

[编辑]

当条目使用了手工全文转换(如“-{A|}-”语法或((noteTA))模板),而这些转换中使用了HTML标签或含有HTML标签的模板时,包含该转换用字的内部链接便可能会受到其影响而不能正常显示。此时必须使用本模板来取代一般的“ [[条目名称]] ”,以确保有关连结能正常显示。

注意:这个功能上的缺陷会在即将发行的1.17版本中修复,参见r80978

使用方法

[编辑]
((NoContentConvertLink|条目名称|[显示文字]))
  • 参数说明:
    • 参数1:条目名称——要连结到的条目。
    • 参数2(可省略):显示文字——在连结上显示的文字。如果省略则会显示条目名称。

模板重定向

[编辑]
  • ((NoContentConvertLink)) = ((nocclink))

范例

[编辑]

假设有一段这样的源码:

-{H|zh:䢂; zh-hans:((僻字|䢂|左“车”右“立”)); zh-hant:((僻字|𨋢|左「車」右「立」)); }-
-{H|zh:𨋢; zh-hans:((僻字|䢂|左“车”右“立”)); zh-hant:((僻字|𨋢|左「車」右「立」)); }-

*((NoContentConvertLink|䢂|使用Template:NoContentConvertLink连到“䢂”条目))
*[[䢂|使用一般连结连到“䢂”条目]]


则显示的效果为:


在以上范例中,“”字使用手工转换,而转换中使用了含有HTML标签的模板(这里是((僻字))),导致使用一般连结的语法出现显示不正常。而使用了((NoContentConvertLink))的连结则无此问题。

注意

[编辑]

由于全文转换祇在“大陆简体”、“港澳繁体”、“马新简体”、“台湾正体”下才会发生作用,故在“不转换”、“简体”、“繁体”下本模板与一般连结的效果是相同的。但为免在前四个转换会发生错误,仍建议对受全文转换影响的连结使用本模板。




{{bottomLinkPreText}} {{bottomLinkText}}
用户:Cdip150/留念/Template:NoContentConvertLink
Listen to this article

This browser is not supported by Wikiwand :(
Wikiwand requires a browser with modern capabilities in order to provide you with the best reading experience.
Please download and use one of the following browsers:

This article was just edited, click to reload
This article has been deleted on Wikipedia (Why?)

Back to homepage

Please click Add in the dialog above
Please click Allow in the top-left corner,
then click Install Now in the dialog
Please click Open in the download dialog,
then click Install
Please click the "Downloads" icon in the Safari toolbar, open the first download in the list,
then click Install
{{::$root.activation.text}}

Install Wikiwand

Install on Chrome Install on Firefox
Don't forget to rate us

Tell your friends about Wikiwand!

Gmail Facebook Twitter Link

Enjoying Wikiwand?

Tell your friends and spread the love:
Share on Gmail Share on Facebook Share on Twitter Share on Buffer

Our magic isn't perfect

You can help our automatic cover photo selection by reporting an unsuitable photo.

This photo is visually disturbing This photo is not a good choice

Thank you for helping!


Your input will affect cover photo selection, along with input from other users.

X

Get ready for Wikiwand 2.0 🎉! the new version arrives on September 1st! Don't want to wait?