(example of small WP)
(fix intro line of Usage)
Line 3: Line 3:
----
----
==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.:
If the Wikipedia article title is '''Peter Newman (Australian)''' but I want it to display as {{WP p|Peter Newman (Australian)|Newman P}}
:<nowiki>{{WP|Jock Brandis}} developed the {{WP|Malian peanut sheller}}.</nowiki>
:<nowiki>{{WP|Jock Brandis}} developed the {{WP|Malian peanut sheller}}.</nowiki>
creates:
creates:
:{{WP|Jock Brandis}} developed the {{WP|Malian peanut sheller}}.
:{{WP|Jock Brandis}} developed the {{WP|Malian peanut sheller}}.


Bug(s):
== 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.  
*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).   
*Currently doesn't allow piping (but it should be doable to create another template to do this).   


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 14:29, 18 November 2006

{{{1}}} [[Wikipedia:{{{1}}}|(WP)]]


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.: If the Wikipedia article title is Peter Newman (Australian) but I want it to display as W

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

creates:

Jock Brandis (WP) developed the Malian peanut sheller (WP).

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 Blog (WP)s i.e. a mess.
  • Currently doesn't allow piping (but it should be doable to create another template to do this).

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.