Template:Namespace links/doc

From Wikipedia, the free encyclopedia
Jump to navigation Jump to search

Script error: No such module "Message box".

Script error: No such module "For". Script error: No such module "Shortcut". Script error: No such module "Message box".

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:

<templatestyles src="Template:Color/styles.css" />Page (<templatestyles src="Template:Color/styles.css" />edit | <templatestyles src="Template:Color/styles.css" />talk | <templatestyles src="Template:Color/styles.css" />history | <templatestyles src="Template:Color/styles.css" />links | <templatestyles src="Template:Color/styles.css" />watch | <templatestyles src="Template:Color/styles.css" />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:
    • Template:Lt creates links for any page in any namespace.
    • Template:Lt creates links for pages in any subject namespace.
    • Template:Lt creates links for pages in any talk namespace.

Usage

Namespace Link to subject page Link to talk page
General Template:Tlx
Same as for subject page
Template:Tlx Template:Tlx
Article Template:Tlx Template:Tlx
Draft Template:Tlx Template:Tlx
Template Template:Tlx Template:Tlx
Wikipedia Template:Tlx Template:Tlx
Wikipedia:Articles for deletion/ Template:Tlx
User Template:Tlx Template:Tlx[1]
Category Template:Tlx Template:Tlx
File Template:Tlx Template:Tlx
Portal Template:Tlx Template:Tlx
MediaWiki Template:Tlx Template:Tlx
Help Template:Tlx Template:Tlx
TimedText Template:Tlx Template:Tlx
Module Template:Tlx Template:Tlx

<templatestyles src="Reflist/styles.css" />

  1. For a similar template for user accounts, see Template:user

Script error: No such module "Check for unknown parameters".

Examples

Code Result
Template:Tlx Template:Pagelinks
Template:Tlx Template:Pagelinks
Template:Tlx Template:Ln
Template:Tlx Template:Lnt
Template:Tlx Template:La
Template:Tlx Template:Lat
Template:Tlx Template:Ld
Template:Tlx Template:Ldt
Template:Tlx Template:Lt
Template:Tlx Template:Ltt
Template:Tlx Template:Lu
Template:Tlx Template:Lut
Template:Tlx Template:Lw
Template:Tlx Template:Lwt
Template:Tlx Template:Lc
Template:Tlx Template:Lct
Template:Tlx Template:Lf
Template:Tlx Template:Lft
Template:Tlx Template:Pagelinks
Template:Tlx Template:Lpt
Template:Tlx Template:Lm
Template:Tlx Template:Lmt

See also

Template:Internal category-link templates


TemplateData

Template:TemplateData header

Produces a series of links for a specified page.

Template parameters

ParameterDescriptionTypeStatus
11

Name of the target page.

Page namerequired