Jump to content

Template:Talk page link/Doc: Difference between revisions

From NixOS Wiki
DoggoBit (talk | contribs)
No edit summary
DoggoBit (talk | contribs)
No edit summary
 
Line 7: Line 7:
You can simply include this template in order to produce a link like the one above, to the current page's discussion page:
You can simply include this template in order to produce a link like the one above, to the current page's discussion page:


{{bc|<nowiki>{{talk page link}}</nowiki>}}
{{code|lang=mediawiki|line=no|<nowiki>{{talk page link}}</nowiki>}}


You can override the display text of a link by providing an unnamed argument:
You can override the display text of a link by providing an unnamed argument:


{{bc|<nowiki>{{talk page link|discussion page}}</nowiki>}}
{{code|lang=mediawiki|line=no|<nowiki>{{talk page link|discussion page}}</nowiki>}}


{{talk page link|discussion page}}
{{talk page link|discussion page}}
Line 17: Line 17:
Alternatively, you can specify a wiki link yourself in order to link to a different page:
Alternatively, you can specify a wiki link yourself in order to link to a different page:


{{bc|<nowiki>{{talk page link|talk=Talk:Main page}}</nowiki>}}
{{code|lang=mediawiki|line=no|<nowiki>{{talk page link|talk=Talk:Main page}}</nowiki>}}


{{talk page link|talk=Talk:Main page}}
{{talk page link|talk=Talk:Main page}}
Line 23: Line 23:
Finally, you can specify a section within the current page's discussion page:
Finally, you can specify a section within the current page's discussion page:


{{bc|<nowiki>{{talk page link|section=Template redesign}}</nowiki>}}
{{code|lang=mediawiki|line=no|<nowiki>{{talk page link|section=Template redesign}}</nowiki>}}


{{talk page link|section=Template redesign}}
{{talk page link|section=Template redesign}}

Latest revision as of 21:30, 5 June 2025

This template is used in notices in order to provide a link to a talk page, or a section of one. The talk page is linked through an external link in order to avoid polluting Special:WantedPages when the talk page does not exist.

Template talk:Talk page link/Doc#

Usage

You can simply include this template in order to produce a link like the one above, to the current page's discussion page:

{{talk page link}}

You can override the display text of a link by providing an unnamed argument:

{{talk page link|discussion page}}

discussion page

Alternatively, you can specify a wiki link yourself in order to link to a different page:

{{talk page link|talk=Talk:Main page}}

Talk:Main page

Finally, you can specify a section within the current page's discussion page:

{{talk page link|section=Template redesign}}

Template talk:Talk page link/Doc#Template redesign