Template:Namespace links/doc
{{Documentation subpage}}
{{for|the French citation template {{tld|Article}}|Template:Cite news/French}}
{{tsh|{{#switch:{{ROOTPAGENAME}}|Namespace links=ln|Namespace talk links=lnt|Article links=la|Article talk links=lat|Draft links=ld|Draft talk links=ldt|Template links=lt|Template talk links=ltt|Wikipedia links=lw|Wikipedia talk links=lwt|Userspace links=lu|User talk links=lut|Category links=lc|Category talk links=lct|File links=lf|File talk links=lft|Portal links=lp|Portal talk links=lpt|MediaWiki links=lm|MediaWiki talk links=lmt|Help links=lh|Help talk links=lht|TimedText links=lttxt|Module links=lmd|Articles for deletion links=lafd|Pagelinks=pl}}}}
{{transclusionless}}
{{#switch: {{FULLPAGENAME}}
| Template:La = {{High-use}}
| Template:Lc = {{for|lowercase formatting|Help:Magic words#Parser functions}}
| Template:Pagelinks = {{High-use}}{{lua|Module:PageLinks}}
}}
About
This template and the other related templates listed below produce a series of links for a specified page that is generally, though not always, of the form:
: {{color|#002BB8|Page}} ({{color|#002BB8|edit}} | {{color|#002BB8|talk}} | {{color|#002BB8|history}} | {{color|#002BB8|links}} | {{color|#002BB8|watch}} | {{color|#002BB8|logs}})
The six links are:
: edit
– edit the page;
: talk
/subject
– access its talk page (or if the target page is a talk page, its subject page);
: history
– access its edit history;
: links
– access the what links here feature;
: watch
– add the page to one's watchlist; and
: log
– access its logs.
The major difference between the templates is the namespace of the page to which it is applied.
- General:
- {{lt|Pagelinks}} creates links for any page in any namespace.
- {{lt|Ln}} creates links for pages in any subject namespace.
- {{lt|Lnt}} creates links for pages in any talk namespace.
Usage
class="wikitable"
!Namespace!! Link to subject page !! Link to talk page | ||
rowspan=2 | General | {{tlx|pagelinks|FULL PAGE NAME}} | Same as for subject page |
{{tlx|ln| | {{tlx|lnt| | |
Article | {{tlx|la|ARTICLE}} | {{tlx|lat|ARTICLE}} |
Draft | {{tlx|ld|DRAFT}} | {{tlx|ldt|DRAFT}} |
Template | {{tlx|lt|TEMPLATE}} | {{tlx|ltt|TEMPLATE}} |
Wikipedia | {{tlx|lw|PAGE}} | {{tlx|lwt|PAGE}} |
Wikipedia:Articles for deletion/ | {{tlx|lafd|PAGE}} | {{n/a}} |
User | {{tlx|lu|PAGE}} | {{tlx|lut|PAGE}}For a similar template for user accounts, see Template:user |
Category | {{tlx|lc|PAGE}} | {{tlx|lct|PAGE}} |
File | {{tlx|lf|FILE}} | {{tlx|lft|FILE}} |
Portal | {{tlx|lp|PORTAL}} | {{tlx|lpt|PORTAL}} |
MediaWiki | {{tlx|lm|MESSAGE}} | {{tlx|lmt|MESSAGE}} |
Help | {{tlx|lh|PAGE}} | {{tlx|lht|PAGE}} |
TimedText | {{tlx|lttxt|TIMEDTEXT}} | {{tlx|lttxtt|TIMEDTEXT}} |
Module | {{tlx|lmd|MODULE}} | {{tlx|lmdt|MODULE}} |
{{clear}}
{{reflist}}
Examples
class="wikitable"
! Code ! Result | |
style="vertical-align:top;"
| {{tlx|pagelinks|Category:Stubs}} | {{safesubst: |
{{tlx|pagelinks|Category talk:Stubs}} | {{safesubst: |
{{tlx|ln| | {{safesubst: |
{{tlx|lnt| | {{safesubst: |
{{tlx|la|Article}} | {{safesubst: |
{{tlx|lat|Article}} | {{safesubst: |
{{tlx|ld|Draft}} | {{safesubst: |
{{tlx|ldt|Draft}} | {{safesubst: |
{{tlx|lt|Deprecated template}} | {{safesubst: |
{{tlx|ltt|Deprecated template}} | {{safesubst: |
{{tlx|lu|Example}} | {{safesubst: |
{{tlx|lut|Example}} | {{safesubst: |
{{tlx|lw|About}} | {{safesubst: |
{{tlx|lwt|About}} | {{safesubst: |
{{tlx|lc|Stubs}} | {{safesubst: |
{{tlx|lct|Stubs}} | {{safesubst: |
{{tlx|lf|1944 NormandyLST.jpg}} | {{safesubst: |
{{tlx|lft|1944 NormandyLST.jpg}} | {{safesubst: |
{{tlx|lp|Television}} | {{safesubst: |
{{tlx|lpt|Television}} | {{safesubst: |
{{tlx|lm|Common.css}} | {{safesubst: |
{{tlx|lmt|Common.css}} | {{safesubst: |
See also
- {{Lts|lag}} same as {{tl|la}} with a link to the Google search
- {{Lts|la-abbr}} abbreviated form of La: shows letters instead of words
- {{Lts|laal}} same as {{tl|la}} with the article's short description alongside
- {{Lts|al}} provides edit/history links for both article and talk page
- {{Lts|userlinks}} provides additional links to user's contributions history etc.
- {{Lts|Lcs}} comparison categories
- {{Lts|Lps}} comparison Wikipedia
- {{Lts|Lts}} comparison templates
- {{Lts|Ti}}
- {{Lts|Tlsp}}
- {{Lts|Tlx}} comparison parameters
- {{Lcs|Internal link templates}}
- {{Lts|Rfplinks}}
{{Internal category-link templates}}
}}
TemplateData
{{TemplateData header}}
{
"params": {
"1": {
"description": "Name of the target page.",
"type": "wiki-page-name",
"required": true
}
},
"description": "Produces a series of links for a specified page."
}