|
|
Line 1: |
Line 1: |
| | {{todo|use <nowiki><span></nowiki> CSS tag, to change visited link color to same as regular links.}} |
| {{Doc}} | | {{Doc}} |
| <includeonly> | | <includeonly> |
Revision as of 11:06, 5 July 2023
Todo: use <span> CSS tag, to change visited link color to same as regular links.

Available doc translations
…
English
Description & Usage
Note:The
pipe trick can also be used, but it will be less clear that the link goes to Wikipedia. See also: Help:Linking.
This template is a faster way to link to Wikipedia articles. Normally if you want to link to a Wikipedia article such as
IMI Desert Eagle, you have to write the entire title twice [[w:IMI Desert Eagle|IMI Desert Eagle]]
and it's a hassle. This template skips that step when the displayed text will be the same as the title of the article you are linking to, and it also adds a handy icon to make it clear to the reader that the link goes to Wikipedia, instead of somewhere internal.
To link to another language page of Wikipedia, use: {{Wiki|<lang-prefix>:ARTICLE}}
, see the example below.
Note:{{wikipedia}} and {{w}} redirect to {{wiki}}, so they're equivalent.
Parameters
Parameter
|
Description
|
Example
|
Preview
|
No Parameters
|
Creates a link to Wikipedia Home page with language selection.
|
|
[[Wikipedia:|
This template (and its redirect) is Template loop detected: Template:Wiki. Its use is not recommended and its functionality may be compromised. You can help our editors by replacing or deleting this template on the Pages that use this template. Once no more pages use this template, it should be Marked for deletion. Additional notes:Use #switch parser function instead. Example {{#switch: {{language}} | #default = English | ja = 日本語 | zh-tw = 中文(台灣) }}
]]
|
{{{1}}}
|
Full name of the article on Wikipedia.
|
{{wiki|Valve Corporation}}
|
|
{{{2}}}
|
Alternative name of the link.
|
{{wiki|Valve Corporation|Valve}}
{{wiki|es:Half-Life 2|HL2 (Spanish Wikipedia)}}
|
|
{{{section}}}
|
The section to link to (also works with {{{2}}}).
|
{{wiki|Half-Life 2|section=Gameplay}}
|
|
{{{icon}}} {{{text}}}
|
Hide/shows the icon. Values: show (default), hide
|
{{wiki|icon=hide}} {{wiki|text=hide}}
|
[[Wikipedia:|
This template (and its redirect) is Template loop detected: Template:Wiki. Its use is not recommended and its functionality may be compromised. You can help our editors by replacing or deleting this template on the Pages that use this template. Once no more pages use this template, it should be Marked for deletion. Additional notes:Use #switch parser function instead. Example {{#switch: {{language}} | #default = English | ja = 日本語 | zh-tw = 中文(台灣) }}
]]
[[Wikipedia:|
This template (and its redirect) is Template loop detected: Template:Wiki. Its use is not recommended and its functionality may be compromised. You can help our editors by replacing or deleting this template on the Pages that use this template. Once no more pages use this template, it should be Marked for deletion. Additional notes:Use #switch parser function instead. Example {{#switch: {{language}} | #default = English | ja = 日本語 | zh-tw = 中文(台灣) }}
]]
|
See also