Template:Page and talk link/sandbox
Appearance
(Redirected from Template:La2/sandbox)
[{{canonicalurl:{{{1}}}|redirect=no}} {{{1}}}] ([[|talk]])
This is the template sandbox page for Template:Page and talk link (diff). See also the companion subpage for test cases. |
This template creates a link to a page and its talk page. It takes only one parameter: the name of the page. It works for any namespace.
Usage
[edit]{{Ptl|Swiss Alps}}
→ Swiss Alps (talk){{Ptl|Wikipedia:Five pillars}}
→ Wikipedia:Five pillars (talk){{Ptl|User:Jimbo}}
→ User:Jimbo (talk){{Ptl|File:President Barack Obama.jpg}}
→ File:President Barack Obama.jpg (talk)
Limitations
[edit]If the page is a redirect, the talk link will be for the redirect not the main page. For example: RAF Grimsetter is a redirect to Kirkwall Airport
{{ptl|RAF Grimsetter}}
→ RAF Grimsetter (talk){{ptl|Kirkwall Airport}}
→ Kirkwall Airport (talk)
See also
[edit]- Template:La(edit talk links history) similar but produces several links in addition to talk.