Difference between revisions of "Template:Drvlinks"

From blackwiki
Jump to navigation Jump to search
imported>Timotheus Canens
(Undid revision 310735808 by Lifebaka (talk) Not really a good idea - all the links in archived DRVs are broken.)
imported>Frietjes
Line 4: Line 4:
 
| Talk | Category talk | User talk | Template talk | Image talk | Wikipedia talk | Portal talk | MediaWiki talk = Talk
 
| Talk | Category talk | User talk | Template talk | Image talk | Wikipedia talk | Portal talk | MediaWiki talk = Talk
 
| #default = {{{ns|}}}
 
| #default = {{{ns|}}}
}}|Talk|t}}|{{#if:{{{ns|}}}|{{#switch:{{ucfirst:{{{ns|}}}}}
+
}}|Talk|t}}|{{#if:{{#switch:{{ucfirst:{{{ns|}}}}}|Article|Talk={{ns:0}}|{{{ns|}}}}}|1|0}}={{#if:{{{ns|}}}|{{#switch:{{ucfirst:{{{ns|}}}}}
 
| Article | Talk = {{ns:0}}
 
| Article | Talk = {{ns:0}}
 
| Image talk = Image
 
| Image talk = Image

Revision as of 17:35, 1 November 2014

[[:{{{pg}}}]] ([{{fullurl:{{{pg}}}|action=edit}} edit] | [[Talk:{{{pg}}}|talk]] | [{{fullurl:{{{pg}}}|action=history}} history] | [{{fullurl:{{{pg}}}|action=protect}} protect] | [{{fullurl:{{{pg}}}|action=delete}} delete] | [{{fullurl:Special:Whatlinkshere/{{{pg}}}|limit=999}} links] | [{{fullurl:{{{pg}}}|action=watch}} watch] | logs | views) ([[Special:Undelete/{{{pg}}}|restore]]|cache|[[Wikipedia:Articles for deletion/{{{pg}}}|AfD]]
50px Template documentation[view] [edit] [history] [purge]

Purpose

This template is used in {{newdelrev}}, the primary template for deletion review. In addition, this template may used by itself for a second and other multiple deletion review listings to produce the link string

Pagename (edit|talk|history|links|watch|logs) (restore|cache|AfD)

for each page of a multiple DRV discussion.

Usage

To use this template, simply use

{{drvlinks|pg=<PAGENAME of page to review>|ns=<NAMESPACE of page to review>}}.

Parameters

Drvlinks takes two named parameters, |pg= and |ns=. In a page title, |ns= is the text before the colon (":"), and |pg= is the text after it.

  • |pg= is the title of the page nominated for review.
  • |ns= is the namespace in which the nominated page resides:
  • Main (Article) namespace - if |ns= is left blank, the template defaults to article space. |ns=Article also may be used.
  • Other namespaces - use the namespace name, e.g. |ns=User or |ns=Wikipedia talk. A full list of namespaces is available at Wikipedia:Namespaces.
  • You can also use the namespace number. E.g. instead of |ns=User, you can use |ns=2. A full list of namespace numbers is available at Wikipedia:Namespaces.
  • Special namespaces such as "Special" and "Media" are invalid.
  • Namespace names are case-insensitive - |ns=MediaWiki, |ns=Mediawiki and |ns=mediawiki will all work.
Example 1
For the page Template:Drvlinks, use |ns=Template and |pg=Drvlinks as in:

{{drvlinks|pg=Drvlinks|ns=Template}}.

See also