Template:W: Difference between revisions
Jump to navigation
Jump to search
m quote marks help? |
m maybe this will work? |
||
| Line 1: | Line 1: | ||
<includeonly>[[wikipedia:{{{1}}}|{{#if:{{{ | <includeonly>[[wikipedia:{{{1}}}|{{#if:{{{span|}}}|<span title="{{{span}}}">{{{2|{{{1}}}}}}</span>|{{{2|{{{1}}}}}}}}]]</includeonly><noinclude> | ||
=== Description === | === Description === | ||
This template is designed to create in-line references to Wikipedia pages. | This template is designed to create in-line references to Wikipedia pages. | ||
| Line 20: | Line 20: | ||
will produce | will produce | ||
:{{w|John Rennie (editor)|John Rennie|the editor}}. | :{{w|John Rennie (editor)|John Rennie|span=the editor}}. | ||
It is not necessary to "escape" special characters such as "()#" or replace spaces with underscores ("_"). | It is not necessary to "escape" special characters such as "()#" or replace spaces with underscores ("_"). | ||
Revision as of 05:51, 16 May 2023
Description
This template is designed to create in-line references to Wikipedia pages.
Usage
To use this template, place {{w|<page>}} in an entry where "<page>" is an article on Wikipedia.
For example,
S: Our guest tonight is {{w|James Randi}}.
will produce
- S: Our guest tonight is James Randi.
To change the displayed text of the link, use a third parameter. For example,
{{w|John Rennie (editor)|John Rennie}}.
will produce
It is not necessary to "escape" special characters such as "()#" or replace spaces with underscores ("_").
Note that you can produce a link to Wikipedia's main page by using the format
{{w||Wikipedia}}
producing