Template:Wiki: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
m (Fixed, but the more informative tooltip doesnt seems to work anyway after this change.)
Line 3: Line 3:
<includeonly><onlyinclude>{{#if:{{{1|}}}
<includeonly><onlyinclude>{{#if:{{{1|}}}


| <span title="Go to Wikipedia page - {{{1}}}">[[File:Wikipedia icon small.png|16px|link=[[Wikipedia:{{{1}}}]]|alt=Wikipedia icon]] [[Wikipedia:{{{1}}}|{{{2|{{{1}}}}}}]]</span>
| [[File:Wikipedia icon small.png|16px|link=Wikipedia:{{{1}}}|alt=Wikipedia icon]] [[Wikipedia:{{{1}}}|{{{2|{{{1}}}}}}]]


| <code style="background-color:rgb(130 60 60 / 16%); border-radius:.3em; white-space:nowrap; color:rgb(255 100 100); padding:.15em .3em"><nowiki>{{Wiki}}</nowiki></code>
| <code style="background-color:rgb(130 60 60 / 16%); border-radius:.3em; white-space:nowrap; color:rgb(255 100 100); padding:.15em .3em"><nowiki>{{Wiki}}</nowiki></code>

Revision as of 11:11, 24 June 2023

Todo: Link to https://www.wikipedia.org/ if no parameters are given. This should display Wikipedia icon Wikipedia (but not link to the Wikipedia page on itself, of course).
English (en)Deutsch (de)Esperanto (eo)Español (es)Français (fr)Suomi (fi)Hrvatski (hr)Magyar (hu)Italiano (it)日本語 (ja)한국어 (ko)Nederlands (nl)Polski (pl)Português (pt)Português do Brasil (pt-br)Русский (ru)Slovenčina (sk)Svenska (sv)Türkçe (tr)Українська (uk)Tiếng Việt (vi)中文 (zh)中文(臺灣) (zh-tw)
Curly brackets white.pngTemplate Documentation [view] [edit]
Icon-translate.png Available doc translations
View
Page history

Description & Usage

Note.pngNote:The Wikipedia icon 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 Wikipedia icon 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.pngNote:{{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.
{{wiki}}
{{Wiki}}
{{{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}}
{{Wiki}}
{{Wiki}}

See also

Cross-wiki link templates
Template Preview
{{wikipedia}}
{{wiki}}
{{w}}
{{Wiki}}
{{cow}} Combine overwiki icon.png Combine OverWiki
{{l4dwiki}} Left 4 Dead Wiki Left 4 Dead Wiki
{{pcgw}} Pcgw icon.png PCGamingWiki
{{portalwiki}} Portalwiki icon.png Portal Wiki
{{sboxwiki}} S&box icon.png S&Box Wiki
{{tfwiki}} Tfwiki favicon.png Team Fortress Wiki
{{twhl}} Twhl hammer emote.png TWHL Wiki
{{quakewiki}} Quake1-16px.png Quake Wiki
{{cswiki}} Counter-Strike Wiki Counter-Strike Wiki
Social media link templates
Template Preview
{{bluesky}} Bluesky Bluesky
{{discord}} Discord logo Discord
{{reddit}} Reddit logo Reddit
{{steam community}} Steam Community Steam Community
{{twitch}} Twitch logo Twitch
{{twitter}}
{{x}}
Logo for X X (Twitter)
{{youtube}} YouTube logo YouTube
Storefront link templates
Template Preview
{{steam store}} Steam Store Steam Store
{{epic}}
{{egs}}
Epic Games Store Epic Games Store
{{gplay}} Google Play Google Play
{{gog}} GOG.com GOG.com
{{ms store}}
(PC, Xbox One Xbox One, Xbox Series X/S)
Microsoft Store Microsoft Store
{{xbox store}}
(Xbox 360 Xbox 360)
Xbox Marketplace Xbox Marketplace
{{nintendo store}} Nintendo Store Nintendo Store
Other link templates
Template Preview
{{steam}} Steam Protocol
{{email}}
{{e}}
gaben@valvesoftware.com
{{github}} GitHub GitHub
{{gamebanana}} ModDB GameBanana
{{moddb}} ModDB ModDB
{{rtsl}} rtsl RTSL
{{protondb}} ProtonDB ProtonDB
{{steamdb}}
{{sdb}}
SteamDB SteamDB
{{gdrive}}
{{gd}}
Google Drive Google Drive
{{fragnet}}
{{fn}}
Frag-Net Frag-Net

ViewDiscussEdit templatePurge