Template:Link if not current
- [[{{{1}}}|{{{1}}}]]
Use this template to avoid producing a self link.
使用方法
{{Link if not current|Article}}
produces
- a list item linking to Article if the current page's title is not
Article
, - nothing if it is.
参数
- Parameter 1 is necessary, as it is the link.
- Parameter 2 is optional, and it is the text that is displayed over the link. If parameter 2 doesn't exist, it defaults to parameter 1.
另见
- {{No selflink}} – always outputs the text (either linked or not) and NOT embedded in a list item
- {{Link if exists}}
- {{Link if equal}}
上述文档嵌入自Template:Link if not current/doc。 (编辑 | 历史) 编者可以在本模板的沙盒 (创建 | 镜像)和测试样例 (创建)页面进行实验。 请在/doc子页面中添加分类。本模板的子页面。 |