Difference between revisions of "Template:Link if not current/doc"
Jump to navigation
Jump to search
imported>Petr Matas (+ See also) |
imported>Petr Matas (more specific category) |
||
| Line 12: | Line 12: | ||
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox|| | <includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox|| | ||
<!-- Categories go here and interwikis go in Wikidata. --> | <!-- Categories go here and interwikis go in Wikidata. --> | ||
| − | [[Category: | + | [[Category:Conditional link templates]] |
}}</includeonly> | }}</includeonly> | ||
Revision as of 02:40, 21 October 2014
| This is a documentation subpage for Template:Link if not current. It contains usage information, categories and other content that is not part of the original template page. |
Usage
- Parameter 1 is necessary, as it is the link. To avoid self-linking, the parameter is unlinked if the name of the input in parameter 1 is the same as the name of the page's title.
- 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.
See also
- {{Link if exists}}
- {{Link if equal}}