|
mp>A876 |
Line 1: |
Line 1: |
| === Usage === | | {{Messagebox|warning|class=mb-brainwatermark|2='''This template is used on a <span class="plainlinks">[{{fullurl:Special:WhatLinksHere/{{FULLPAGENAME}}|hidelinks=1&hideredirs=1}} large number of pages]</span>'''. |
| This is a template for in-text linking to Wikipedia '''in articles''', as using a piped link with the <nowiki>[[wp:]]</nowiki> prefix creates a link that is hard to distinguish from an internal link and may confuse the reader. It's not necessary to use the template on discussion pages, because there the wp: prefix doesn't have to be hidden.
| |
|
| |
|
| Like the other Wikipedia templates, it's best to use this template sparingly.
| | In order to prevent unnecessary server load, edits should be kept to a minimum. Please experiment in the template's [[{{#ifeq:{{SUBPAGENAME}}|doc| {{SUBJECTSPACE}}:{{BASEPAGENAME}} | {{SUBJECTPAGENAME}} }}/sandbox|/sandbox]] or [[{{#ifeq:{{SUBPAGENAME}}|doc| {{SUBJECTSPACE}}:{{BASEPAGENAME}} | {{SUBJECTPAGENAME}} }}/testcases|/testcases]] subpage, or in your own sandbox, and consider discussing your changes on the [[{{#ifeq:{{SUBPAGENAME}}|doc| {{TALKSPACE}}:{{BASEPAGENAME}} | {{TALKPAGENAME}} }}|talk page]] before applying them. |
| | | {{messagebox|info|Editing a template causes '''all pages that use the template to be re-rendered'''. If the template is used often, this can put a lot of load on the server since it fills up the [[mediawikiwiki:Manual:Job queue|job queue]].}}}}<noinclude> |
| If the name of the Wikipedia article is the same as the desired text of the link, use just
| | <!-- do not edit this, edit the /doc subpage instead --> |
| <nowiki>{{wpl|name of Wikipedia article}}</nowiki>
| | {{doc}} |
| | | </noinclude> |
| If you want to put some other text in the link or format it in some special way, you need to pass it as the second parameter:
| |
| <nowiki>{{wpl|name of Wikipedia article|''alternative'' text}}</nowiki>
| |
| | |
| To avoid leaving a large space before a punctuation sign, leave the second parameter blank and use the punctuation sign as a third parameter. For example:
| |
| <nowiki>{{wpl|Conservapedia||,}}</nowiki>
| |
| results in {{wpl|Conservapedia||,}}
| |
| | |
| The image used in this template is [[:File:Wikipedia's W.svg]].
| |
| | |
| === See also ===
| |
| * [[Template:Red2wp]], for a link that is either an internal link to a RW page, or link to Wikipedia if no such page exists.
| |
| * [[Template:W]], for linking to particular articles at Wikipedia without footnotes.
| |
| * [[Template:Wpa]], for a handy way of including links to Wikipedia in footnotes.
| |
| * [[Template:Wplang]], for an experimental template for non-English Wikipedia articles.
| |
| * [[Template:Wplnologo]], for links to Wikipedia without showing the Wikipedia icon next to the link.
| |
| * [[Template:Wpr]], for in-text linking to Wikipedia in articles, but *also* creates a (presumably red) link to indicate this probably ought to exist on RW.
| |
| <includeonly> | |
| <!-- ADD CATEGORIES HERE --> | |
| [[Category:In-text templates]]
| |
| </includeonly> | |