Difference between revisions of "Template:W"
From YTMND
Line 2: | Line 2: | ||
---- | ---- | ||
*'''Purpose:''' This template easily creates a link to a Wikipedia article. | *'''Purpose:''' This template easily creates a link to a Wikipedia article. | ||
− | *'''Usage:''' {{ | + | *'''Usage:''' {{tlp2|w|article|caption}} |
**''article'' = the article at Wikipedia (replacing spaces with "_", etc) | **''article'' = the article at Wikipedia (replacing spaces with "_", etc) | ||
**''caption'' = the text that appears in the link. | **''caption'' = the text that appears in the link. | ||
− | *'''Example:''' {{ | + | *'''Example:''' {{tlp2|w|YTMND|The best site ever}} creates {{w|YTMND|The best site ever}}. |
*'''Defaults:''' leaving "article" blank will default to Wikipedia's main page with the caption as "Wikipedia". leaving caption blank will default to the article name. | *'''Defaults:''' leaving "article" blank will default to Wikipedia's main page with the caption as "Wikipedia". leaving caption blank will default to the article name. | ||
[[Category:Link Templates]] | [[Category:Link Templates]] | ||
</noinclude> | </noinclude> |
Revision as of 12:59, June 10, 2006
- Purpose: This template easily creates a link to a Wikipedia article.
- Usage: {{w|article|caption}}
- article = the article at Wikipedia (replacing spaces with "_", etc)
- caption = the text that appears in the link.
- Example: {{w|YTMND|The best site ever}} creates The best site ever.
- Defaults: leaving "article" blank will default to Wikipedia's main page with the caption as "Wikipedia". leaving caption blank will default to the article name.