(example of small WP)
(Display "<font color=grey>DEPRECATED TEMPLATE - PLEASE USE {{tl|W}} INSTEAD.</font>")
(21 intermediate revisions by 5 users not shown)
Line 1: Line 1:
<tt>{{{1}}} [[Wikipedia:{{{1}}}|(WP)]]</tt><noinclude>
<noinclude>
:'''NOTE: THIS TEMPLATE IS DEPRECATED.''' Please use the {{tl|w}} template, which fits in better with punctuation, e.g. it can go after a comma or period.
</noinclude>{{{2|{{{1}}}}}}<sup><font color=grey>DEPRECATED TEMPLATE - PLEASE USE {{tl|W}} INSTEAD.</font></sup><noinclude>


----
----
==Usage==
==Usage==
Use this template to link text to Wikipedia, in a more elegant way than , to
Use this template to link text to Wikipedia, in a more elegant way than using the ''wikipedia:'' prefix. 
 
It works in a similar way to a piped wikilink.


E.g.:
E.g.:
Line 10: Line 14:
:{{WP|Jock Brandis}} developed the {{WP|Malian peanut sheller}}.
:{{WP|Jock Brandis}} developed the {{WP|Malian peanut sheller}}.


Bug(s):
==Changing the display text==
*Unlike normal wiki linking, you cannot add letters at the end of the word, e.g. to make it plural. E.g. normally '''<nowiki>[[Blog]]s</nowiki>''' creates '''[[Blog]]s''', but '''<nowiki>{{WP|Blog}}s</nowiki>''' creates '''{{WP|Blog}}s''' i.e. a mess.  
 
*Currently doesn't allow piping (but it should be doable to create another template to do this).
If the Wikipedia article title is '''Peter Newman (Australian)''' but you want it to display as {{WP p|Peter Newman (Australian)|Newman P}}, then use the optional second parameter: <nowiki>{{WP|Peter Newman (Australian)|Newman P}}</nowiki> will display as {{WP|Peter Newman (Australian)|Newman P}}. 
 
To format the word, e.g. have it show up in bold, you can do <nowiki>{{WP|Peter Newman (Australian)|'''{{WP|Peter Newman (Australian)'''}}</nowiki>, which will give {{WP|Peter Newman (Australian)|'''Peter Newman (Australian)'''}}. 
 
To link to an article in a Wikipedia other than english, use the two- or three-letter abbreviation used by Wikimedia to represent that language (found in the URL of that language's Wikipedia before .wikipedia.org) with a colon and no space before the first parameter:  <nowiki>{{WP|fr:copyleft|copyleft}}</nowiki> gives {{WP|fr:copyleft|copyleft}}. 
 
To put a period before the prefix, do <nowiki>{{WP|Peter Newman (Australian)|Peter Newman (Australian).}}</nowiki> and then do not use a period after the template: {{WP|Peter Newman (Australian)|Peter Newman (Australian).}}  [[Template:WP p]] is deprecated in favor of using the optional second parameter in this template. 
 
== Bug(s) ==
 
*Unlike normal wiki linking, you cannot add letters at the end of the word, e.g. to make it plural. E.g. normally '''<nowiki>[[Blog]]s</nowiki>''' creates '''[[Blog]]s''', but '''<nowiki>{{WP|Blog}}s</nowiki>''' creates '''{{WP|Blog}}s''' i.e. a mess. Use the optional second parameter if you want the word to [[#Changing the display text|display differently]] than in the link.
 
== Unresolved questions ==


Unresolved questions:
*should we use <nowiki><tt></nowiki> (teletype text?) to subtly mark the link text (making it clear whether it's the last word that's linked, or the last 2 or more words)?
*should we use <nowiki><tt></nowiki> (teletype text?) to subtly mark the link text (making it clear whether it's the last word that's linked, or the last 2 or more words)?
*should we use <nowiki><small></nowiki> for the "WP"? E.g. "<tt>Jock Brandis [[Wikipedia:Jock Brandis|<small>(WP)</small>]]</tt> developed..." If so, it seems a bit too small for some readers perhaps, and thus confusing; if left as normal size it's a little intrusive perhaps, but quite clear.  
*should we use <nowiki><small></nowiki> for the "WP"? E.g. "<tt>Jock Brandis [[Wikipedia:Jock Brandis|<small>(WP)</small>]]</tt> developed..." If so, it seems a bit too small for some readers perhaps, and thus confusing; if left as normal size it's a little intrusive perhaps, but quite clear.  

Revision as of 19:48, 14 March 2012

NOTE: THIS TEMPLATE IS DEPRECATED. Please use the {{w}} template, which fits in better with punctuation, e.g. it can go after a comma or period.

{{{1}}}DEPRECATED TEMPLATE - PLEASE USE {{W}} INSTEAD.


Usage

Use this template to link text to Wikipedia, in a more elegant way than using the wikipedia: prefix.

It works in a similar way to a piped wikilink.

E.g.:

{{WP|Jock Brandis}} developed the {{WP|Malian peanut sheller}}.

creates:

Jock BrandisDEPRECATED TEMPLATE - PLEASE USE {{W}} INSTEAD. developed the Malian peanut shellerDEPRECATED TEMPLATE - PLEASE USE {{W}} INSTEAD..

Changing the display text

If the Wikipedia article title is Peter Newman (Australian) but you want it to display as W, then use the optional second parameter: {{WP|Peter Newman (Australian)|Newman P}} will display as Newman PDEPRECATED TEMPLATE - PLEASE USE {{W}} INSTEAD..

To format the word, e.g. have it show up in bold, you can do {{WP|Peter Newman (Australian)|'''{{WP|Peter Newman (Australian)'''}}, which will give Peter Newman (Australian)DEPRECATED TEMPLATE - PLEASE USE {{W}} INSTEAD..

To link to an article in a Wikipedia other than english, use the two- or three-letter abbreviation used by Wikimedia to represent that language (found in the URL of that language's Wikipedia before .wikipedia.org) with a colon and no space before the first parameter: {{WP|fr:copyleft|copyleft}} gives copyleftDEPRECATED TEMPLATE - PLEASE USE {{W}} INSTEAD..

To put a period before the prefix, do {{WP|Peter Newman (Australian)|Peter Newman (Australian).}} and then do not use a period after the template: Peter Newman (Australian).DEPRECATED TEMPLATE - PLEASE USE {{W}} INSTEAD. Template:WP p is deprecated in favor of using the optional second parameter in this template.

Bug(s)

  • Unlike normal wiki linking, you cannot add letters at the end of the word, e.g. to make it plural. E.g. normally [[Blog]]s creates Blogs, but {{WP|Blog}}s creates BlogDEPRECATED TEMPLATE - PLEASE USE {{W}} INSTEAD.s i.e. a mess. Use the optional second parameter if you want the word to display differently than in the link.

Unresolved questions

  • should we use <tt> (teletype text?) to subtly mark the link text (making it clear whether it's the last word that's linked, or the last 2 or more words)?
  • should we use <small> for the "WP"? E.g. "Jock Brandis (WP) developed..." If so, it seems a bit too small for some readers perhaps, and thus confusing; if left as normal size it's a little intrusive perhaps, but quite clear.
Cookies help us deliver our services. By using our services, you agree to our use of cookies.