Template:Wiktl and Template:Wpl/doc: Difference between pages

From IxWiki
(Difference between pages)
Jump to navigation Jump to search
mp>Dbz
(mod of Template:Wpl)
 
m (1 revision imported)
 
Line 1: Line 1:
[[wikt:{{{1}}}|{{#if:{{{4|}}}||<span style="color:#477979 !important;" title="Wiktionary: {{{1}}}">}}{{#replace:{{#replace:{{#if: {{{2|}}}|{{{2}}}|{{{1}}}}}|_|<nowiki> </nowiki> <nowiki> </nowiki>}}|#|<nowiki> </nowiki> § <nowiki> </nowiki>}}</span>]]{{{3|}}}<sup>[[File:Wiktionary small.svg|12px|link=|alt=Wiktionary]]</sup><noinclude>{{doc}}</noinclude>
=== 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.
 
Like the other Wikipedia templates, it's best to use this template sparingly.
 
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>
 
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>

Latest revision as of 22:01, 14 July 2023

Usage

This is a template for in-text linking to Wikipedia in articles, as using a piped link with the [[wp:]] 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.

If the name of the Wikipedia article is the same as the desired text of the link, use just

{{wpl|name of Wikipedia article}}

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:

{{wpl|name of Wikipedia article|''alternative'' text}}

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:

{{wpl|Conservapedia||,}}

results in 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.