Difference between revisions of "Template:La2/doc"
Jump to navigation
Jump to search
imported>Silas Ropac (→Usage: add examples) |
imported>Vanisaac m (→See also: clean up per WP:CAT#T and WP:AWBREQ add template:Sandbox other) |
||
| (6 intermediate revisions by 4 users not shown) | |||
| Line 2: | Line 2: | ||
<!-- Categories go at the bottom of this page and interwikis go in Wikidata. --> | <!-- Categories go at the bottom of this page and interwikis go in Wikidata. --> | ||
| − | This template | + | 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 == | == Usage == | ||
| Line 9: | Line 9: | ||
* {{xpsoc|La2|User:Jimbo}} | * {{xpsoc|La2|User:Jimbo}} | ||
* {{xpsoc|La2|:File:President Barack Obama.jpg}} | * {{xpsoc|La2|:File:President Barack Obama.jpg}} | ||
| + | |||
| + | == Limitations == | ||
| + | If the page is a redirect, the talk link will be for the redirect not the main page. For example: {{Plain link|url=//en.wikipedia.org/w/index.php?title=RAF_Grimsetter&redirect=no |name=RAF Grimsetter}} is a redirect to [[Kirkwall Airport]] | ||
| + | |||
| + | :<code><nowiki>{{la2|RAF Grimsetter}}</nowiki></code> → {{la2|RAF Grimsetter}} | ||
| + | :<code><nowiki>{{la2|Kirkwall Airport}} → </nowiki></code>{{la2|Kirkwall Airport}} | ||
== See also == | == See also == | ||
| − | * {{Lts| | + | * {{Lts|La}} similar but produces several links in addition to talk. |
| − | <includeonly> | + | <includeonly>{{Sandbox other|| |
<!-- Categories go here, and interwikis go in Wikidata --> | <!-- Categories go here, and interwikis go in Wikidata --> | ||
[[Category:Internal link templates|{{PAGENAME}}]] | [[Category:Internal link templates|{{PAGENAME}}]] | ||
| − | </includeonly> | + | }}</includeonly> |
Latest revision as of 23:23, 25 April 2020
| This is a documentation subpage for Template:La2. It contains usage information, categories and other content that is not part of the original template page. |
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
Limitations
If the page is a redirect, the talk link will be for the redirect not the main page. For example: Template:Plain link is a redirect to Kirkwall Airport
{{la2|RAF Grimsetter}}→ RAF Grimsetter (talk){{la2|Kirkwall Airport}} →Kirkwall Airport (talk)
See also
- Template:La(edit talk links history) similar but produces several links in addition to talk.