Template:Wpl/doc: Difference between revisions

m
1 revision imported
mNo edit summary
Tag: 2017 source edit
m (1 revision imported)
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
A simple template for linking to particular articles at WP without making what appear to be blue links.  May need slight text tweaking.
=== Usage ===
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.


*Parameter 1 = exact wikipedia title
Like the other Wikipedia templates, it's best to use this template sparingly.
*Parameter 2 = preferred text (optional)


Example:
If the name of the Wikipedia article is the same as the desired text of the link, use just
<nowiki>{{wpl|name of Wikipedia article}}</nowiki>


<nowiki>{{wpa|clueless}}</nowiki>
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>


yields:
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||,}}


{{wpa|clueless}}
The image used in this template is [[:File:Wikipedia's W.svg]].


and
=== 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.
<nowiki>{{wpa|clueless|idiots}}</nowiki>
* [[Template:W]], for linking to particular articles at Wikipedia without footnotes.
 
* [[Template:Wpa]], for a handy way of including links to Wikipedia in footnotes.
{{wpa|clueless|idiots}}
* [[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>