Template:W: Difference between revisions

From SGUTranscripts
Jump to navigation Jump to search
(Add template for linking to wikipedia, shamelessly cribbed from other wikis)
 
m (added 'desc' title only)
(One intermediate revision by one other user not shown)
Line 1: Line 1:
<includeonly>[[wikipedia:{{{1}}}|{{{2|{{{1}}}}}}]]</includeonly><noinclude>
<includeonly>[[wikipedia:{{{1}}}|{{{2|{{{1}}}}}}]]</includeonly><noinclude>
=== 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.


==Usage==
=== Usage ===
To use this template, place <nowiki>{{w|<page>}}</nowiki> in an entry where "<page>" is an article on Wikipedia.
To use this template, place <nowiki>{{w|<page>}}</nowiki> in an entry where "<page>" is an article on Wikipedia.



Revision as of 07:35, 3 September 2013

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

John Rennie.

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

Wikipedia