Difference between revisions of "Template:Drvlinks"
Jump to navigation
Jump to search
for each page of a multiple DRV discussion.
imported>Lifebaka (←Redirected page to Template:DRV links) |
imported>Timotheus Canens |
||
| Line 1: | Line 1: | ||
| − | # | + | {{#ifeq:{{#switch:{{ucfirst:{{{ns|}}}}} |
| + | | Article | Talk | Category | Category talk | User | User talk | Template | Template talk | File | File talk | Wikipedia | Wikipedia talk | Portal | Portal talk | MediaWiki | MediaWiki talk = 1 | {{ns:0}} = {{ns:0}} | #default = 0}}|0|<big><big><font color="red">Invalid {{para|ns}}, please use one of the following: Article, Talk, Category, Category talk, User, User talk, Template, Template talk, File, File talk, Wikipedia, Wikipedia talk, Portal, Portal talk, MediaWiki, MediaWiki talk.</font></big></big>| | ||
| + | :{{l{{#if:{{#switch:{{ucfirst:{{{ns|}}}}}| Article | Talk = {{ns:0}} | {{{ns|}}}}}|n|a}}{{#ifeq:{{#switch:{{ucfirst:{{{ns|}}}}} | ||
| + | | Talk | Category talk | User talk | Template talk | Image talk | Wikipedia talk | Portal talk | MediaWiki talk = Talk | ||
| + | | #default = {{{ns|}}} | ||
| + | }}|Talk|t}}|{{#if:{{{ns|}}}|{{#switch:{{ucfirst:{{{ns|}}}}} | ||
| + | | Article | Talk = {{ns:0}} | ||
| + | | Image talk = Image | ||
| + | | User talk = User | ||
| + | | Wikipedia talk = Wikipedia | ||
| + | | Template talk = Template | ||
| + | | Category talk = Category | ||
| + | | Portal talk = Portal | ||
| + | | MediaWiki talk = MediaWiki | ||
| + | | {{{ns|}}} }}}}|{{#if:{{#switch:{{ucfirst:{{{ns|}}}}}|Article|Talk={{ns:0}}|{{{ns|}}}}}|2|1}}={{{pg}}}}} <tt>(</tt>[[Special:Undelete/{{#if:{{#switch:{{ucfirst:{{{ns|}}}}}|Article={{ns:0}}|#default={{{ns|}}}}}|{{{ns}}}:}}{{{pg}}}|restore]]<tt>|</tt><span class="plainlinks">[http://www.google.com/search?q=cache:{{fullurl:{{#if:{{#switch:{{ucfirst:{{{ns|}}}}}|Article={{ns:0}}|#default={{{ns|}}}}}|{{{ns}}}:}}{{{pg}}}}} cache]</span>{{#switch:{{ucfirst:{{{ns|}}}}}| Article =<tt>|</tt>[[Wikipedia:Articles for deletion/{{ucfirst:{{{pg}}}}}|AfD]]| | ||
| + | Category | Template | File = | | ||
| + | Talk | Portal | Portal talk | Wikipedia | Wikipedia talk | MediaWiki | MediaWiki talk | Image talk | Category talk | Template talk | User | User talk =<tt>|</tt>[[Wikipedia:Miscellany for deletion/{{ucfirst:{{{ns}}}}}:{{ucfirst:{{{pg}}}}}|MfD]]| | ||
| + | #default =<tt>|</tt>[[Wikipedia:Articles for deletion/{{ucfirst:{{{pg}}}}}|AfD]]}}}}<noinclude> | ||
| + | {{Documentation}} | ||
| + | </noinclude> | ||
Revision as of 06:50, 16 October 2009
- [[:{{{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]]
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)
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=Articlealso may be used. - Other namespaces - use the namespace name, e.g.
|ns=Useror|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=Mediawikiand|ns=mediawikiwill all work.
- Main (Article) namespace - if
- Example 1
|ns=Template and |pg=Drvlinks as in:
{{drvlinks|pg=Drvlinks|ns=Template}}.
See also
| The above documentation is transcluded from Template:Drvlinks/doc. (edit | history) Editors can experiment in this template's sandbox (edit | diff) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |