Template:Courtesy link/doc
This is a documentation subpage for Template:Courtesy link. It may contain usage information, categories and other content that is not part of the original template page. |
This template is used to provide courtesy Wikipedia links on talk pages. While it can also be used to display external links, substituting {{Courtesy external}} is preferred instead to get rid of the extra brackets.
Usage[edit]
{{Courtesy link|pagetitle}}
{{Courtesy link|pagetitle|prefix}}
{{Courtesy link|pagetitle|linktext=text to display}}
Parameters[edit]
There are two positional parameters, and one named parameter.
1
– Provides link to the intended page (required; no default)2
– Changes the prefix text to the value of parameter 2. (optional; default: "Courtesy link:")linktext
– Generates a piped link where the link target is given in param 1, and the link label is given inlinktext
.
Examples[edit]
{{Courtesy link|Egg}}
⟶ Courtesy link: Egg{{Courtesy link|Egg#History}}
⟶ Courtesy link: Egg § History{{Courtesy link|Category:Eggs}}
⟶ Courtesy link: Category:Eggs{{Courtesy link|Egg|Details here:}}
⟶ Details here: Egg{{courtesy link|Wikipedia:Village pump (policy)/Archive 165#New User|linktext=WP:VPP/Archive 165#New User}}
⟶- Courtesy link: WP:VPP/Archive 165#New User
{{Courtesy link|Special:Permalink/1010228769#New_User|Courtesy permalink:|linktext=VPP rev. 1010228769}}
⟶- Courtesy permalink: VPP rev. 1010228769
See also[edit]
- {{Courtesy external}}
- {{Convenience link}} redirects here.