Difference between revisions of "Template:wpl/doc"
(→Usage) |
|||
| Line 4: | Line 4: | ||
Like the other Wikipedia templates, it's best to use this template sparingly. | 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 | + | If the name of the Wikipedia article is the same as the desired text of the link, use just<br/> |
| − | + | <tt><nowiki>{{wpl|name of Wikipedia article}}</nowiki></tt><br/> | |
| + | which gives: {{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 | + | 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 2nd parameter:<br/> |
| − | + | <tt><nowiki>{{wpl|name of Wikipedia article|''alternative text''}}</nowiki></tt><br/> | |
| + | which gives: {{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 | + | The template also enables use of the § sign, thus:<br/> |
| − | + | <tt><nowiki>{{wpl|name of Wikipedia article#section title}}</nowiki></tt><br/> | |
| − | + | which gives: {{wpl|name of Wikipedia article#section title}} | |
| + | |||
| + | To avoid leaving a large space before a punctuation sign, leave the second parameter blank and use the punctuation sign as a 3rd parameter. For example:<br/> | ||
| + | <tt><nowiki>{{wpl|Conservapedia||,}}</nowiki></tt><br/> | ||
| + | gives: {{wpl|Conservapedia||,}} | ||
Source: [https://rationalwiki.org/wiki/Template:Wpl RationalWiki] | Source: [https://rationalwiki.org/wiki/Template:Wpl RationalWiki] | ||
<includeonly>[[Category:WikiPolitiks templates]]</includeonly> | <includeonly>[[Category:WikiPolitiks templates]]</includeonly> | ||
Revision as of 11:53, 28 October 2019
Usage
This is a template for in-line linking to Wikipedia in articles, because 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.
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}}
which gives: 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 2nd parameter:
{{wpl|name of Wikipedia article|''alternative text''}}
which gives: alternative text
The template also enables use of the § sign, thus:
{{wpl|name of Wikipedia article#section title}}
which gives: name of Wikipedia article § section title
To avoid leaving a large space before a punctuation sign, leave the second parameter blank and use the punctuation sign as a 3rd parameter. For example:
{{wpl|Conservapedia||,}}
gives: Conservapedia,
Source: RationalWiki