Template:Wiki/doc: Difference between revisions
Jump to navigation
Jump to search
Tip:The pipe trick makes this template redundant. See also: Help:Linking.
(Linked pipe trick. Put examples together.) |
Kestrelguy (talk | contribs) m (moved from the "Templates" category (which isn't supposed to contain templates themselves, only categories) to the "Formatting templates" category.) |
||
Line 23: | Line 23: | ||
<includeonly>{{sandbox other|| | <includeonly>{{sandbox other|| | ||
<!-- Categories below this line, please --> | <!-- Categories below this line, please --> | ||
[[Category: | [[Category:Formatting templates]] | ||
}}</includeonly> | }}</includeonly> |
Revision as of 12:01, 21 October 2022

This is a documentation subpage for Template:Wiki.
Don't forget to purge the contents of the base page upon creating or editing this subpage.
Don't forget to purge the contents of the base page upon creating or editing this subpage.
Usage

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 [[Wikipedia: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.
To link to another language page of Wikipedia, use: {{Wiki|<lang-prefix>:ARTICLE}}
, see the example below.
Parameters
- {{{1}}} - The wikipedia article name to link to.
- {{{2}}} - Optional: The display text for the link.
Examples
{{wiki|IMI Desert Eagle}} |
→ | ![]() |
{{wiki|IMI Desert Eagle|Deagle}} |
→ | ![]() |
{{wiki|ru:Гейб Ньювелл|Гейб Ньювелл}} |
→ | ![]() |