模板:Link if not current
跳至導覽
跳至搜尋
- [[{{{1}}}|{{{1}}}]]
File:Test Template Info-Icon - Version (2).svg 模板文件[檢視] [編輯] [歷史] [清除快取]
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}}