Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
MainPage
Community portal
Recent changes
Random page
Help
Special pages
Donate
Search
Search
English
Appearance
Log in
Request account
Personal tools
Log in
Request account
Export translations
Translate
English
Language statistics
Message group statistics
Export
Tools
Tools
move to sidebar
hide
Actions
Language statistics
Message group statistics
Export
General
Printable version
In other projects
Appearance
move to sidebar
hide
Settings
Group
Category:Maintenance
Help:Blocking users
Help:Bots
Help:Categories
Help:Contents
Help:Deletion and undeletion
Help:Diff
Help:Editing pages
Help:ExpandTemplates
Help:Extension:ParserFunctions
Help:External searches
Help:Formatting
Help:Images
Help:Links
Help:Magic words
Help:Managing files
Help:Moving a page
Help:Namespaces
Help:Navigation
Help:Parser functions in templates
Help:Patrolled edits
Help:Preferences
Help:Protected pages
Help:Random page
Help:Random root page
Help:Range blocks
Help:Recent changes
Help:Redirects
Help:Skins
Help:Special pages
Help:Starting a new page
Help:Substitution
Help:System message
Help:Tables
Help:Talk pages
Help:TemplateData
Help:Templates
Help:TemplateStyles
Help:Tracking changes
Help:Undelete
Help:User contributions
Help:Watchlist
Help:What links here
Manual:Expr parser function syntax
Manual:Extending wiki markup
Manual:Hooks
Manual:Magic words
Manual:Messages API
Manual:Parser functions
Module:Arguments/doc
Module:Int/doc
Module:Message box/configuration/doc
Module:Message box/doc
Module:Template translation/doc
Module:Transcluder/doc
Module:Version/doc
Module:Yesno/doc
Parser extension tags
Parser function extensions
Project:Language policy
Template:Admin tip
Template:Advanced user manual
Template:Anontools
Template:ApiEx
Template:Autocat
Template:Auxiliary template common notice
Template:Branching
Template:Bugfix
Template:Bugzilla
Template:Button
Template:Candidate
Template:Caution
Template:Clarify
Template:Collapse top
Template:Component
Template:Deprecated-inline
Template:Description missing
Template:Distinguish
Template:Documentation
Template:Documentation subpage
Template:Done
Template:EmptyCatGood
Template:Escape template list
Template:Excerpt
Template:Extension development
Template:Fixtext
Template:For
Template:Further
Template:Help
Template:High-risk
Template:Historical
Template:I18n navigation
Template:In progress
Template:Intricate template
Template:Introduced-inline
Template:IRC
Template:Localized link
Template:Localized link/messagedoc
Template:Magic words
Template:Main
Template:MainPage
Template:Markup
Template:Markup/row
Template:Mbox templates
Template:Module rating
Template:Move
Template:MW version
Template:MW version/layout
Template:N/a
Template:Navbar
Template:Newarticletext
Template:No
Template:Not done
Template:Note
Template:Optional
Template:Parser functions nav
Template:Partially done
Template:PD Help Page
Template:Phabricator
Template:Ptag
Template:Purge
Template:Recentchangestext
Template:Removed-inline
Template:Required
Template:Rev
Template:Security
Template:See
Template:See also
Template:Sp-contributions-footer
Template:Sp-contributions-footer-anon
Template:Special page
Template:Template shortcut
Template:Template test cases notice
Template:TemplateData header
Template:Thankyou
Template:To do
Template:Tracked
Template:Translatable
Template:Translatable template name
Template:Unusedtemplatestext
Template:Update
Template:Used in system
Template:Watchlists navigation
Template:Why
Template:WikiNonStop News
Template:Yes
TemplateData
Language
aa - Afar
aae - Arbëresh
ab - Abkhazian
abr - Abron
abs - Ambonese Malay
ace - Acehnese
acf - Saint Lucian Creole
acm - Iraqi Arabic
ady - Adyghe
ady-cyrl - Adyghe (Cyrillic script)
aeb - Tunisian Arabic
aeb-arab - Tunisian Arabic (Arabic script)
aeb-latn - Tunisian Arabic (Latin script)
af - Afrikaans
aig - Antiguan and Barbudan Creole English
aln - Gheg Albanian
alt - Southern Altai
am - Amharic
ami - Amis
an - Aragonese
ang - Old English
ann - Obolo
anp - Angika
apc - Levantine Arabic
ar - Arabic
arc - Aramaic
arn - Mapuche
arq - Algerian Arabic
ary - Moroccan Arabic
arz - Egyptian Arabic
as - Assamese
ase - American Sign Language
ast - Asturian
atj - Atikamekw
av - Avaric
avk - Kotava
awa - Awadhi
ay - Aymara
az - Azerbaijani
azb - South Azerbaijani
ba - Bashkir
ban - Balinese
ban-bali - Balinese (Balinese script)
bar - Bavarian
bbc - Batak Toba
bbc-latn - Batak Toba (Latin script)
bcc - Southern Balochi
bci - Baoulé
bcl - Central Bikol
bdr - West Coast Bajau
be - Belarusian
be-tarask - Belarusian (Taraškievica orthography)
bew - Betawi
bg - Bulgarian
bgc - Haryanvi
bgn - Western Balochi
bh - Bhojpuri
bho - Bhojpuri
bi - Bislama
bjn - Banjar
blk - Pa'O
bm - Bambara
bn - Bangla
bo - Tibetan
bpy - Bishnupriya
bqi - Bakhtiari
br - Breton
brh - Brahui
bs - Bosnian
btm - Batak Mandailing
bto - Rinconada Bikol
bug - Buginese
bug-bugi - Buginese (Buginese script)
bxr - Russia Buriat
ca - Catalan
cbk-zam - Chavacano
ccp - Chakma
cdo - Mindong
cdo-hant - Mindong (Traditional Han script)
cdo-latn - Mindong (Latin script)
ce - Chechen
ceb - Cebuano
ch - Chamorro
chn - Chinook Jargon
cho - Choctaw
chr - Cherokee
chy - Cheyenne
ckb - Central Kurdish
co - Corsican
cop - Coptic
cps - Capiznon
cpx - Puxian
cpx-hans - Puxian (Simplified Han script)
cpx-hant - Puxian (Traditional Han script)
cpx-latn - Puxian (Latin script)
cr - Cree
crh - Crimean Tatar
crh-cyrl - Crimean Tatar (Cyrillic script)
crh-latn - Crimean Tatar (Latin script)
crh-ro - Dobrujan Tatar
cs - Czech
csb - Kashubian
cu - Church Slavic
cv - Chuvash
cy - Welsh
da - Danish
dag - Dagbani
de - German
de-at - Austrian German
de-ch - Swiss High German
de-formal - German (formal address)
dga - Southern Dagaare
din - Dinka
diq - Dimli
dlg - Dolgan
dsb - Lower Sorbian
dtp - Central Dusun
dty - Doteli
dua - Duala
dv - Divehi
dz - Dzongkha
ee - Ewe
efi - Efik
egl - Emilian
el - Greek
eml - Emiliano-Romagnolo
en - English
en-ca - Canadian English
en-gb - British English
eo - Esperanto
es - Spanish
es-419 - Latin American Spanish
es-formal - Spanish (formal address)
et - Estonian
eu - Basque
ext - Extremaduran
fa - Persian
fat - Fanti
ff - Fula
fi - Finnish
fit - Tornedalen Finnish
fj - Fijian
fo - Faroese
fon - Fon
fr - French
frc - Cajun French
frp - Arpitan
frr - Northern Frisian
fur - Friulian
fvr - Fur
fy - Western Frisian
ga - Irish
gaa - Ga
gag - Gagauz
gan - Gan
gan-hans - Gan (Simplified Han script)
gan-hant - Gan (Traditional Han script)
gcf - Guadeloupean Creole
gcr - Guianan Creole
gd - Scottish Gaelic
gl - Galician
gld - Nanai
glk - Gilaki
gn - Guarani
gom - Goan Konkani
gom-deva - Goan Konkani (Devanagari script)
gom-latn - Goan Konkani (Latin script)
gor - Gorontalo
got - Gothic
gpe - Ghanaian Pidgin
grc - Ancient Greek
gsw - Alemannic
gu - Gujarati
guc - Wayuu
gur - Frafra
guw - Gun
gv - Manx
ha - Hausa
hak - Hakka Chinese
hak-hans - Hakka (Simplified Han script)
hak-hant - Hakka (Traditional Han script)
hak-latn - Hakka (Latin script)
haw - Hawaiian
he - Hebrew
hi - Hindi
hif - Fiji Hindi
hif-latn - Fiji Hindi (Latin script)
hil - Hiligaynon
hke - Hunde
hno - Northern Hindko
ho - Hiri Motu
hoc-latn - Ho (Latin script)
hr - Croatian
hrx - Hunsrik
hsb - Upper Sorbian
hsn - Xiang
ht - Haitian Creole
hu - Hungarian
hu-formal - Hungarian (formal address)
hy - Armenian
hyw - Western Armenian
hz - Herero
ia - Interlingua
iba - Iban
ibb - Ibibio
id - Indonesian
ie - Interlingue
ig - Igbo
igl - Igala
ii - Sichuan Yi
ik - Inupiaq
ike-cans - Eastern Canadian (Aboriginal syllabics)
ike-latn - Eastern Canadian (Latin script)
ilo - Iloko
inh - Ingush
io - Ido
is - Icelandic
isv-cyrl - Interslavic (Cyrillic script)
isv-latn - Interslavic (Latin script)
it - Italian
iu - Inuktitut
ja - Japanese
jam - Jamaican Creole English
jbo - Lojban
jut - Jutish
jv - Javanese
ka - Georgian
kaa - Kara-Kalpak
kab - Kabyle
kai - Karekare
kaj - Jju
kbd - Kabardian
kbd-cyrl - Kabardian (Cyrillic script)
kbp - Kabiye
kcg - Tyap
kea - Kabuverdianu
kg - Kongo
kge - Komering
khw - Khowar
ki - Kikuyu
kiu - Kirmanjki
kj - Kuanyama
kjh - Khakas
kjp - Eastern Pwo
kk - Kazakh
kk-arab - Kazakh (Arabic script)
kk-cn - Kazakh (China)
kk-cyrl - Kazakh (Cyrillic script)
kk-kz - Kazakh (Kazakhstan)
kk-latn - Kazakh (Latin script)
kk-tr - Kazakh (Turkey)
kl - Kalaallisut
km - Khmer
kn - Kannada
knc - Central Kanuri
ko - Korean
ko-kp - Korean (North Korea)
koi - Komi-Permyak
kr - Kanuri
krc - Karachay-Balkar
kri - Krio
krj - Kinaray-a
krl - Karelian
ks - Kashmiri
ks-arab - Kashmiri (Arabic script)
ks-deva - Kashmiri (Devanagari script)
ksh - Colognian
ksw - S'gaw Karen
ku - Kurdish
ku-arab - Kurdish (Arabic script)
ku-latn - Kurdish (Latin script)
kum - Kumyk
kus - Kusaal
kv - Komi
kw - Cornish
ky - Kyrgyz
la - Latin
lad - Ladino
lb - Luxembourgish
lbe - Lak
lez - Lezghian
lfn - Lingua Franca Nova
lg - Ganda
li - Limburgish
lij - Ligurian
liv - Livonian
ljp - Lampung Api
lki - Laki
lld - Ladin
lmo - Lombard
ln - Lingala
lo - Lao
loz - Lozi
lrc - Northern Luri
lt - Lithuanian
ltg - Latgalian
lua - Luba-Lulua
lus - Mizo
luz - Southern Luri
lv - Latvian
lzh - Literary Chinese
lzz - Laz
mad - Madurese
mag - Magahi
mai - Maithili
map-bms - Banyumasan
mdf - Moksha
mg - Malagasy
mh - Marshallese
mhr - Eastern Mari
mi - Māori
min - Minangkabau
mk - Macedonian
ml - Malayalam
mn - Mongolian
mnc - Manchu
mnc-latn - Manchu (Latin script)
mnc-mong - Manchu (Mongolian script)
mni - Manipuri
mnw - Mon
mo - Moldovan
mos - Mossi
mr - Marathi
mrh - Mara
mrj - Western Mari
ms - Malay
ms-arab - Malay (Jawi script)
mt - Maltese
mui - Musi
mus - Muscogee
mwl - Mirandese
my - Burmese
myv - Erzya
mzn - Mazanderani
na - Nauru
nah - Nahuatl
nan - Minnan
nan-hant - Minnan (Traditional Han script)
nan-latn-pehoeji - Minnan (Pe̍h-ōe-jī)
nan-latn-tailo - Minnan (Tâi-lô)
nap - Neapolitan
nb - Norwegian Bokmål
nds - Low German
nds-nl - Low Saxon
ne - Nepali
new - Newari
ng - Ndonga
nia - Nias
nit - Southeastern Kolami
niu - Niuean
nl - Dutch
nl-informal - Dutch (informal address)
nmz - Nawdm
nn - Norwegian Nynorsk
no - Norwegian
nod - Northern Thai
nog - Nogai
nov - Novial
nqo - N’Ko
nr - South Ndebele
nrm - Norman
nso - Northern Sotho
nup - Nupe
nv - Navajo
ny - Nyanja
nyn - Nyankole
nyo - Nyoro
nys - Nyungar
oc - Occitan
ojb - Northwestern Ojibwa
olo - Livvi-Karelian
om - Oromo
or - Odia
os - Ossetic
pa - Punjabi
pag - Pangasinan
pam - Pampanga
pap - Papiamento
pap-aw - Papiamento (Aruba)
pcd - Picard
pcm - Nigerian Pidgin
pdc - Pennsylvania German
pdt - Plautdietsch
pfl - Palatine German
pi - Pali
pih - Pitcairn-Norfolk
pl - Polish
pms - Piedmontese
pnb - Western Punjabi
pnt - Pontic
prg - Prussian
ps - Pashto
pt - Portuguese
pt-br - Brazilian Portuguese
pwn - Paiwan
qqq - Message documentation
qu - Quechua
qug - Chimborazo Highland Quichua
rgn - Romagnol
rif - Riffian
rki - Arakanese
rm - Romansh
rmc - Carpathian Romani
rmy - Vlax Romani
rn - Rundi
ro - Romanian
roa-tara - Tarantino
rsk - Pannonian Rusyn
ru - Russian
rue - Rusyn
rup - Aromanian
ruq - Megleno-Romanian
ruq-cyrl - Megleno-Romanian (Cyrillic script)
ruq-latn - Megleno-Romanian (Latin script)
rut - Rutul
rw - Kinyarwanda
ryu - Okinawan
sa - Sanskrit
sah - Yakut
sas - Sasak
sat - Santali
sc - Sardinian
scn - Sicilian
sco - Scots
sd - Sindhi
sdc - Sassarese Sardinian
sdh - Southern Kurdish
se - Northern Sami
se-fi - Northern Sami (Finland)
se-no - Northern Sami (Norway)
se-se - Northern Sami (Sweden)
sei - Seri
ses - Koyraboro Senni
sg - Sango
sgs - Samogitian
sh - Serbo-Croatian
sh-cyrl - Serbo-Croatian (Cyrillic script)
sh-latn - Serbo-Croatian (Latin script)
shi - Tachelhit
shi-latn - Tachelhit (Latin script)
shi-tfng - Tachelhit (Tifinagh script)
shn - Shan
shy - Shawiya
shy-latn - Shawiya (Latin script)
si - Sinhala
simple - Simple English
sjd - Kildin Sami
sje - Pite Sami
sk - Slovak
skr - Saraiki
skr-arab - Saraiki (Arabic script)
sl - Slovenian
sli - Lower Silesian
sm - Samoan
sma - Southern Sami
smn - Inari Sami
sms - Skolt Sami
sn - Shona
so - Somali
sq - Albanian
sr - Serbian
sr-ec - Serbian (Cyrillic script)
sr-el - Serbian (Latin script)
srn - Sranan Tongo
sro - Campidanese Sardinian
ss - Swati
st - Southern Sotho
stq - Saterland Frisian
sty - Siberian Tatar
su - Sundanese
sv - Swedish
sw - Swahili
syl - Sylheti
szl - Silesian
szy - Sakizaya
ta - Tamil
tay - Atayal
tcy - Tulu
tdd - Tai Nuea
te - Telugu
tet - Tetum
tg - Tajik
tg-cyrl - Tajik (Cyrillic script)
tg-latn - Tajik (Latin script)
th - Thai
ti - Tigrinya
tig - Tigre
tk - Turkmen
tl - Tagalog
tly - Talysh
tly-cyrl - Talysh (Cyrillic script)
tn - Tswana
to - Tongan
tok - Toki Pona
tpi - Tok Pisin
tr - Turkish
tru - Turoyo
trv - Taroko
ts - Tsonga
tt - Tatar
tt-cyrl - Tatar (Cyrillic script)
tt-latn - Tatar (Latin script)
ttj - Tooro
tum - Tumbuka
tw - Twi
ty - Tahitian
tyv - Tuvinian
tzm - Central Atlas Tamazight
udm - Udmurt
ug - Uyghur
ug-arab - Uyghur (Arabic script)
ug-latn - Uyghur (Latin script)
uk - Ukrainian
ur - Urdu
uz - Uzbek
uz-cyrl - Uzbek (Cyrillic script)
uz-latn - Uzbek (Latin script)
ve - Venda
vec - Venetian
vep - Veps
vi - Vietnamese
vls - West Flemish
vmf - Main-Franconian
vmw - Makhuwa
vo - Volapük
vot - Votic
vro - Võro
wa - Walloon
wal - Wolaytta
war - Waray
wls - Wallisian
wlx - Wali
wo - Wolof
wuu - Wu
wuu-hans - Wu (Simplified Han script)
wuu-hant - Wu (Traditional Han script)
xal - Kalmyk
xh - Xhosa
xmf - Mingrelian
xsy - Saisiyat
yi - Yiddish
yo - Yoruba
yrl - Nheengatu
yua - Yucatec Maya
yue - Cantonese
yue-hans - Cantonese (Simplified Han script)
yue-hant - Cantonese (Traditional Han script)
za - Zhuang
zea - Zeelandic
zgh - Standard Moroccan Tamazight
zgh-latn - Standard Moroccan Tamazight (Latin script)
zh - Chinese
zh-cn - Chinese (China)
zh-hans - Simplified Chinese
zh-hant - Traditional Chinese
zh-hk - Chinese (Hong Kong)
zh-mo - Chinese (Macau)
zh-my - Chinese (Malaysia)
zh-sg - Chinese (Singapore)
zh-tw - Chinese (Taiwan)
zu - Zulu
Format
Export for off-line translation
Export in native format
Export in CSV format
Fetch
<languages/> {{PD Help Page}} <div lang="en" dir="ltr" class="mw-content-ltr"> Links are used to reference pages within MediaWiki, other wikis, or external websites. </div> <div lang="en" dir="ltr" class="mw-content-ltr"> There are five types of hypertext links in MediaWiki: </div> # <span lang="en" dir="ltr" class="mw-content-ltr">'''[[#Internal links|Internal links]]''' to other pages in the same wiki (commonly called "wikilinks")</span> # <span lang="en" dir="ltr" class="mw-content-ltr">'''[[#External links|External links]]''' to pages at other websites</span> # <span lang="en" dir="ltr" class="mw-content-ltr">'''[[#External links to internal pages|External links to internal pages]]''' in the same wiki</span> # <span lang="en" dir="ltr" class="mw-content-ltr">'''[[#Interwiki links|Interwiki links]]''' to other websites using special prefixes registered in advance</span> # <span lang="en" dir="ltr" class="mw-content-ltr">'''[[#Interlanguage links|Interlanguage links]]''' to other wikis registered as different language versions of the current wiki</span> <div lang="en" dir="ltr" class="mw-content-ltr"> Please note that this list does not include [[Special:MyLanguage/Help:Categories|category links]] and [[Special:MyLanguage/Help:Images|file links]], which are used to place pages into categories and display images or other media files, respectively. </div> __TOC__ {{anchor|Wikilinks}} <div lang="en" dir="ltr" class="mw-content-ltr"> == Internal links == </div> <span lang="en" dir="ltr" class="mw-content-ltr">To [[Special:MyLanguage/Help:Editing pages|create]] a so-called internal link to a page on the same wiki (a "wikilink"), use double square brackets wiki markup, {{tmpl|0=<code><nowiki>[[</nowiki>$1<nowiki>]]</nowiki></code>|like this}}.</span> <span lang="en" dir="ltr" class="mw-content-ltr">When you preview or save your changes, you will see a link that can be followed to the target page.</span> <span lang="en" dir="ltr" class="mw-content-ltr">If the page exists, the link is displayed in blue (like the word "create" in the first sentence of this paragraph); if the page does not exist, the link appears red (so the {{tmpl|0=<code><nowiki>[[</nowiki>$1<nowiki>]]</nowiki></code>|like this}} link is actually rendered {{tmpl|0=[[$1]]|like this}}).</span> <span lang="en" dir="ltr" class="mw-content-ltr">Note that the colors could be different if the color scheme of the wiki has been changed from the default.</span> <span lang="en" dir="ltr" class="mw-content-ltr">Following such a "redlink" to a missing page (whether or not it is actually red) will usually enable the user to create the page.</span> <div lang="en" dir="ltr" class="mw-content-ltr"> To markup any arbitrary string of text (not necessarily a page title) as a link, use a "vertical bar" or "pipe" character, like this: {{tmpl|0=<code><nowiki>[[</nowiki>Help:Categories{{!}}$1<nowiki>]]</nowiki></code>|category links}} results in the link {{tmpl|0=[[Help:Categories|$1]]|category links}}. </div> <span lang="en" dir="ltr" class="mw-content-ltr">The first letter of the link target is usually not case-sensitive (unless the wiki is configured otherwise), meaning links can be capitalized or not (so [[How to contribute]] and [[how to contribute]] are equivalent).</span> <span lang="en" dir="ltr" class="mw-content-ltr">However, the case of every ''subsequent'' letter must match the target page exactly (so [[How to contribute]] and [[How To Contribute]] are ''not'' equivalent).</span> <span lang="en" dir="ltr" class="mw-content-ltr">Spaces in the page title may be represented as underscores (so [[How to contribute]] and [[How_to_contribute]] are again equivalent), but using underscores in links will make them visible in the page text (but this can be prevented by using a "pipe").</span> <span lang="en" dir="ltr" class="mw-content-ltr">If the page title you are linking to is that of the page you are editing, the result is not a hyperlink at all but simply bold text (for example, on this page the markup <code><nowiki>[[</nowiki>{{FULLPAGENAME}}]]</code> gives the result [[{{FULLPAGENAME}}]]).</span> <span lang="en" dir="ltr" class="mw-content-ltr">If you're trying to create a wikilink to the current page, you probably want to link to a specific ''section'' or to an ''anchor'' within the page; see the examples below.</span> <div lang="en" dir="ltr" class="mw-content-ltr"> MediaWiki uses the {{ll|Manual:pagelinks table|pagelinks}} table to keep track of internal wikilinks. </div> <span lang="en" dir="ltr" class="mw-content-ltr">Unlike external links, internal links do not support the use of URL query parameters.</span> <span lang="en" dir="ltr" class="mw-content-ltr">The addition of HTML attributes is not supported by either internal or external links.</span> {| border="1" class="wikitable" ! <span lang="en" dir="ltr" class="mw-content-ltr">Name</span>/<span lang="en" dir="ltr" class="mw-content-ltr">Description</span> ! <span lang="en" dir="ltr" class="mw-content-ltr">Syntax</span> ! <span lang="en" dir="ltr" class="mw-content-ltr">Result</span> |- | <span lang="en" dir="ltr" class="mw-content-ltr">Internal link</span> |<syntaxhighlight lang="mediawiki"> [[Main Page]] [[Help:Contents]] [[Extension:DynamicPageList (Wikimedia)]] </syntaxhighlight> | [[Main Page]] [[Help:Contents]] [[Extension:DynamicPageList (Wikimedia)]] |- | <span lang="en" dir="ltr" class="mw-content-ltr">Piped link</span> | <syntaxhighlight lang="mediawiki">[[Help:Editing pages|editing help]]</syntaxhighlight> <span lang="en" dir="ltr" class="mw-content-ltr">Links to a section/anchor within the target page.</span> <syntaxhighlight lang="mediawiki">[[Help:Editing pages#Preview|previewing]]</syntaxhighlight> <span lang="en" dir="ltr" class="mw-content-ltr">Piped link to an anchor on the same page</span> <syntaxhighlight lang="mediawiki">[[#See also|different text]]</syntaxhighlight> <span lang="en" dir="ltr" class="mw-content-ltr">See also [[Special:MyLanguage/Help:Links#Piped links|Help:Piped link]].</span> | [[Help:Editing pages|editing help]] [[Help:Editing pages#Preview|previewing]] [[#See also|different text]] |- | <span lang="en" dir="ltr" class="mw-content-ltr">[[w:Help:Pipe trick|Pipe trick]]</span> |<syntaxhighlight lang="mediawiki"> [[Manual:Extensions|]] [[User:John Doe|]] [[Extension:DynamicPageList (Wikimedia)|]] [[Extension:DynamicPageList (disambiguation)|]] </syntaxhighlight> <span lang="en" dir="ltr" class="mw-content-ltr">The transformation done by the pipe trick can result in the same text for different link targets, as seen in the DynamicPageList examples.</span> | {{ll|Manual:Extensions|Extensions}} [[User:John Doe|John Doe]] [[Extension:DynamicPageList (Wikimedia)|DynamicPageList]] [[Extension:DynamicPageList (disambiguation)|DynamicPageList]] |- |<span id="linktrail"></span><span lang="en" dir="ltr" class="mw-content-ltr">Word-ending links</span> |<syntaxhighlight lang="mediawiki"> [[Help]]s [[Help]]ing [[Help]]ers [[Help]]almostanylettersyoulikehere [[Help]]BUTnotalways </syntaxhighlight> <span lang="en" dir="ltr" class="mw-content-ltr">Follows so-called "linktrail rules" [[Special:MyLanguage/Localisation|localised]] per [[Special:MyLanguage/MessagesXx.php|each language]].</span> | [[Help]]s [[Help]]ing [[Help]]ers [[Help]]almostanylettersyoulikehere [[Help]]BUTnotalways |- | <span lang="en" dir="ltr" class="mw-content-ltr">Avoiding word-ending links</span> |<syntaxhighlight lang="mediawiki"> [[Help]]<nowiki />ful advice [[wikipedia:GNU General Public License|GPL]]<nowiki />v3 </syntaxhighlight> | [[Help]]<nowiki />ful advice [[wikipedia:GNU General Public License|GPL]]<nowiki />v3 |- | <span lang="en" dir="ltr" class="mw-content-ltr">Link to an anchor on the same page</span> |<syntaxhighlight lang="mediawiki">[[#See also]]</syntaxhighlight> <span lang="en" dir="ltr" class="mw-content-ltr">Anchors are provided automatically on [[Special:MyLanguage/Help:Formatting|section headings]] and to the [[#top|top]] (<code><nowiki>[[#top]]</nowiki></code>) of the page.</span> |[[#See also]] |- | <span lang="en" dir="ltr" class="mw-content-ltr">Setting an anchor for incoming links</span> |<syntaxhighlight lang=html> <div id="Unique anchor name 1">optional text</div> <span id="Unique anchor name 2">optional text</span> </syntaxhighlight> <span lang="en" dir="ltr" class="mw-content-ltr">Rendered [[w:HTML element#Document body elements|block-level and inline]], respectively.</span> <span lang="en" dir="ltr" class="mw-content-ltr">Doing this would allow for <code><nowiki>[[#Unique anchor name 1]]</nowiki></code> on the same page or <code><nowiki>[[</nowiki>{{FULLPAGENAME}}#Unique anchor name 1]]</code> on a different page.</span> <span lang="en" dir="ltr" class="mw-content-ltr">Omit the "optional text" for an invisible anchor.</span> <div lang="en" dir="ltr" class="mw-content-ltr"> Setting an anchor in a section heading </div> <syntaxhighlight lang=html> ==<span id="Alternate Section Title"></span>Section heading== </syntaxhighlight> <span lang="en" dir="ltr" class="mw-content-ltr">Note the placement.</span> <span lang="en" dir="ltr" class="mw-content-ltr">This must be a "span" tag, not a "div".</span> <span lang="en" dir="ltr" class="mw-content-ltr">(Such anchors allow sections to be retitled without breaking incoming links.)</span> | <div id="Unique anchor name 1"><span lang="en" dir="ltr" class="mw-content-ltr">optional text</span></div> <span id="Unique anchor name 2"><span lang="en" dir="ltr" class="mw-content-ltr">optional text</span></span> <div style="color: #000000; background: none; overflow: hidden; page-break-after: avoid; font-size: 1.5em; font-family: Georgia,Times,serif; margin-top: 1em; margin-bottom: 0.25em; line-height: 1.3; padding: 0; border-bottom: 1px solid #AAAAAA;"><span id="Alternate Section Title"></span>Section heading</div> |- | <span lang="en" dir="ltr" class="mw-content-ltr">Link to an anchor at another page</span> |<syntaxhighlight lang=mediawiki>[[Help:Images#Supported media types for images]]</syntaxhighlight> |[[Help:Images#Supported media types for images]] |- | <span lang="en" dir="ltr" class="mw-content-ltr">Link to the current page's talk page</span> |<syntaxhighlight lang=mediawiki>[[{{TALKPAGENAME}}|Discussion]]</syntaxhighlight> <span lang="en" dir="ltr" class="mw-content-ltr">See also [[Special:MyLanguage/Help:Magic_words#Page_names|Help:Magic words#Page names]]</span> |[[{{TALKPAGENAME}}|Discussion]] |- |{{anchor|Subpage_feature}}<span lang="en" dir="ltr" class="mw-content-ltr">Link to a subpage</span> |<syntaxhighlight lang=mediawiki>[[/example]]</syntaxhighlight> <span lang="en" dir="ltr" class="mw-content-ltr">Shortcut for <syntaxhighlight lang="mediawiki" inline>[[Help:Links/example|/example]]</syntaxhighlight>.</span> <span lang="en" dir="ltr" class="mw-content-ltr">See also {{ll|Help:Subpages}}.</span> |[[Help:Links/example|/example]] |- | <span lang="en" dir="ltr" class="mw-content-ltr">Link to a subpage without the leading slash</span> |<syntaxhighlight lang=mediawiki>[[/example/]]</syntaxhighlight> <span lang="en" dir="ltr" class="mw-content-ltr">Shortcut for <syntaxhighlight lang="mediawiki" inline>[[Help:Links/example|example]]</syntaxhighlight>.</span> |[[Help:Links/example|example]] |- | <span lang="en" dir="ltr" class="mw-content-ltr">Link to a subpage of parent page for current page.</span> <span lang="en" dir="ltr" class="mw-content-ltr">Can only be used on subpages.</span> |<syntaxhighlight lang=mediawiki>[[../example2]]</syntaxhighlight> <span lang="en" dir="ltr" class="mw-content-ltr">Shortcut for <syntaxhighlight lang="mediawiki" inline>[[Help:Links/example2|example2]]</syntaxhighlight> if you post the link on <syntaxhighlight lang="mediawiki" inline>[[Help:Links/example|example]]</syntaxhighlight> page.</span> |[[Help:Links/example2|example2]] |- | <span lang="en" dir="ltr" class="mw-content-ltr">Visible link to a category page</span> |<syntaxhighlight lang=mediawiki>[[:Category:Help]]</syntaxhighlight> <span lang="en" dir="ltr" class="mw-content-ltr">Without the leading colon the link would not be visible and the page would instead be placed into the category; this is a very common mistake.</span> <span lang="en" dir="ltr" class="mw-content-ltr">See also {{ll|Help:Categories}}.</span> |[[:Category:Help]] |- | <span lang="en" dir="ltr" class="mw-content-ltr">Visible link to an image or media file</span> |id="file-links"|<syntaxhighlight lang=mediawiki> [[:File:Example.jpg]] [[:File:Example.jpg|file label]] [[Media:Example.jpg]] [[Media:Example.jpg|file label]] </syntaxhighlight> <span lang="en" dir="ltr" class="mw-content-ltr">Without the leading colon on the "File:" examples, the images would actually be displayed.</span> <span lang="en" dir="ltr" class="mw-content-ltr">See also {{ll|Help:Images}}.</span> <div lang="en" dir="ltr" class="mw-content-ltr"> The <code>Media:</code> prefix is used to link directly to the uploaded file, rather than the file-information page. </div> | [[:File:Example.jpg]] [[:File:Example.jpg|file label]] [[Media:Example.jpg]] [[Media:Example.jpg|file label]] |- | <span lang="en" dir="ltr" class="mw-content-ltr">Link to a page specific to each reader (user page, etc.)</span> |<syntaxhighlight lang=mediawiki> [[Special:MyPage]] [[Special:MyTalk]] [[Special:Preferences]] </syntaxhighlight> | [[Special:MyPage]] [[Special:MyTalk]] [[Special:Preferences]] |- | <span lang="en" dir="ltr" class="mw-content-ltr">Internal link to a specific revision</span> |<syntaxhighlight lang=mediawiki>[[Special:PermanentLink/2393992]]</syntaxhighlight> <span lang="en" dir="ltr" class="mw-content-ltr">Revision numbers can be found in each page's [[Special:MyLanguage/Help:History|edit history]].</span> <span lang="en" dir="ltr" class="mw-content-ltr">(It is very common to see links to specific revisions implemented as external links because it's easy to cut-and-paste an entire URL to form an external link.)</span> |[[Special:PermanentLink/2393992]] |- | <span lang="en" dir="ltr" class="mw-content-ltr">Internal link to a "diff"</span> |<syntaxhighlight lang=mediawiki> [[Special:Diff/2393992]] [[Special:Diff/2390639/2393992]] </syntaxhighlight> <span lang="en" dir="ltr" class="mw-content-ltr">The default (in the first example above) is to show the changes from the previous revision.</span> <span lang="en" dir="ltr" class="mw-content-ltr">See also the comments in the previous item.</span> | [[Special:Diff/2393992]] [[Special:Diff/2390639/2393992]] |- | <span lang="en" dir="ltr" class="mw-content-ltr">Redirect</span> |<pre>#REDIRECT [[Main Page]]</pre> <span lang="en" dir="ltr" class="mw-content-ltr">Should be the first line on the page.</span> <span lang="en" dir="ltr" class="mw-content-ltr">See {{ll|Help:Redirects}}.</span> | [[File:Redirect arrow without text (cropped).svg]] [[Main Page]] |} <div lang="en" dir="ltr" class="mw-content-ltr"> == External links == </div> <span lang="en" dir="ltr" class="mw-content-ltr">To [[Special:MyLanguage/Help:Editing pages|create]] an external link, usually to a page at a different website, enclose the URL followed by space and the link text in single square brackets (see examples below).</span> <span lang="en" dir="ltr" class="mw-content-ltr">When you save or preview the page, you will see a link rendered slightly differently than an internal wikilink.</span> <span lang="en" dir="ltr" class="mw-content-ltr">It may be a different color and/or be followed by an arrow icon to show that it may lead to another site.</span> {| class="wikitable" !style="width:15%"| <span lang="en" dir="ltr" class="mw-content-ltr">Description</span> !style="width:45%"| <span lang="en" dir="ltr" class="mw-content-ltr">You type</span> !style="width:40%"| <span lang="en" dir="ltr" class="mw-content-ltr">You get</span> |- | <span lang="en" dir="ltr" class="mw-content-ltr">External link with specified link text</span> | <pre>[https://mediawiki.org MediaWiki]</pre> | [https://mediawiki.org MediaWiki] |- | <span lang="en" dir="ltr" class="mw-content-ltr">Numbered external link</span> | <pre>[https://mediawiki.org]</pre> <span lang="en" dir="ltr" class="mw-content-ltr">This is what happens if you omit the link text.</span> <span lang="en" dir="ltr" class="mw-content-ltr">Multiple links of this type on the same page are numbered sequentially.</span> |[https://mediawiki.org] |- | <span lang="en" dir="ltr" class="mw-content-ltr">Bare external link</span> |<pre>https://mediawiki.org</pre> <span lang="en" dir="ltr" class="mw-content-ltr">URLs beginning with "<code>http://</code>" and "<code>https://</code>" are automatically linked, even when no brackets are used.</span> |https://mediawiki.org |- |<span id="How to avoid auto-links"><span lang="en" dir="ltr" class="mw-content-ltr">Avoiding auto-linking of URLs</span></span> |<syntaxhighlight lang=html><nowiki>https://mediawiki.org</nowiki></syntaxhighlight> |<nowiki>https://mediawiki.org</nowiki> |- | <span lang="en" dir="ltr" class="mw-content-ltr">[[w:Protocol-relative URL|Protocol-relative]] external link</span> |<pre> [//en.wikipedia.org Wikipedia] [//en.wikipedia.org //en.wikipedia.org] </pre> <span lang="en" dir="ltr" class="mw-content-ltr">The link will be HTTP or HTTPS depending on the protocol of the page currently being viewed (which could be different for different users).</span> <span lang="en" dir="ltr" class="mw-content-ltr">This is only supported inside of square brackets <code><nowiki>[ ]</nowiki></code>.</span> <span lang="en" dir="ltr" class="mw-content-ltr">Using "<code>//en.wikipedia.org</code>" by itself ''does not'' result in a link.</span> | [//en.wikipedia.org Wikipedia] [//en.wikipedia.org //en.wikipedia.org] |- | <span lang="en" dir="ltr" class="mw-content-ltr">External link to the current server</span> |<pre>https://{{SERVERNAME}}/pagename</pre> |https://{{SERVERNAME}}/pagename |- | <span lang="en" dir="ltr" class="mw-content-ltr">External link to other host passing the pagename</span> |<pre>https://google.com/search?q={{PAGENAMEE}}</pre> <span lang="en" dir="ltr" class="mw-content-ltr">See also:</span> {{ll|Help:Magic words#URL encoded page names|2=<span lang="en" dir="ltr" class="mw-content-ltr">URL encoded page names</span>}}, {{ll|Manual:PAGENAMEE encoding}} |https://google.com/search?q=Links |- | <span lang="en" dir="ltr" class="mw-content-ltr">Mailto link</span> |<pre>[mailto:info@example.org email me]</pre> |[mailto:info@example.org email me] |- | <span lang="en" dir="ltr" class="mw-content-ltr">Mailto named with subject line and body</span> |<pre>[mailto:info@example.org?Subject=URL%20Encoded%20Subject&body=Body%20Text info]</pre> |[mailto:info@example.org?Subject=URL%20Encoded%20Subject&body=Body%20Text info] |- | <span lang="en" dir="ltr" class="mw-content-ltr">Custom URI</span> |<pre>[skype:echo123 call me]</pre> <span lang="en" dir="ltr" class="mw-content-ltr">Any URI you wish to add needs to be first declared through {{ll|Manual:$wgUrlProtocols|$wgUrlProtocols}}.</span> <span lang="en" dir="ltr" class="mw-content-ltr">(This example is not enabled on mediawiki.org)</span> |[skype:echo123 call me] |} <div lang="en" dir="ltr" class="mw-content-ltr"> === Using email links === </div> <span lang="en" dir="ltr" class="mw-content-ltr">Email links use <code>mailto:</code> before the address.</span> <span lang="en" dir="ltr" class="mw-content-ltr">They're written like this: {{tmpl|0=<code><nowiki>[mailto:anyone@example.org</nowiki> $1<nowiki>]</nowiki></code>|address name}} (resulting in {{tmpl|0=[mailto:anyone@example.org $1]|address name}}).</span> <span lang="en" dir="ltr" class="mw-content-ltr">If there's no name, the address is automatically numbered, like this: <code><nowiki>[mailto:anyone@example.org]</nowiki></code> becomes [mailto:anyone@example.org].</span> <div lang="en" dir="ltr" class="mw-content-ltr"> Addresses without square brackets won't be linked, e.g., anyone@example.com. </div> <div lang="en" dir="ltr" class="mw-content-ltr"> You can also add a CC using {{tmpl|0=<code><nowiki>[mailto:anyone@example.org?cc=anyone2@example.org</nowiki> $1<nowiki>]</nowiki></code>|address name}} (resulting in {{tmpl|0=[mailto:anyone@example.org?cc=anyone2@example.org $1]|address name}}). </div> <span lang="en" dir="ltr" class="mw-content-ltr">To add a subject, use:</span> <code><nowiki>[mailto:anyone@example.com?subject=</nowiki>Subject<nowiki>]</nowiki></code> <div lang="en" dir="ltr" class="mw-content-ltr"> === External links to internal pages === </div> <div lang="en" dir="ltr" class="mw-content-ltr"> To add a link to a page on the same wiki using [[w:URI scheme | URL query parameters]], you may need to use external link syntax. </div> {| border="1" class="wikitable" id="You type" ! <span lang="en" dir="ltr" class="mw-content-ltr">Description</span> {{Anchor|Description}} ! <span lang="en" dir="ltr" class="mw-content-ltr">You type</span> ! <span lang="en" dir="ltr" class="mw-content-ltr">You get</span> |- | <span lang="en" dir="ltr" class="mw-content-ltr">External link to the current page's edit page</span> |<pre> [https://www.mediawiki.org/w/index.php?title=Help:Links&action=edit Edit this page] [{{fullurl:{{FULLPAGENAME}}|action=edit}} Edit this page] </pre> <span lang="en" dir="ltr" class="mw-content-ltr">See also [[Special:MyLanguage/Help:Magic_words#URL_data|Help:Magic_words#URL_data]] and [[#External links|External links]] above.</span> | [https://www.mediawiki.org/w/index.php?title=Help:Links&action=edit <span lang="en" dir="ltr" class="mw-content-ltr">Edit this page</span>] [{{fullurl:{{FULLPAGENAME}}|action=edit}} <span lang="en" dir="ltr" class="mw-content-ltr">Edit this page</span>] |- | <span lang="en" dir="ltr" class="mw-content-ltr">External link to the current page's edit page, and styled to look like an internal link</span> |<syntaxhighlight lang=html><span class="plainlinks">[https://www.mediawiki.org/w/index.php?title=Help:Links&action=edit Edit this page]</span></syntaxhighlight> <span lang="en" dir="ltr" class="mw-content-ltr">The [[Special:MyLanguage/Plainlinks|plainlinks class]] can be used in cases where you want an external link to look like an internal one, by suppressing the icon that normally appears after it.</span> |<span class="plainlinks">[https://www.mediawiki.org/w/index.php?title=Help:Links&action=edit <span lang="en" dir="ltr" class="mw-content-ltr">Edit this page</span>]</span> |} <div lang="en" dir="ltr" class="mw-content-ltr"> ===The arrow icon === </div> <span lang="en" dir="ltr" class="mw-content-ltr">Some skins add an arrow icon [[File:link-external-small-ltr-progressive.svg]] after each external link by default.</span> <span lang="en" dir="ltr" class="mw-content-ltr">However, this can be avoided by using class="{{ll|Plainlinks|plainlinks}}".</span> <span lang="en" dir="ltr" class="mw-content-ltr">For instance:</span> *<code><nowiki>[http://a a]</nowiki></code> → [http://a a] *<code><nowiki><</nowiki>span class="plainlinks"><nowiki>[http://a a]</</nowiki>span></code> → <span class="plainlinks">[http://a a]</span> <div lang="en" dir="ltr" class="mw-content-ltr"> === Using Linksearch === </div> <span lang="en" dir="ltr" class="mw-content-ltr">[[Special:Linksearch]] is a built-in tool that helps find pages linked to a specific URL.</span> <span lang="en" dir="ltr" class="mw-content-ltr">By using the {{ll|Manual:externallinks table|externallinks}} table, it generates a comprehensive list of page names where the link originates, along with the complete target link for each source page.</span> <span lang="en" dir="ltr" class="mw-content-ltr">You can search in all namespaces or just one.</span> <span lang="en" dir="ltr" class="mw-content-ltr">It supports wildcard (*) use, so you can search by [[w:top-level domain|top-level domain]] (e.g. [http://en.wikipedia.org/wiki/Special:Linksearch?title=Special%3ALinksearch&target=*.nl]), [[w:second-level domain|second-level domain]] (e.g. [http://en.wikipedia.org/wiki/Special:Linksearch?title=Special%3ALinksearch&target=*.ns.nl]), etc. or refine your search by specifying parts of the URL e.g. [http://meta.wikimedia.org/wiki/Special:Linksearch?title=Special%3ALinksearch&target=en.wikipedia.org/wiki/Portal].</span> {{note|1= * <span lang="en" dir="ltr" class="mw-content-ltr">Avoid including "http://".</span> * <span lang="en" dir="ltr" class="mw-content-ltr">The program might not return any results if there is a colon in the URL.</span> * <span lang="en" dir="ltr" class="mw-content-ltr">MediaWiki page names in URLs should have underscores instead of spaces.</span> <span lang="en" dir="ltr" class="mw-content-ltr">The Linksearch function also requires underscores in URLs.</span> * <span lang="en" dir="ltr" class="mw-content-ltr">Linksearch is sensitive to capitalization, multiple underscores, and the use of <code>index.php</code>.</span> <span lang="en" dir="ltr" class="mw-content-ltr">It may not find alternative URLs even if they lead to the same target.</span> <span lang="en" dir="ltr" class="mw-content-ltr">Therefore, when creating an external link, it's best to use the canonical form of the URL.</span> <span lang="en" dir="ltr" class="mw-content-ltr">If the address bar displays a modified URL after following a link, update the URL in the link accordingly for optimal use of Linksearch.</span> * <span lang="en" dir="ltr" class="mw-content-ltr">The list is sorted by URL, using {{ll|Manual:Page naming#Alphabetic order|standard page name order}}.</span> <span lang="en" dir="ltr" class="mw-content-ltr">Note that an underscore, unlike a blank space, is alphabetically positioned between <code>Z</code> and <code>a</code>.</span> }} <div lang="en" dir="ltr" class="mw-content-ltr"> === Using backlinks === </div> <span lang="en" dir="ltr" class="mw-content-ltr">Normally, internal links within a project are easy to spot and useful for finding related pages.</span> <span lang="en" dir="ltr" class="mw-content-ltr">But when there's a mix of internal and external links, it can be tricky to track backlinks, it necessitates the use of both "[[Special:MyLanguage/Help:What links here|Help:What links here]]" and "[[#Linksearch|Linksearch]]".</span> <span lang="en" dir="ltr" class="mw-content-ltr">However, for links to specific sections or anchors, it's possible to include both an internal link and, with CSS styling using <code>display=none</code> an external link to provide backlink.</span> <span lang="en" dir="ltr" class="mw-content-ltr">External links are better than interwiki links.</span> <span lang="en" dir="ltr" class="mw-content-ltr">With Linksearch, you can even find backlinks to specific sections or anchors.</span> <span lang="en" dir="ltr" class="mw-content-ltr">So, combining both internal and external links while hiding the external ones <code><nowiki><span style="display:none">http://...</span></nowiki></code> gives us the best of both worlds.</span> <div lang="en" dir="ltr" class="mw-content-ltr"> === Limitations === </div> # <span lang="en" dir="ltr" class="mw-content-ltr">''External links'' doesn't support ''Word-ending links''.</span> # <span lang="en" dir="ltr" class="mw-content-ltr">''External links'' doesn't count toward <nowiki>Special:WhatLinksHere</nowiki> ([[Special:MyLanguage/Help:What links here|What links here]]).</span> <div lang="en" dir="ltr" class="mw-content-ltr"> == Interwiki links == </div> <span lang="en" dir="ltr" class="mw-content-ltr">Interwiki links are internal-style links to other websites (which do not have to be wikis, despite the name).</span> <span lang="en" dir="ltr" class="mw-content-ltr">For example, you can link to the article https://en.wikipedia.org/wiki/Sunflower by typing <code><nowiki>[[wikipedia:Sunflower]]</nowiki></code> or, on this wiki, the shorter <code><nowiki>[[w:Sunflower]]</nowiki></code>.</span> <span lang="en" dir="ltr" class="mw-content-ltr">Both will result in a link [[wikipedia:Sunflower]].</span> <span lang="en" dir="ltr" class="mw-content-ltr">This works because by default MediaWiki configures <code>wikipedia:</code> as an "interwiki prefix" that turns into <nowiki>https://en.wikipedia.org/wiki/</nowiki> when used inside <nowiki>[[ ]]</nowiki>.</span> <span lang="en" dir="ltr" class="mw-content-ltr">(''It may not work if the admin of your wiki has changed the setting.'') Unlike internal links, interwiki links do not use page existence detection, so an interwiki link will appear blue even if the page does not exist on the remote wiki.</span> <div lang="en" dir="ltr" class="mw-content-ltr"> Similar to internal page links, you can create {{ll|Help:Links#Piped links|piped links}}, with alternate link label, e.g. <code><nowiki>[[wikipedia:Sunflower|big yellow flower]]</nowiki></code> is the link [[wikipedia:Sunflower|big yellow flower]] and <code><nowiki>[[wikipedia:Sunflower|]]</nowiki></code> is the link [[wikipedia:Sunflower|Sunflower]]. </div> <div lang="en" dir="ltr" class="mw-content-ltr"> Basically, interwiki links are abbreviations for commonly-used longer external links. A very similar link could be created as <code><nowiki>[https://en.wikipedia.org/wiki/Sunflower big yellow flower]</nowiki></code>. </div> <span lang="en" dir="ltr" class="mw-content-ltr">More details are at {{ll|Manual:Interwiki}}.</span> <span lang="en" dir="ltr" class="mw-content-ltr">Your wiki may have a [[Special:Interwiki]] page listing the interwiki prefixes it supports; {{tmpl|0={{git file | file=maintenance/interwiki.list | text=$1}}|here is the default interwiki list}}.</span> <span lang="en" dir="ltr" class="mw-content-ltr">You can edit the {{ll|Manual:interwiki table|interwiki}} table on your site.</span> <div lang="en" dir="ltr" class="mw-content-ltr"> === Interlanguage links === </div> <div lang="en" dir="ltr" class="mw-content-ltr"> If your wiki has other language versions, you may find [[Special:MyLanguage/Interlanguage_links|interlanguage links]] in the [[Special:MyLanguage/Help:Navigation#Sidebar|sidebar]], just below [[Special:MyLanguage/Help:Navigation#Toolbox|toolbox]] in a section titled “{{lcfirst:{{int|otherlanguages}}}}.” </div> <span lang="en" dir="ltr" class="mw-content-ltr">In wiki markup an interlanguage link looks very much like an interwiki link, but behaves similarly to a [[Special:MyLanguage/Categorylinks|category link]] in that it is rendered in a special way.</span> <span lang="en" dir="ltr" class="mw-content-ltr">While category links appear in a special list at the bottom of the page (usually), interlanguage links appear in a special list in the [[Special:MyLanguage/sidebar|sidebar]] of the page (or elsewhere, depending on the wiki's configuration and the [[Special:MyLanguage/Manual:Skins|skin]] used).</span> <span lang="en" dir="ltr" class="mw-content-ltr">The purpose of interlanguage links is to link pages on the same topics in different languages.</span> <span lang="en" dir="ltr" class="mw-content-ltr">To create an interlanguage link, type {{tmpl|0=<code><nowiki>[[</nowiki>$1:$2<nowiki>]]</nowiki></code>|''language prefix''|''page name''}} anywhere in the page (preferably at the bottom, like category links); the language prefix is the prefix specified at your wiki for the other language version (typically the [[w:List of ISO 639-1 codes|ISO 639-1 language code]]).</span> <span lang="en" dir="ltr" class="mw-content-ltr">The interlanguage link is unilateral, it does not point back from that page in the other language.</span> <span lang="en" dir="ltr" class="mw-content-ltr">For that purpose, an equivalent back-link needs to be placed there as well.</span> <span lang="en" dir="ltr" class="mw-content-ltr">It does not work like the <code>{{int|wikibase-editlinks}}</code> in the languages section of Wikipedia-language versions.</span> <span lang="en" dir="ltr" class="mw-content-ltr">But it can be used across all namespaces, including <code>{{ns:2}}:</code> to point to ones other profiles in other languages.</span> <div lang="en" dir="ltr" class="mw-content-ltr"> If you want to make the interlanguage link appear at a specific place in the content of the page rather than in the sidebar, add a colon before the language prefix: :<code><nowiki>[[:en:Sunflower]]</nowiki></code> → '''[[:en:Sunflower]]''' </div> <div lang="en" dir="ltr" class="mw-content-ltr"> When a link is both interwiki and interlanguage, the order is '''[[wikipedia:en:Sunflower]]'''. </div> <div lang="en" dir="ltr" class="mw-content-ltr"> For more information, see {{ll|Interlanguage links}}. </div> {{anchor|Piped Link}} <div lang="en" dir="ltr" class="mw-content-ltr"> == Piped links == </div> <span lang="en" dir="ltr" class="mw-content-ltr">A '''piped link''' is an internal [[Special:MyLanguage/Help:Link|link]] or [[Special:MyLanguage/Help:Interwiki linking|interwiki link]] where the 'target page name' of the link and its 'label' are both specified.</span> <span lang="en" dir="ltr" class="mw-content-ltr">This is useful in cases where the user wants values of 'target page name' and 'label' to be different.</span> <span lang="en" dir="ltr" class="mw-content-ltr">This also enables linking a contextually relevant word or phrase within the text of a page rather than using the generic value "see also".</span> <span lang="en" dir="ltr" class="mw-content-ltr">The wording does not need to match the name of the target page.</span> <span lang="en" dir="ltr" class="mw-content-ltr">Depending on the [[Special:MyLanguage/Help:Preferences|preferences]] set for the current user and a supported browser, you can still see the link target: when you hover your cursor over the link, the name shows up in a pop-up window and is also shown in the status bar.</span> <div lang="en" dir="ltr" class="mw-content-ltr"> For example: </div> <pre><nowiki>[[coffeehouse setup|Get Piping Hot Coffee Here!]]</nowiki></pre> <span lang="en" dir="ltr" class="mw-content-ltr">will show:</span> [[coffeehouse setup|Get Piping Hot Coffee Here!]] <span lang="en" dir="ltr" class="mw-content-ltr">Let's take another example: <nowiki>[[help:Piped link|piped link]]</nowiki> will be displayed as [[help:Piped link|piped link]].</span> <span lang="en" dir="ltr" class="mw-content-ltr">This can be done when context makes it clear that the page being linked to is in the help namespace.</span> <span lang="en" dir="ltr" class="mw-content-ltr">The piped link is a better way of doing this, rather than mistakenly linking to [[piped link]] which might be a disambiguation page or not exist.</span> <span lang="en" dir="ltr" class="mw-content-ltr">Fun Fact: The term ''piped'' refers to the use of the pipe character "|", which in this context is used to separate the more descriptive description from the actual name of the linked page.</span> <span lang="en" dir="ltr" class="mw-content-ltr">The Pipe character was named after an alternative use of it; see [[w:en:Pipe (computing)|Pipe (computing)]].</span> <div lang="en" dir="ltr" class="mw-content-ltr"> ===Using a redirect as an alternative=== </div> <span lang="en" dir="ltr" class="mw-content-ltr">An alternative way is to use [[Special:MyLanguage/Help:Redirect|redirect pages]].</span> <span lang="en" dir="ltr" class="mw-content-ltr">To create [[Get Piping Hot Coffee Here!]], use <nowiki>[[Get Piping Hot Coffee Here!]]</nowiki> and make it redirect to [[coffeehouse setup]] (please note: unlike above, what pops up when you point at the link, depending on your browser's support, is the text that is already shown).</span> <span lang="en" dir="ltr" class="mw-content-ltr">It is convenient if the redirect is already there or will also be of use elsewhere. However, there are a few drawbacks.</span> *<span lang="en" dir="ltr" class="mw-content-ltr">the popup does not show the destination page</span> *<span lang="en" dir="ltr" class="mw-content-ltr">"[[Special:MyLanguage/Help:Related changes|Related changes]]" shows the changes in the ''redirect page'' not the redirect target</span> *<span lang="en" dir="ltr" class="mw-content-ltr">the redirect message that is shown on the target page slightly clutters it</span> <span lang="en" dir="ltr" class="mw-content-ltr">Using a piped link and a redirect together, it is possible to provide information in the hover box that is not the name of the linked page, for example, the value of a unit in terms of other units.</span> <span lang="en" dir="ltr" class="mw-content-ltr">In that case, it is possible to make a page whose page name is the information that you'd like in the link title, and which redirects to the page with a more appropriate name.</span> <span lang="en" dir="ltr" class="mw-content-ltr">For example, the page [[w:30.48 cm]] redirects to [[w:Foot (unit)]].</span> <div lang="en" dir="ltr" class="mw-content-ltr"> ===Pipe trick=== </div> <div lang="en" dir="ltr" class="mw-content-ltr"> If the part after the <code>|</code> in a piped link is left empty, it is {{ll|Help:Pre-save transform|converted}} to an abbreviated form of the page name on the left, based on the following rules: </div> #<span lang="en" dir="ltr" class="mw-content-ltr">Any word that is before the '''first colon (:)''', as well as the colon character itself, is removed.</span> <span lang="en" dir="ltr" class="mw-content-ltr">This word may or may not be a 'namespace' prefix (such as "Help:") or an 'interwiki' prefix (such as "commons:").</span> <span lang="en" dir="ltr" class="mw-content-ltr">If the name of the page is preceded by a colon (:), "first" refers to "first after this".</span> #<span lang="en" dir="ltr" class="mw-content-ltr">If there is some text in the '''parentheses''' at the end, then it will be removed.</span> #<span lang="en" dir="ltr" class="mw-content-ltr">If there are no parentheses, but there is a '''comma''' (,) character, the comma and everything after it is removed.</span> #<span lang="en" dir="ltr" class="mw-content-ltr">Note that this does not work for '''sections/anchors''' as <code><nowiki>[[Help:Piped_link#Pipe_trick|]]</nowiki></code> outputs [[Help:Piped_link#Pipe_trick|]].</span> <div lang="en" dir="ltr" class="mw-content-ltr"> Similar to using the three or four tildes when signing on Talk pages, and using 'subst', in a preview, the result shows up in the preview itself, but the conversion in the edit box is not shown yet. Click on the <code>{{int|showdiff}}</code> option to see the change in the wikitext. </div> <div lang="en" dir="ltr" class="mw-content-ltr"> =====Examples===== </div> * <span lang="en" dir="ltr" class="mw-content-ltr"><code><nowiki>[[Help:Template|]]</nowiki></code> is converted to <nowiki>[[Help:Template|Template]]</nowiki>, which is shown as [[Help:Template|Template]]</span> * <span lang="en" dir="ltr" class="mw-content-ltr"><code><nowiki>[[Music: My life|]]</nowiki></code> is converted to <nowiki>[[Music: My life| My life]]</nowiki>, which is shown as [[Music: My life| My life]] - although "Music:" itself is not a namespace (therefore the space after the colon character is not automatically removed), however, the shortcut works anyway</span> * <span lang="en" dir="ltr" class="mw-content-ltr"><code><nowiki>[[w:en:Pipe (computing)|]]</nowiki></code> is converted to <nowiki>[[w:en:Pipe (computing)|en:Pipe]]</nowiki>, which is shown as [[w:en:Pipe (computing)|en:Pipe]].</span> * <span lang="en" dir="ltr" class="mw-content-ltr"><code><nowiki>[[commons:Boston, Massachusetts|]]</nowiki></code> is converted to <nowiki>[[commons:Boston, Massachusetts|Boston]]</nowiki>, which is shown as [[commons:Boston, Massachusetts|Boston]].</span> *<span lang="en" dir="ltr" class="mw-content-ltr"><code><nowiki>[[w:{{{1}}}|]]</nowiki></code> ''does not'' give <nowiki>[[w:{{{1}}}|{{{1}}}]]</nowiki>, and calling the template with a value of parameter 1 gives a working link, but in the case of substitution only.</span> *<span lang="en" dir="ltr" class="mw-content-ltr"><code><nowiki>[[w:en:{{FULLPAGENAME}}|]]</nowiki></code> ''does not'' give <nowiki>[[w:en:{{FULLPAGENAME}}|en:{{FULLPAGENAME}}]]</nowiki> and <code><nowiki>[[m:{{FULLPAGENAME}}|]]</nowiki></code> ''does not'' give <nowiki>[[m:{{FULLPAGENAME}}|{{FULLPAGENAME}}]]</nowiki></span> *<span lang="en" dir="ltr" class="mw-content-ltr"><code>[[Wikipedia:Village pump (technical)#Pipe trick|]]</code> is not converted, so it does not give a working link.</span> {| | <span lang="en" dir="ltr" class="mw-content-ltr">This wikitext</span> | <span lang="en" dir="ltr" class="mw-content-ltr">Produces</span> |- | <syntaxhighlight lang="wikitext"> * [[project:a (b)|]] * [[w:project:a (b)|]] * [[:de:project:a (b)|]] * [[wiktionary:project:a (b)|]] * [[wiktionary:de:project:a (b)|]] * [[wikibooks:project:a (b)|]] * [[wikiquote:project:a (b)|]] * [[wikisource:project:a (b)|]] * [[wikisource:project:a (b)#c|]] * [[w:en:{{FULLPAGENAME}}|]] [[w:en:{{FULLPAGENAME}}|en:{{FULLPAGENAME}}]] * [[m:{{FULLPAGENAME}}|]] [[m:{{FULLPAGENAME}}|{{FULLPAGENAME}}]] </syntaxhighlight> | * [[project:a (b)|a]] * [[w:project:a (b)|project:a]] * [[:de:project:a (b)|project:a]] * [[wiktionary:project:a (b)|project:a]] * [[wiktionary:de:project:a (b)|de:project:a]] * [[wikibooks:project:a (b)|project:a]] * [[wikiquote:project:a (b)|project:a]] * [[wikisource:project:a (b)|project:a]] * [[wikisource:project:a (b)#c|]] * [[w:en:{{FULLPAGENAME}}|]] [[w:en:{{FULLPAGENAME}}|en:{{FULLPAGENAME}}]] * [[m:{{FULLPAGENAME}}|]] [[m:{{FULLPAGENAME}}|{{FULLPAGENAME}}]] |} <div lang="en" dir="ltr" class="mw-content-ltr"> =====Category tag===== </div> <div lang="en" dir="ltr" class="mw-content-ltr"> Since the sortkey syntax of the category is similar to a piped link, the pipe trick also works for category tags, even though technically, it is not useful there. </div> <div lang="en" dir="ltr" class="mw-content-ltr"> ====Limitation==== </div> * <span lang="en" dir="ltr" class="mw-content-ltr"><nowiki>[[Help:L{{tc}}k|]]</nowiki> using [[template:tc]] is not converted, so the result is rendered as [[Help:L{{tc}}k|]] which is not as a working link.</span> <span lang="en" dir="ltr" class="mw-content-ltr">This is because like substitution, the pipe trick expansion occurs before ordinary expansion of the templates, etc.</span> <span lang="en" dir="ltr" class="mw-content-ltr">The pipe trick does not work if the linked page includes invalid characters.</span> <span lang="en" dir="ltr" class="mw-content-ltr">Therefore, while ordinarily the acceptability of the target page name is assessed after template expansion, the pipe trick expansion judges it before that.</span> <span lang="en" dir="ltr" class="mw-content-ltr">The braces are therefore considered invalid characters in the page name.</span> <span lang="en" dir="ltr" class="mw-content-ltr">Instead, a template can be used like [[template:pipe trick]]: <nowiki>{{pipe trick|Help:|L{{tc}}k}}</nowiki> which renders as {{pipe trick|Help:|L{{tc}}k}}.</span> <div lang="en" dir="ltr" class="mw-content-ltr"> ====Inverse pipe trick==== </div> <div lang="en" dir="ltr" class="mw-content-ltr"> On page "A (c)", <nowiki>[[|b]]</nowiki> is converted to <nowiki>[[b (c)|b]]</nowiki> automatically. </div> <div lang="en" dir="ltr" class="mw-content-ltr"> Similarly, on page "A, c", <nowiki>[[|b]]</nowiki> is converted to <nowiki>[[b, c|b]]</nowiki> automatically. </div> <div lang="en" dir="ltr" class="mw-content-ltr"> == Anchors == </div> <div lang="en" dir="ltr" class="mw-content-ltr"> === Linking to an anchor === </div> <span lang="en" dir="ltr" class="mw-content-ltr">Links in the format <code><nowiki>[[#anchor_name]]</nowiki></code> will direct to the first matching anchor on the page, typically corresponding to the first identical section heading.</span> <span lang="en" dir="ltr" class="mw-content-ltr">You can add an <code><nowiki>[[#anchor_name]]</nowiki></code> to a link, directing it to the first matching section heading (or anchor) on the '''named''' page:</span> <code><nowiki>[[Help:Editing#Advanced editing]]</nowiki></code> <code><nowiki>https://www.mediawiki.org/wiki/Help:Editing#Advanced_editing</nowiki></code> <div lang="en" dir="ltr" class="mw-content-ltr"> === Using an automatic anchor === </div> <span lang="en" dir="ltr" class="mw-content-ltr">Section headings serve as anchors, using the heading text as the anchor name.</span> <span lang="en" dir="ltr" class="mw-content-ltr">If there are multiple sections with identical headings, each subsequent occurrence is appended with "_2", "_3", etc.</span> <div lang="en" dir="ltr" class="mw-content-ltr"> The anchor [[#toc]] links to the page's table of contents (TOC), except when there's a section already titled "toc". </div> <div lang="en" dir="ltr" class="mw-content-ltr"> === A manual anchor === </div> <span lang="en" dir="ltr" class="mw-content-ltr">Manually-set anchors are beneficial for linking to "unlinkable" elements such as tables (titles or cells) or sections of plain text.</span> <span lang="en" dir="ltr" class="mw-content-ltr">For instance, in the [[#External links to internal pages|External links to internal pages]] section above, although the column text "Description" resembles a (minor) heading, it is not.</span> <span lang="en" dir="ltr" class="mw-content-ltr">There are several methods to set an anchor at any position:</span> * <span lang="en" dir="ltr" class="mw-content-ltr">The "anchor" [[help:Template|template]], if it exists on your wiki, specified as {{tl|anchor}}, offers a standardized method to create anchor points.</span> <span lang="en" dir="ltr" class="mw-content-ltr">Place the template where you want, using the syntax <nowiki>{{Anchor|Name_of_Anchor}}</nowiki>.</span> <span lang="en" dir="ltr" class="mw-content-ltr">For instance, <nowiki>{{Anchor|Description}}</nowiki> is placed in the "Description" column of the table below the "External links to internal pages" section.</span> <span lang="en" dir="ltr" class="mw-content-ltr">Clicking on [[#Description]] links to that anchor point created on the table.</span> <span lang="en" dir="ltr" class="mw-content-ltr">The anchor is only visible via the source code.</span> * <span lang="en" dir="ltr" class="mw-content-ltr">Use the generic anchor tag <code><nowiki><span id="anchor_name">some text</span></nowiki></code> with optional text for visible anchors.</span> <span lang="en" dir="ltr" class="mw-content-ltr">For hidden anchors, omit the text.</span> <span lang="en" dir="ltr" class="mw-content-ltr">To point to the anchor use <code><nowiki>[[#anchor_name]]</nowiki></code>.</span> * <span lang="en" dir="ltr" class="mw-content-ltr">Avoid using manual HTML headings like <code><nowiki><h2>Editing Instructions</h2></nowiki></code>.</span> <span lang="en" dir="ltr" class="mw-content-ltr">This text serves as an anchor_name.</span> * <span lang="en" dir="ltr" class="mw-content-ltr">In certain instances, adding an ID attribute similar to HTML within a Wiki-element is necessary.</span> <span lang="en" dir="ltr" class="mw-content-ltr">Take, for instance, the table mentioned earlier, titled [[#External links to internal pages|External links to internal pages]]:</span> :<code><nowiki> border="1" class="wikitable" id="You type" </nowiki></code> * <span lang="en" dir="ltr" class="mw-content-ltr">A top of a page can be accessed using the reserved term <code><nowiki>[[#top]]</nowiki></code>.</span> <div lang="en" dir="ltr" class="mw-content-ltr"> See also [[Special:MyLanguage/Help:Section#Linking sections using an arbitrary id|Help:Section#Linking sections using an arbitrary ID]]. </div> <div lang="en" dir="ltr" class="mw-content-ltr"> === Using Linksearch anchors === </div> <div lang="en" dir="ltr" class="mw-content-ltr"> As mentioned above, if external link style is used, e.g. [https://www.mediawiki.org/wiki/Help:Section#Linking_sections_using_an_arbitrary_id], we can use [[Special:Linksearch]]: [https://www.mediawiki.org/wiki/Special:LinkSearch]. </div> <span lang="en" dir="ltr" class="mw-content-ltr">When using Linksearch, it's helpful to add leading zeros to numerical anchor names to prevent unintended matches.</span> <span lang="en" dir="ltr" class="mw-content-ltr">For example, instead of searching for "1", use "01" to avoid including "10".</span> <span lang="en" dir="ltr" class="mw-content-ltr">This practice is seen in [[w:Template:Current events header|Template:Current events header]].</span> <span lang="en" dir="ltr" class="mw-content-ltr">Similarly, if there are anchors like "a" and "ab", using "_a" can distinguish them in search results.</span> <div lang="en" dir="ltr" class="mw-content-ltr"> === Using anchorencode === </div> <span lang="en" dir="ltr" class="mw-content-ltr">The <code>#anchorencode</code> parser function encodes input to use as an anchor.</span> <span lang="en" dir="ltr" class="mw-content-ltr">For example, to external link to [[#Using linksearch anchors]] above, you would use <code><nowiki>https://www.mediawiki.org/wiki/Help:Links#{{anchorencode:Using Linksearch anchors}}</nowiki></code>, which resolves to https://www.mediawiki.org/wiki/Help:Links#{{anchorencode:Using Linksearch anchors}}</span> <div lang="en" dir="ltr" class="mw-content-ltr"> == Subpage feature == </div> <span lang="en" dir="ltr" class="mw-content-ltr">MediaWiki has a [[mw:Special:MyLanguage/Help:subpages|subpage]] feature that may or may not be active depending on the project and namespace.</span> <span lang="en" dir="ltr" class="mw-content-ltr">If it's activated, the following rules apply; otherwise, "A/b" is simply a standalone page with that name.</span> <span lang="en" dir="ltr" class="mw-content-ltr">A page's [[w:tree structure|tree structure]] is formed using forward slashes in page names: A/b is considered a subpage of A, making A the parent of A/b; additionally, A/b/c is a subpage of A/b; meanwhile, A/a, A/b, and A/c are categorized as sibling pages.</span> <span lang="en" dir="ltr" class="mw-content-ltr">The subpage body automatically displays links to all parent pages without needing specific wikitext.</span> <span lang="en" dir="ltr" class="mw-content-ltr">These links appear even if the parent page doesn't exist.</span> <span lang="en" dir="ltr" class="mw-content-ltr">However, if any ancestor page in the sequence is missing, the chain of links will stop before that point.</span> <span lang="en" dir="ltr" class="mw-content-ltr">Additionally, the capitalization of letters after the forward slash in the page name matters, meaning "/subpage" and "/Subpage" refer to different pages.</span> <div lang="en" dir="ltr" class="mw-content-ltr"> The functions, [[Special:MyLanguage/Help:What links here|What links here]] and [[Special:MyLanguage/Help:Related changes|Help:Related changes]] do not consider these automatically generated links. </div> <div lang="en" dir="ltr" class="mw-content-ltr"> When the subpage feature is enabled within a namespace, any forward slash in a page's name automatically creates a subpage structure, regardless of whether it was intended or not. </div> <div lang="en" dir="ltr" class="mw-content-ltr"> You can find a list of subpages using [[Special:PrefixIndex]]. </div> <div lang="en" dir="ltr" class="mw-content-ltr"> === Using variables === </div> <div lang="en" dir="ltr" class="mw-content-ltr"> When utilizing the subpage feature within namespace A on page A:B/c/d, <nowiki>{{BASEPAGENAME}}</nowiki> shows B/c while <nowiki>{{SUBPAGENAME}}</nowiki> shows d. </div> <div lang="en" dir="ltr" class="mw-content-ltr"> === Using relative links === </div> <div lang="en" dir="ltr" class="mw-content-ltr"> Within a subpage hierarchy, you can utilize the following relative links: </div> * <span lang="en" dir="ltr" class="mw-content-ltr"><nowiki>[[../]]</nowiki> links to the parent page of the current subpage.</span> <span lang="en" dir="ltr" class="mw-content-ltr">For example, on page A/b, it takes you to page A, and on page A/b/c, it directs you to page A/b.</span> * <span lang="en" dir="ltr" class="mw-content-ltr"><nowiki>[[../../]]</nowiki> links to the grandparent page of the current subpage.</span> <span lang="en" dir="ltr" class="mw-content-ltr">For example, on page A/b/c, it points to page A.</span> * <span lang="en" dir="ltr" class="mw-content-ltr"><nowiki>[[../s]]</nowiki> links to a sibling page of the current subpage.</span> <span lang="en" dir="ltr" class="mw-content-ltr">For example, on page A/b, it leads to page A/s.</span> * <span lang="en" dir="ltr" class="mw-content-ltr"><nowiki>[[../../s]]</nowiki> links to an "uncle" page of the current subpage.</span> <span lang="en" dir="ltr" class="mw-content-ltr">For example, on page A/b/c, it points to page A/s.</span> * <span lang="en" dir="ltr" class="mw-content-ltr"><nowiki>[[/s]]</nowiki> links direct to a subpage.</span> <span lang="en" dir="ltr" class="mw-content-ltr">On page A, it functions similarly to <nowiki>[[A/s]]</nowiki>.</span> <span lang="en" dir="ltr" class="mw-content-ltr">However, linking from a namespace with an enabled subpage feature to a main namespace page starting with "/" requires a workaround: adding a colon before the page name.</span> <span lang="en" dir="ltr" class="mw-content-ltr">Relative links remain functional even when all pages within a hierarchy are renamed to reflect a change in the root's name, even if the root becomes a child of a new parent.</span> <span lang="en" dir="ltr" class="mw-content-ltr">Users with the appropriate permissions, such as administrators and those with the <code>move-subpages</code> right, have the option to move both the main page and its subpages during a renaming process.</span> <span lang="en" dir="ltr" class="mw-content-ltr">Learn more about subpages at [[w:Wikipedia:Subpages|Subpages]].</span> <span lang="en" dir="ltr" class="mw-content-ltr">See examples at [[Special:MyLanguage/Help:Links/example|Help:Links/example]] and [[Special:MyLanguage/Help:Links/example/example2|Help:Links/example/example2]]</span> <div lang="en" dir="ltr" class="mw-content-ltr"> === Subpage activation === </div> <div lang="en" dir="ltr" class="mw-content-ltr"> This feature is only enabled in namespaces specified in the {{wg|NamespacesWithSubpages}} configuration setting, either its [[Special:MyLanguage/Manual:$wgNamespacesWithSubpages#Default value|default namespaces]], or any additional namespaces set in {{ll|Manual:LocalSettings.php|LocalSettings.php}} </div> <div lang="en" dir="ltr" class="mw-content-ltr"> == Character conversion == </div> <span lang="en" dir="ltr" class="mw-content-ltr">The guidelines outlined in [[Special:MyLanguage/Manual:Page naming|Manual:Page naming]] state that in wiki and interwiki links, conversions are made to [[Special:MyLanguage/Help:Special characters|non-literal characters]] automatically.</span> <span lang="en" dir="ltr" class="mw-content-ltr">For example,"<code><nowiki>[[Manual:Page%20naming]]</nowiki></code>" will display as "[[Manual:Page naming]]".</span> <span lang="en" dir="ltr" class="mw-content-ltr">Conversely, external links operate oppositely; literal characters are transformed into non-literal characters.</span> <span lang="en" dir="ltr" class="mw-content-ltr">For example, browsers typically convert ".../wiki/!" to ".../wiki/%21".</span> <span lang="en" dir="ltr" class="mw-content-ltr">Applying a code like %70 to a redirect deactivates it, even though the link remains accessible from the redirect page.</span> <span lang="en" dir="ltr" class="mw-content-ltr">To ensure a successful redirect, the redirect page displays the canonical form of the target, unlike the preview page which shows the link in its regular format.</span> <div lang="en" dir="ltr" class="mw-content-ltr"> == Miscellaneous == </div> <div lang="en" dir="ltr" class="mw-content-ltr"> === Some additional effects of links === </div> * {{ll|Help:Related changes|nsp=0}} * <span lang="en" dir="ltr" class="mw-content-ltr">[[Special:MyLanguage/Help:What links here|Backlink]]s, {{ll|Help:Linksearch|nsp=0}}</span> * <span lang="en" dir="ltr" class="mw-content-ltr">When you include a space after the pipe symbol (<nowiki>[[main Page| ]]</nowiki>), the outcome can vary depending on the browser.</span> <span lang="en" dir="ltr" class="mw-content-ltr">In some cases, it might only display a space (" "), without creating a clickable link.</span> <span lang="en" dir="ltr" class="mw-content-ltr">However, it's still recognized as a link by the <code>{{int|whatlinkshere}}</code> feature.</span> <div lang="en" dir="ltr" class="mw-content-ltr"> === "Hover box" on links === </div> <span lang="en" dir="ltr" class="mw-content-ltr">In certain web browsers, when you place the cursor over a link, a tooltip may appear, displaying the content of the link's HTML title attribute.</span> <span lang="en" dir="ltr" class="mw-content-ltr">MediaWiki assigns different values to this attribute depending on the type of link: for internal wikilinks, it displays the '''page name''' and <code>{{int|red-link-title|}}</code>, if the page does not exist; for interwiki links, it displays the page name with a prefix; and for external links, it displays the URL.</span> <span lang="en" dir="ltr" class="mw-content-ltr">The browser might also display similar information in its status bar, possibly showing which section it belongs to.</span> <span lang="en" dir="ltr" class="mw-content-ltr">Using a {{ll|Help:Links#Piped links|nsp=none}}, even if it isn't clicked, can help clarify acronyms (like displaying "[[m:neutral point of view|neutral point of view]]" as [[m:neutral point of view|NPOV]]) or adding annotations.</span> <span lang="en" dir="ltr" class="mw-content-ltr">Hover boxes can also be created without links, you can customize the hover box content using markup like <code><nowiki>[[Link title|<span title="hoverbox">Display text</span>]]</nowiki></code>.</span> <span lang="en" dir="ltr" class="mw-content-ltr">You cannot include a title attribute directly within the href element for '''external links'''.</span> <span lang="en" dir="ltr" class="mw-content-ltr">Nevertheless, you can achieve a similar outcome by using a span element instead, like this:</span> <code><nowiki>[http://www.example.com <span title="hover text on external link">www.example.com web site</span>]</nowiki></code> :<br /> [http://www.example.com <span title="hover text on external link">www.example.com web site</span>] <div lang="en" dir="ltr" class="mw-content-ltr"> === Retrieving links from a page === </div> <span lang="en" dir="ltr" class="mw-content-ltr">The [[Special:MyLanguage/API:Main page|MediaWiki API]] allows users to retrieve all links from a page.</span> <span lang="en" dir="ltr" class="mw-content-ltr">For example, you can utilize the API query called [[Special:MyLanguage/API:Links|API:Links]] to achieve this.</span> <div lang="en" dir="ltr" class="mw-content-ltr"> === Linking to a page from an image === </div> <span lang="en" dir="ltr" class="mw-content-ltr">You can utilize images to direct users to other pages.</span> <span lang="en" dir="ltr" class="mw-content-ltr">For further details, refer to the guidance on [[Special:MyLanguage/Manual:Linked images|utilizing an image to link to a specific page]] in the help section.</span> <div lang="en" dir="ltr" class="mw-content-ltr"> == Limits == </div> <div lang="en" dir="ltr" class="mw-content-ltr"> An internal wiki link is limited by maximum [[Special:MyLanguage/Manual:page title|page title]] size. </div> <div lang="en" dir="ltr" class="mw-content-ltr"> == See also == </div> * {{ll|Manual:Linked images}} * {{ll|Help:Editing#Links}} * {{ll|Help:URL}} * {{ll|Help:Self link}} * {{ll|Help:Template#Restrictions}} <span lang="en" dir="ltr" class="mw-content-ltr">(and the next section)</span> * {{ll|Manual:Guide to setting up interwiki linking|2=<span lang="en" dir="ltr" class="mw-content-ltr">Guide to setting up interwiki linking</span>}} * {{ll|Manual:Links table}} * {{ll|Interwikimap}} * {{ll|Manual:brokenlinks table}} * <span lang="en" dir="ltr" class="mw-content-ltr">[[w:Red Link|Red Link]]</span> * <span lang="en" dir="ltr" class="mw-content-ltr">[[w:Wikipedia:Canonicalization|Wikipedia:Canonicalization]]</span> * [[Special:Mostlinked]] – <span lang="en" dir="ltr" class="mw-content-ltr">Displays the number of links.</span> * [[Special:Lonelypages]] – <span lang="en" dir="ltr" class="mw-content-ltr">A list of pages not linked to any page.</span> [[Category:Help{{#translation:}}|Links]] [[Category:Link{{#translation:}}|Links]]
Search
Search
Export translations
Add topic