Template:Link
Jump to navigation
Jump to search
This template creates a link to a page on some site, whose address is hardcoded in the MediaWiki software.
Usage
The template accepts two unnamed parameters:
- Name of the article, default value: Article.
- Prefix (code name of the site), one of the listed in the second table (see below), default value: wikipedia.
code | result | the link points to |
---|---|---|
{{link|foo|wikt}} |
foo | https://en.wiktionary.org/wiki/foo |
{{link|Foo|wikipedia}} |
Foo | https://en.wikipedia.org/wiki/Foo |
{{link|Foo}} |
Foo | https://en.wikipedia.org/wiki/Foo |
{{link}} |
Article | https://en.wikipedia.org/wiki/Article |
prefix | result | the link points to |
---|---|---|
acronym | Foo | https://www.acronymfinder.com/~/search/af.aspx?string=exact&Acronym=Foo |
advogato | Foo | http://www.advogato.org/Foo |
arxiv | Foo | https://www.arxiv.org/abs/Foo |
c2find | Foo | http://c2.com/cgi/wiki?FindPage&value=Foo |
cache | Foo | https://www.google.com/search?q=cache:Foo |
commons | Foo | https://commons.wikimedia.org/wiki/Foo |
dictionary | Foo | http://www.dict.org/bin/Dict?Database=*&Form=Dict1&Strategy=*&Query=Foo |
doi | Foo | https://dx.doi.org/Foo |
drumcorpswiki | Foo | http://www.drumcorpswiki.com/Foo |
dwjwiki | Foo | http://www.suberic.net/cgi-bin/dwj/wiki.cgi?Foo |
elibre | Foo | http://enciclopedia.us.es/index.php/Foo |
emacswiki | Foo | https://www.emacswiki.org/cgi-bin/wiki.pl?Foo |
foldoc | Foo | https://foldoc.org/?Foo |
foxwiki | Foo | https://fox.wikis.com/wc.dll?Wiki~Foo |
Foo | https://www.google.com/search?q=Foo | |
googlegroups | Foo | https://groups.google.com/groups?q=Foo |
hammondwiki | Foo | http://www.dairiki.org/HammondWiki/Foo |
hrwiki | Foo | http://www.hrwiki.org/wiki/Foo |
linuxwiki | Foo | http://linuxwiki.de/Foo |
lojban | Foo | https://mw.lojban.org/papri/Foo |
lqwiki | Foo | http://wiki.linuxquestions.org/wiki/Foo |
meatball | Foo | http://www.usemod.com/cgi-bin/mb.pl?Foo |
mw | Foo | https://www.mediawiki.org/wiki/Foo |
metawikimedia | Foo | https://meta.wikimedia.org/wiki/Foo |
mozillawiki | Foo | https://wiki.mozilla.org/Foo |
mediawikiwiki | Foo | https://www.mediawiki.org/wiki/Foo |
oeis | Foo | https://oeis.org/Foo |
pmid | Foo | https://www.ncbi.nlm.nih.gov/pubmed/Foo?dopt=Abstract |
pythoninfo | Foo | https://wiki.python.org/moin/Foo |
rfc | Foo | https://tools.ietf.org/html/rfcFoo |
s23wiki | Foo | http://s23.org/wiki/Foo |
senseislibrary | Foo | https://senseis.xmp.net/?Foo |
squeak | Foo | http://wiki.squeak.org/squeak/Foo |
theopedia | Foo | https://www.theopedia.com/Foo |
tmbw | Foo | http://www.tmbw.net/wiki/Foo |
tmnet | Foo | http://www.technomanifestos.net/?Foo |
twiki | Foo | http://twiki.org/cgi-bin/view/Foo |
uncyclopedia | Foo | https://en.uncyclopedia.co/wiki/Foo |
unreal | Foo | https://wiki.beyondunreal.com/Foo |
usemod | Foo | http://www.usemod.com/cgi-bin/wiki.pl?Foo |
wikia | Foo | http://www.wikia.com/wiki/Foo |
wikibooks | Foo | https://en.wikibooks.org/wiki/Foo |
wikidata | Foo | https://www.wikidata.org/wiki/Foo |
wikif1 | Foo | http://www.wikif1.org/Foo |
wikihow | Foo | https://www.wikihow.com/Foo |
wikimedia | Foo | https://wikimediafoundation.org/wiki/Foo |
wikinews | Foo | https://en.wikinews.org/wiki/Foo |
wikinfo | Foo | http://wikinfo.co/English/index.php/Foo |
wikipedia | Foo | https://en.wikipedia.org/wiki/Foo |
wikiquote | Foo | https://en.wikiquote.org/wiki/Foo |
wikisource | Foo | https://wikisource.org/wiki/Foo |
wikispecies | Foo | https://species.wikimedia.org/wiki/Foo |
wikiversity | Foo | https://en.wikiversity.org/wiki/Foo |
wikivoyage | Foo | https://en.wikivoyage.org/wiki/Foo |
wiktionary | Foo | https://en.wiktionary.org/wiki/Foo |
wikt | Foo | https://en.wiktionary.org/wiki/Foo |
Notes
- Do not try to use this template with second parameter but with an empty first one:
. It would not work!{{link||wikiquote}}
- If you want to display on the page another word then the one used in the link, just write a wiki-link without this template:
[[wikipedia:Foo|bar]]
(result: bar). - If you want to create a link to non-English Wikipedia (or another wiki of the Wikimedia Foundation having many language sections), add its language code before the first parameter or after the second one, with a colon.
- Examples:
code result comment {{link|de:Artikel}}
de:Artikel The language code is displayed on the page. {{link|Artikel|wikipedia:de}}
Artikel The language code is not displayed on the page.
- (The address https://en.wikipedia.org/wiki/de:Artikel redirects to https://de.wikipedia.org/wiki/Artikel.)
- The created link looks like an internal link. If you want the link to look as an external, just write an external link.
- Compare:
Do not edit this template if you do not understand its code!