Template:Wpl/doc: Difference between revisions

m
no edit summary
(Created page with "=== 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...")
Tag: 2017 source edit
 
mNo edit summary
Tag: 2017 source edit
Line 1: Line 1:
=== Usage ===
A simple template for linking to particular articles at WP without making what appear to be blue links. May need slight text tweaking.
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.
*Parameter 1 = exact wikipedia title
*Parameter 2 = preferred text (optional)


If the name of the Wikipedia article is the same as the desired text of the link, use just
Example:
<nowiki>{{wpl|name of Wikipedia article}}</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>{{wpa|clueless}}</nowiki>
<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:
yields:
<nowiki>{{wpl|Conservapedia||,}}</nowiki>
results in {{wpl|Conservapedia||,}}


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


=== See also ===
and
* [[Template:Wpa]], for a handy way of including links to Wikipedia in footnotes.
 
* [[Template:Wplang]], an experimental template for non-English Wikipedia articles
<nowiki>{{wpa|clueless|idiots}}</nowiki>
<includeonly>
 
<!-- ADD CATEGORIES HERE -->
{{wpa|clueless|idiots}}
[[Category:In-text templates]]
</includeonly>