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:

: editedit 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|NAMESPACE|PAGE NAME}}{{tlx|lnt|NAMESPACE|PAGE NAME}}
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:pagelinks|Category:Stubs}}
{{tlx|pagelinks|Category talk:Stubs}}{{safesubst:pagelinks|Category talk:Stubs}}
{{tlx|ln|Category|Stubs}}{{safesubst:ln|Category|Stubs}}
{{tlx|lnt|Category|Stubs}}{{safesubst:lnt|Category|Stubs}}
{{tlx|la|Article}}{{safesubst:la|Article}}
{{tlx|lat|Article}}{{safesubst:lat|Article}}
{{tlx|ld|Draft}}{{safesubst:ld|Draft}}
{{tlx|ldt|Draft}}{{safesubst:ldt|Draft}}
{{tlx|lt|Deprecated template}}{{safesubst:lt|Deprecated template}}
{{tlx|ltt|Deprecated template}}{{safesubst:ltt|Deprecated template}}
{{tlx|lu|Example}}{{safesubst:lu|Example}}
{{tlx|lut|Example}}{{safesubst:lut|Example}}
{{tlx|lw|About}}{{safesubst:lw|About}}
{{tlx|lwt|About}}{{safesubst:lwt|About}}
{{tlx|lc|Stubs}}{{safesubst:lc|Stubs}}
{{tlx|lct|Stubs}}{{safesubst:lct|Stubs}}
{{tlx|lf|1944 NormandyLST.jpg}}{{safesubst:lf|1944 NormandyLST.jpg}}
{{tlx|lft|1944 NormandyLST.jpg}}{{safesubst:lft|1944 NormandyLST.jpg}}
{{tlx|lp|Television}}{{safesubst:lp|Television}}
{{tlx|lpt|Television}}{{safesubst:lpt|Television}}
{{tlx|lm|Common.css}}{{safesubst:lm|Common.css}}
{{tlx|lmt|Common.css}}{{safesubst:lmt|Common.css}}

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}}

{{sandbox other||

Category:Pagelinks 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."

}