Template:Wiki/doc: Difference between revisions
Jump to navigation
Jump to search
Note:The
pipe trick can also be used, but it will be less clear that the link goes to Wikipedia. See also: Help:Linking.
Kestrelguy (talk | contribs) m (moved from the "Templates" category (which isn't supposed to contain templates themselves, only categories) to the "Formatting templates" category.) |
(not much of a hassle) |
||
(21 intermediate revisions by 7 users not shown) | |||
Line 1: | Line 1: | ||
{{ | {{Doc/subpage}} | ||
<!-- Please place categories where indicated at the bottom of this page. --> | <!-- Please place categories where indicated at the bottom of this page. --> | ||
== Usage == | == Description & Usage == | ||
{{ | {{shortcut|{{t|w}}<br>{{t|wp}}<br> {{t|wikipedia}}}} | ||
This template is a faster way to link to Wikipedia articles. Normally if you want to link to a Wikipedia article such as | {{note|The {{wiki|help:pipe trick|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 {{wiki|IMI Desert Eagle}}, you have to write the entire title twice <code><nowiki>[[w:IMI Desert Eagle|IMI Desert Eagle]]</nowiki></code> 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: <code><nowiki>{{Wiki|<lang-prefix>:ARTICLE}}</nowiki></code>, see the example below. | To link to another language page of Wikipedia, use: <code><nowiki>{{Wiki|<lang-prefix>:ARTICLE}}</nowiki></code>, see the example below. | ||
{{ | {{Note|{{t|wikipedia}} and {{t|w}} redirect to {{t|wiki}}, so they're equivalent.}} | ||
=== Parameters === | === Parameters === | ||
{| class="standard-table" style="width:100%" | |||
! Parameter | |||
! Description | |||
== | ! Example | ||
{| style= | ! Preview | ||
| {{ | |- | ||
| style="text-align:center" | No Parameters | |||
| Creates a link to Wikipedia Home page with language selection. | |||
| style="padding:.2em .5em" | {{CodeBlock|<nowiki>{{wiki}}</nowiki>}} | |||
| style="padding:.2em .5em" | {{Capsule| {{wiki}} }} | |||
|- | |||
| style="text-align:center" | {{Code| {{param}} }} | |||
| Full name of the article on '''Wikipedia'''. | |||
| style="padding:.2em .5em" | {{CodeBlock|<nowiki>{{wiki|Valve Corporation}}</nowiki>}} | |||
| style="padding:.2em .5em" | {{Capsule| {{wiki|Valve Corporation}} }} | |||
|- | |||
| style="text-align:center" | {{Code| {{param|2}} }} | |||
| Alternative name of the link. | |||
| style="padding:.2em .5em" | {{CodeBlock|<nowiki>{{wiki|Valve Corporation|Valve}}</nowiki>}} | |||
{{CodeBlock|<nowiki>{{wiki|es:Half-Life 2|HL2 (Spanish Wikipedia)}}</nowiki>}} | |||
| style="padding:.2em .5em" | {{Capsule| {{wiki|Valve Corporation|Valve}} }} | |||
{{Capsule| {{wiki|es:Half-Life 2|HL2 (Spanish Wikipedia)}} }} | |||
|- | |||
| style="text-align:center" | {{Code| {{param|section}} }} | |||
| The section to link to (also works with {{param|2}}). | |||
| style="padding:.2em .5em" | {{CodeBlock|<nowiki>{{wiki|Half-Life 2|section=Gameplay}}</nowiki>}} | |||
| style="padding:.2em .5em" | {{Capsule| {{wiki|Half-Life 2|section=Gameplay}} }} | |||
|- | |- | ||
| {{ | | style="text-align:center" | {{Code| {{param|icon}} <br>{{param|text}} }} | ||
| Hide/shows the icon.<br>Values: {{code|show}} (default), {{code|hide}} | |||
| style="padding:.2em .5em" | {{CodeBlock|<nowiki>{{wiki|icon=hide}}</nowiki><br><nowiki>{{wiki|text=hide}}</nowiki>}} | |||
| style="padding:.2em .5em" | {{Capsule| {{wiki|icon=hide}}<br>{{wiki|text=hide}} }} | |||
|- | |- | ||
|} | |} | ||
<includeonly>{{ | == See also == | ||
{{External link templates}} | |||
<includeonly>{{Sandbox other|| | |||
<!-- Categories below this line, please --> | <!-- Categories below this line, please --> | ||
[[Category:Formatting templates]] | [[Category:Formatting templates]] | ||
}}</includeonly> | }}</includeonly> |
Latest revision as of 16:55, 16 August 2024

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.
Description & 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
[[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.
Parameters
Parameter | Description | Example | Preview |
---|---|---|---|
No Parameters | Creates a link to Wikipedia Home page with language selection. | ||
{{{1}}} | Full name of the article on Wikipedia. | ||
{{{2}}} | Alternative name of the link. | ||
{{{section}}} | The section to link to (also works with {{{2}}}). | ||
{{{icon}}} {{{text}}} |
Hide/shows the icon. Values: show (default), hide |
See also
Template | Preview |
---|---|
{{wikipedia}} {{wiki}} {{w}} |
![]() |
{{cow}} | ![]() |
{{l4dwiki}} | ![]() |
{{pcgw}} | ![]() |
{{portalwiki}} | ![]() |
{{sboxwiki}} | ![]() |
{{tfwiki}} | ![]() |
{{twhl}} | ![]() |
{{quakewiki}} | ![]() |
{{cswiki}} | ![]() |
Template | Preview |
---|---|
{{bluesky}} | ![]() |
{{discord}} | ![]() |
{{reddit}} | ![]() |
{{steam community}} | ![]() |
{{twitch}} | ![]() |
{{twitter}} {{x}} |
![]() |
{{youtube}} | ![]() |
Template | Preview |
---|---|
{{steam store}} | ![]() |
{{epic}} {{egs}} |
![]() |
{{gplay}} | ![]() |
{{gog}} | ![]() |
{{ms store}} (PC, ![]() |
![]() |
{{xbox store}} ( ![]() |
![]() |
{{nintendo store}} | ![]() |
Template | Preview |
---|---|
{{steam}} | Steam Protocol |
{{email}} {{e}} |
gaben@valvesoftware.com |
{{github}} | ![]() |
{{gamebanana}} | ![]() |
{{moddb}} | ![]() |
{{rtsl}} | ![]() |
{{protondb}} | ![]() |
{{steamdb}} {{sdb}} |
![]() |
{{gdrive}} {{gd}} |
![]() |
{{fragnet}} {{fn}} |
![]() |