Difference between revisions of "Template:Link if not current/doc"
Jump to navigation
Jump to search
imported>Petr Matas (moving category from main page) |
imported>Petr Matas (+ See also) |
||
| Line 5: | Line 5: | ||
*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 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. | *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 == | ||
| + | * {{tl|Link if exists}} | ||
| + | * {{tl|Link if equal}} | ||
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox|| | <includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox|| | ||
Revision as of 02:10, 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}}