Difference between revisions of "Template:W"

From IntactiWiki
Jump to navigation Jump to search
(added 2nd parameter for multi-words WP links)
(formatting optimized)
Line 1: Line 1:
<includeonly>{{#if:{{{2|}}}|[https://en.wikipedia.org/wiki/{{{1}}} {{{2}}}]|[https://en.wikipedia.org/wiki/{{{1}}} {{{1}}}]}}<sup><small>[WP]</small></sup></includeonly><noinclude>This template links a term to a Wikipedia article about the same term, indicating the WP link by a superscripted <sup><small>[WP]</small></sup> mark.
+
<includeonly>{{#if:{{{2|}}}|[https://en.wikipedia.org/wiki/{{{1}}} {{{2}}}]|[https://en.wikipedia.org/wiki/{{{1}}} {{{1}}}<sup><small> (WP)</small></sup>]}}</includeonly><noinclude>This template links a term to a Wikipedia article about the same term, indicating the WP link by a superscripted <sup><small>[WP]</small></sup> mark.
  
 
== Examples ==
 
== Examples ==

Revision as of 12:49, 21 August 2025

This template links a term to a Wikipedia article about the same term, indicating the WP link by a superscripted [WP] mark.

Examples

{{W|Circumcision}}

Circumcision (WP)

{{W|College_of_Physicians_and_Surgeons_of_Ontario|College of Physicians and Surgeons of Ontario}}

College of Physicians and Surgeons of Ontario

Wikifying to the Wikipedia

If you want to link to a Wikipedia article without the [WP] mark, you can even wikify the term using a special prefix:

[[wikipedia:Hashtag|hashtag]]

hashtag

Note: In both cases, the links will point to a Wikipedia of the same language instance that is used by the IntactiWiki.