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
News
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"> Pages on a MediaWiki wiki are grouped into collections called “'''namespaces'''” which differentiate between the purpose of the pages at a high level. Pages in certain namespaces can also have special properties or behave differently when they interact with other pages. </div> <div lang="en" dir="ltr" class="mw-content-ltr"> Namespaces are indicated in page titles by prefixing the page name with <code><nowiki><namespace>:</nowiki></code>, so the prefix <code>{{NAMESPACE}}:</code> in this page's title (<code>{{FULLPAGENAME}}</code>) indicates that this page is in the <code>{{NAMESPACE}}</code> namespace. Each namespace is identified by a number and a name, which can be translated and can also have some aliases. </div> <div lang="en" dir="ltr" class="mw-content-ltr"> A page whose name is ''not'' prefixed by a namespace lies in the [[#blank-ns|mainspace]]. Note, however, that colons and prefixes can also appear in page titles ''without'' indicating a namespace: the page <code>Foo:{{PAGENAME}}</code> is a page located in the mainspace because the namespace “Foo” does not exist. Similarly the page <code>{{NAMESPACE}}:Foo:{{PAGENAME}}</code> is in the “{{NAMESPACE}}” namespace. </div> <div lang="en" dir="ltr" class="mw-content-ltr"> == Standard namespaces == </div> <div lang="en" dir="ltr" class="mw-content-ltr"> The standard MediaWiki installation has sixteen namespaces that can contain user-generated content; there are also two special namespaces that contain pages created “on the fly” by the MediaWiki software. The standard namespaces are organized in pairs, with each pair containing a “subject namespace” and a “discussion namespace.” The namespaces are numbered from zero such that all subject namespaces have even indices and all talk namespaces have odd indices. </div> {{Anchor|ns-media}} <div lang="en" dir="ltr" class="mw-content-ltr"> ==== Media ==== </div> <div lang="en" dir="ltr" class="mw-content-ltr"> This namespace is used for direct linking to media files: the link <code><nowiki>[[</nowiki>[[Media:MediaWiki-2020-logo.svg]]<nowiki>]]</nowiki></code> links to just the image rather than the image description page, which would be <code><nowiki>[[</nowiki>[[:File:MediaWiki-2020-logo.svg|:{{ns:6}}:MediaWiki-2020-logo.svg]]<nowiki>]]</nowiki></code>. </div> <div lang="en" dir="ltr" class="mw-content-ltr"> ==== Special ==== </div> {{main|Help:Special pages}} <div lang="en" dir="ltr" class="mw-content-ltr"> This namespace is used to group [[Special:MyLanguage/Help:Special pages|special pages]], reports and interfaces that are generated “on demand” by MediaWiki and that are not directly editable. It is not possible to create pages in this namespace except by modifying or extending the MediaWiki software. </div> {{Anchor|blank-ns|Main}} ==== {{int|blanknamespace}} ==== <div lang="en" dir="ltr" class="mw-content-ltr"> The namespace that has no prefix separated by a colon. Commonly called the “main namespace” or “mainspace”. This namespace typically contains the bulk of the {{ll|Manual:$wgContentNamespaces|content pages}} in a wiki. This namespace generally has no special properties. </div> <div lang="en" dir="ltr" class="mw-content-ltr"> ==== Talk ==== </div> {{main|Help:Talk pages}} <div lang="en" dir="ltr" class="mw-content-ltr"> The “{{ns:1}}” namespace is the discussion namespace attached to the mainspace. It has no special properties. </div> <div lang="en" dir="ltr" class="mw-content-ltr"> ==== User ==== </div> {{main|Help:User page}} <div lang="en" dir="ltr" class="mw-content-ltr"> Each user has a corresponding page in the “{{ns:2}}” namespace, which is linked to from edit histories, watchlists, recent changes, etc.; wherever an individual user is uniquely identified. </div> <span lang="en" dir="ltr" class="mw-content-ltr">This page and subpages of it can be used by users to record information about themselves or to test and draft new content.</span> <span lang="en" dir="ltr" class="mw-content-ltr">Pages of the form {{tmpl|0=<code>{{ns:2}}:''$1''/Foo'''.js'''</code>|UserName}} or {{tmpl|0=<code>{{ns:2}}:''$1''/Foo'''.css'''</code>|UserName}} can only be edited by the user themselves or by [[Special:MyLanguage/Help:Sysops and permissions|interface administrators]] (or administrators before MediaWiki 1.32).</span> <div lang="en" dir="ltr" class="mw-content-ltr"> ==== User talk ==== </div> <span lang="en" dir="ltr" class="mw-content-ltr">This namespace is the talkspace associated with the “{{ns:2}}” namespace.</span> <span lang="en" dir="ltr" class="mw-content-ltr">Pages in this namespace are mainly used to leave messages for particular users or inform them of discussions that may be of interest to them.</span> <span lang="en" dir="ltr" class="mw-content-ltr">To facilitate this, when a page {{tmpl|0=<code>{{ns:3}}:$1</code>|UserName}} is edited, whenever the user UserName loads a page, a notice is displayed at the top of the page informing them of the edit:</span> <div class="usermessage plainlinks" style="margin: 1em 0;"> {{int|new-messages-from-users |2=[[{{ns:3}}:UserName|<span style="color:#002bb8">{{int|new-messages-link-plural|1}}</span>]] |3=[{{fullurl:{{ns:3}}:UserName|diff=cur}} <span style="color:#002bb8">{{int|new-messages-diff-link-plural|1}}</span>] |4=1}} </div> <div lang="en" dir="ltr" class="mw-content-ltr"> This notice continues to appear until the user loads their user talk page to read the message. </div> {{Admin tip|1=<span lang="en" dir="ltr" class="mw-content-ltr">Extensions like {{ll|Extension:Echo|nsp=0}} may override this behavior.</span>}} <div lang="en" dir="ltr" class="mw-content-ltr"> ==== Project ==== </div> <span lang="en" dir="ltr" class="mw-content-ltr">This namespace is normally used for meta-discussions related to the operation and development of the wiki.</span> <span lang="en" dir="ltr" class="mw-content-ltr">It automatically redirects the user to a namespace labeled after the wiki's name, example:</span> <nowiki>[[Project:Licenses]] → [[Wikipedia:Licenses]].</nowiki> <span lang="en" dir="ltr" class="mw-content-ltr">Because this namespace's name changes from wiki to wiki, you may want to simply look at the 5th entry in any dropdown containing a list of all namespaces.</span> <span lang="en" dir="ltr" class="mw-content-ltr">The project namespace will be listed immediately after the User talk namespace.</span> <span lang="en" dir="ltr" class="mw-content-ltr">On some wiki farms, the name <code>Meta</code> may be used for this namespace.</span> <div lang="en" dir="ltr" class="mw-content-ltr"> ==== Project talk ==== </div> <div lang="en" dir="ltr" class="mw-content-ltr"> This is a talk namespace that is normally used for discussions related to the associated project pages. It has no special properties. </div> <div lang="en" dir="ltr" class="mw-content-ltr"> ==== File ==== </div> {{main|Help:Images}} [[Image:MediaWiki-2020-logo.svg|right]] <span lang="en" dir="ltr" class="mw-content-ltr">The “{{ns:6}}” namespace is used to store metadata for images, videos, sound files and other media accessed via the “{{ns:-2}}” namespace.</span> <span lang="en" dir="ltr" class="mw-content-ltr">Each file has a corresponding page in the “{{ns:6}}” namespace, which is often used to hold licensing data.</span> <span lang="en" dir="ltr" class="mw-content-ltr">Linking ''directly'' to a page in this namespace instead includes the media file inline in the page: <code><nowiki>[[</nowiki>{{ns:6}}<nowiki>:MediaWiki-2020-logo.svg|right]]</nowiki></code> produces the image to the right.</span> <span lang="en" dir="ltr" class="mw-content-ltr">See {{ll|Help:Images}} for more details of this link syntax.</span> <div lang="en" dir="ltr" class="mw-content-ltr"> To create an [[Special:MyLanguage/Help:Links|internal link]] to the file page, you need to add a colon to the front of the namespace: <code><nowiki>[[:</nowiki>{{ns:6}}<nowiki>:MediaWiki-2020-logo.svg|right]]</nowiki></code> produces [[:{{ns:6}}:MediaWiki-2020-logo.svg]]. The standard MediaWiki installation has alias “Image” for “{{ns:6}}” namespace – See [[#ns-aliases|Namespace aliases]]. </div> <div lang="en" dir="ltr" class="mw-content-ltr"> For linking media files directly, bypassing the description page, see [[#ns-media|Media namespace]]. </div> <div lang="en" dir="ltr" class="mw-content-ltr"> ==== File talk ==== </div> <div lang="en" dir="ltr" class="mw-content-ltr"> This is a talk namespace that is normally used for discussions related to the associated media files. It has no special properties. </div> ==== MediaWiki ==== {{main|Help:System message}} <span lang="en" dir="ltr" class="mw-content-ltr">The “{{ns:8}}” namespace is used to [[Special:MyLanguage/Help:System message#Overriding messages on-wiki|hold system messages]] and other important content.</span> <span lang="en" dir="ltr" class="mw-content-ltr">For instance, the page [[{{ns:8}}:Edit]] (or [[{{ns:8}}:Vector-view-edit]] in the default “Vector” skin) contains the text that fills the “{{int|Edit}}” tab at the top of every page.</span> <span lang="en" dir="ltr" class="mw-content-ltr">If that page exists, it overrides the default content, which is “Edit.” Similarly, [[{{ns:8}}:Common.css]] is the system message that holds the [[w:Cascading Style Sheets|CSS]] code that is loaded for all users for each page.</span> <span lang="en" dir="ltr" class="mw-content-ltr">It has the special property that the entire namespace can only be edited by users with the <code>(editinterface)</code> user right.</span> <span lang="en" dir="ltr" class="mw-content-ltr">Since MediaWiki 1.32, JavaScript and CSS pages needs also <code>editinterface</code> and (respectively) <code>editsitejs</code> or <code>editsitecss</code> rights to edit.</span> <div lang="en" dir="ltr" class="mw-content-ltr"> ==== MediaWiki talk ==== </div> <div lang="en" dir="ltr" class="mw-content-ltr"> This is a talk namespace that is normally used for discussions related to the associated system messages. It has no special properties. </div> <div lang="en" dir="ltr" class="mw-content-ltr"> ==== Template ==== </div> {{main|Help:Templates}} <span lang="en" dir="ltr" class="mw-content-ltr">The “{{ns:10}}” namespace is used to hold [[Special:MyLanguage/Help:Templates|templates]], blocks of text or wikicode that are intended to be transcluded into several other pages.</span> <span lang="en" dir="ltr" class="mw-content-ltr">To facilitate this it has the special property that it is the ''default'' namespace for transclusions: the wikicode <code><nowiki>{{Foo}}</nowiki></code> is equivalent to <code><nowiki>{{</nowiki>'''{{ns:10}}:'''<nowiki>Foo}}</nowiki></code>.</span> <div lang="en" dir="ltr" class="mw-content-ltr"> ==== Template talk ==== </div> <div lang="en" dir="ltr" class="mw-content-ltr"> This is a talk namespace that is normally used for discussions related to the associated template pages. It has no special properties. </div> <div lang="en" dir="ltr" class="mw-content-ltr"> ==== Help ==== </div> <span lang="en" dir="ltr" class="mw-content-ltr">The “{{ns:12}}” namespace is usually used to hold help files, instructions and “how-to” guides. It has no special properties.</span> <span lang="en" dir="ltr" class="mw-content-ltr">See [[Special:MyLanguage/Help:Contents|Help namespace content]].</span> <div lang="en" dir="ltr" class="mw-content-ltr"> ==== Help talk ==== </div> <div lang="en" dir="ltr" class="mw-content-ltr"> This is a talk namespace that is normally used for discussions related to the associated help pages. It has no special properties. </div> <div lang="en" dir="ltr" class="mw-content-ltr"> ==== Category ==== </div> {{main|Help:Categories}} <span lang="en" dir="ltr" class="mw-content-ltr">The “{{ns:14}}” namespace contains [[Special:MyLanguage/Help:Categories|categories]], dynamic lists of other pages.</span> <span lang="en" dir="ltr" class="mw-content-ltr">To facilitate this, linking ''directly'' to a category page does not output an inline link, but instead includes the page into the associated category page.</span> <span lang="en" dir="ltr" class="mw-content-ltr">So the code <code><nowiki>[[</nowiki>{{ns:14}}<nowiki>:Help]]</nowiki></code> causes a category link to appear at the bottom of the page (at the bottom in the box marked “{{int|Pagecategories}}”).</span> <span lang="en" dir="ltr" class="mw-content-ltr">Clicking on that link takes you to the category page, where this page is visible in the category list.</span> <span lang="en" dir="ltr" class="mw-content-ltr">To create an inline link to a category page, you need to add a colon to the front of the namespace: <code><nowiki>[[</nowiki>:{{ns:14}}:Help<nowiki>]]</nowiki></code> produces [[:{{ns:14}}:Help]].</span> <span lang="en" dir="ltr" class="mw-content-ltr">See {{ll|Help:Categories}} for more details on category link syntax.</span> <div lang="en" dir="ltr" class="mw-content-ltr"> ==== Category talk ==== </div> <div lang="en" dir="ltr" class="mw-content-ltr"> This is a talk namespace that is normally used for discussions related to the associated category pages. It has no special properties. </div> <div lang="en" dir="ltr" class="mw-content-ltr"> ==Localisation== </div> {| class="wikitable" width="0" style="float:{{dir|{{pagelang}}|left|right}}; margin-{{dir|{{pagelang}}|right|left}}:0.7em;" |- !{{hl2}}|<span lang="en" dir="ltr" class="mw-content-ltr">Number</span> !{{hl2}}|<span lang="en" dir="ltr" class="mw-content-ltr">Canonical name</span> !{{hl2}}|<span lang="en" dir="ltr" class="mw-content-ltr">Localized name</span> |- | -2 || Media || <span lang="en" dir="ltr" class="mw-content-ltr">Media</span> |- | -1 || Special || <span lang="en" dir="ltr" class="mw-content-ltr">Special</span> |- | 0 || (Main) || {{ns:0}} |- | 1 || Talk || <span lang="en" dir="ltr" class="mw-content-ltr">Talk</span> |- | 2 || User || <span lang="en" dir="ltr" class="mw-content-ltr">User</span> |- | 3 || User talk || <span lang="en" dir="ltr" class="mw-content-ltr">User talk</span> |- | 4 || Project || <span lang="en" dir="ltr" class="mw-content-ltr">Project</span> |- | 5 || Project talk || <span lang="en" dir="ltr" class="mw-content-ltr">Project talk</span> |- | 6 || File || <span lang="en" dir="ltr" class="mw-content-ltr">File</span> |- | 7 || File talk || <span lang="en" dir="ltr" class="mw-content-ltr">File talk</span> |- | 8 || MediaWiki || <span lang="en" dir="ltr" class="mw-content-ltr">MediaWiki</span> |- | 9 || MediaWiki talk || <span lang="en" dir="ltr" class="mw-content-ltr">MediaWiki talk</span> |- | 10 || Template || <span lang="en" dir="ltr" class="mw-content-ltr">Template</span> |- | 11 || Template talk || <span lang="en" dir="ltr" class="mw-content-ltr">Template talk</span> |- | 12 || Help || <span lang="en" dir="ltr" class="mw-content-ltr">Help</span> |- | 13 || Help talk || <span lang="en" dir="ltr" class="mw-content-ltr">Help talk</span> |- | 14 || Category || <span lang="en" dir="ltr" class="mw-content-ltr">Category</span> |- | 15 || Category talk || <span lang="en" dir="ltr" class="mw-content-ltr">Category talk</span> |} <span lang="en" dir="ltr" class="mw-content-ltr">Namespace names and aliases can be localized by developers.</span> <span lang="en" dir="ltr" class="mw-content-ltr">To request the localization of namespace names, please [https://phabricator.wikimedia.org/maniphest/task/create/?projects=MediaWiki-Internationalization file a MediaWiki internationalization task] at {{ll|Phabricator}}.</span> <span lang="en" dir="ltr" class="mw-content-ltr">In the description of the task, you should provide translations of all the namespaces in the table to the right, as well as any additional namespaces on your wiki (such as "Module" or "Gadget").</span> <div lang="en" dir="ltr" class="mw-content-ltr"> If the site's language is Chinese, then namespace names are translated only when the content is converted and there is no <code>__<nowiki/>NOTITLECONVERT__</code> or <code>__<nowiki/>NOTC__</code> or [[Special:MyLanguage/Help:Magic words|magic words]] on a page. </div> <div lang="en" dir="ltr" class="mw-content-ltr"> ===Renaming namespaces=== </div> <span lang="en" dir="ltr" class="mw-content-ltr">Namespace names can be translated into languages other than English and individual namespaces can be renamed, as set by a wiki's system admins (using [[Namespace manager]]).</span> <span lang="en" dir="ltr" class="mw-content-ltr">These names are known as the 'localized' namespace names.</span> <span lang="en" dir="ltr" class="mw-content-ltr">However, all namespaces have a 'canonical name', the original English name which will work on any installation of MediaWiki.</span> <span lang="en" dir="ltr" class="mw-content-ltr">So linking to [[User:Foo]] will always locate the user page for the user foo, whether the wiki is in French (where the localized name would be [[:Utilisateur:Foo]]), Russian ([[:Участник:Foo]]), or Hindi ([[:सदस्य:Foo]]).</span> <div lang="en" dir="ltr" class="mw-content-ltr"> The canonical namespace names are given in the table to the right along with their localized names on this wiki. </div> {{Anchor|ns-aliases}} <div lang="en" dir="ltr" class="mw-content-ltr"> ==Custom namespaces== </div> <div lang="en" dir="ltr" class="mw-content-ltr"> ===Namespace aliases=== </div> <span lang="en" dir="ltr" class="mw-content-ltr">On some wikis there are also namespace ''aliases'': alternative names that will also be resolved to the localised names.</span> <span lang="en" dir="ltr" class="mw-content-ltr">For instance, a wiki might define "T" as an alias for {{ns:10}}, such that typing [[T:Foo]] is equivalent to [[{{ns:10}}:Foo]], saving a few characters and seconds.</span> <span lang="en" dir="ltr" class="mw-content-ltr">An actual example would be on the [[wikipedia:|English Wikipedia]], where "WP" is an alias for {{ns:4}}, which is the namespace "Wikipedia".</span> <div lang="en" dir="ltr" class="mw-content-ltr"> By default, "Image" is an alias for {{ns:6}}, so <code><nowiki>[[Image:MediaWiki-2020-logo.svg]]</nowiki></code> is equivalent to <code><nowiki>[[</nowiki>{{ns:6}}<nowiki>:MediaWiki-2020-logo.svg]]</nowiki></code>. </div> <div lang="en" dir="ltr" class="mw-content-ltr"> ===Extra namespaces=== </div> :''<span lang="en" dir="ltr" class="mw-content-ltr">See {{ll|Extension default namespaces}} for a list of namespaces used by various extensions, and {{ll|Manual:Using custom namespaces}} for information on how to set up extra namespaces on a wiki.</span>'' <div lang="en" dir="ltr" class="mw-content-ltr"> Some wikis may wish to organize their content in ways that do not fit into this standard set of namespaces. A wiki may define additional namespaces to facilitate this; these namespaces behave exactly like normal namespaces, and generally have indices greater than or equal to 100. These custom namespaces generally have no special properties. </div> <div lang="en" dir="ltr" class="mw-content-ltr"> ==Identifying the namespace of a page== </div> <div lang="en" dir="ltr" class="mw-content-ltr"> There are a number of ways by which the namespace of a particular page can be identified: </div> <div lang="en" dir="ltr" class="mw-content-ltr"> ;Magic words </div> <div lang="en" dir="ltr" class="mw-content-ltr"> The [[Special:MyLanguage/Help:Magic word|magic word]] <code><nowiki>{{NAMESPACE}}</nowiki></code> returns the value of the namespace the page is in. </div> <div lang="en" dir="ltr" class="mw-content-ltr"> To refer to another namespace, use {{tmpl|0=<code>{{((}}ns:<$1>{{))}}</code>|name}} (e.g. <code><nowiki>{{ns:Project}}</nowiki></code>), or <code><nowiki>{{SUBJECTSPACE}}</nowiki></code> / <code><nowiki>{{TALKSPACE}}</nowiki></code> to refer to the namespace paired with the current one. </div> ;JavaScript <span lang="en" dir="ltr" class="mw-content-ltr">The JavaScript variable <code>wgCanonicalNamespace</code> contains the full namespace name.</span> <span lang="en" dir="ltr" class="mw-content-ltr">The variable <code>wgNamespaceNumber</code> contains the numerical index of the namespace.</span> <div lang="en" dir="ltr" class="mw-content-ltr"> ;CSS </div> <span lang="en" dir="ltr" class="mw-content-ltr">The {{tag|body|open}} tag of the HTML page output is given two CSS classes that vary by namespace: A class <code>ns-#</code>, where # is the index of the namespace, and <code>ns-XXX</code>, where XXX is "<code>subject</code>" for all {{ll|Manual:Namespace#Subject and talk namespaces|subject namespaces}}, "<code>special</code>" for pages in the {{ns:-1}} namespace, and "<code>talk</code>" for {{ll|Manual:Namespace#Subject and talk namespaces|talk namespaces}}.</span> <span lang="en" dir="ltr" class="mw-content-ltr">So CSS code such as the following can be used to change the appearance of an object based on its namespace:</span> <syntaxhighlight lang="css"> .ns-subject a { /* Almost all links on subject pages to be green. */ color: #0f0; } .ns-talk a { /* Links on talk pages to be blue. */ color: #00f; } .ns-3 a { /* and links on user talk pages to be red */ color: #f00; } </syntaxhighlight> ==Listing namespaces== :''<span lang="en" dir="ltr" class="mw-content-ltr">See {{ll|Extension default namespaces}} for a list of namespaces used by various MediaWiki extensions.</span>'' <div lang="en" dir="ltr" class="mw-content-ltr"> The special page [[Special:NamespaceInfo]] provides a table with information about the namespaces used on a wiki, including the ID, canonical name, local name, description, and properties. </div> <div lang="en" dir="ltr" class="mw-content-ltr"> You can also get a complete list of all namespace names of a MediaWiki installation from the Search results page ''Advanced'' tab, or from any ''recent changes'' page such as contributions or watchlist in its options box, in a drop-down list. </div> <div lang="en" dir="ltr" class="mw-content-ltr"> For the system properties of each namespace, use the MediaWiki {{ll|API:Main page|API}}: </div> <div lang="en" dir="ltr" class="mw-content-ltr"> ;API </div> {{ApiEx | site=www.mediawiki.org | p1=action=query | p2=meta=siteinfo | p3=siprop=namespaces | p4=formatversion=2 }} <div lang="en" dir="ltr" class="mw-content-ltr"> == See also == </div> * {{ll|Manual:Namespace}} * {{ll|Manual:Using custom namespaces}} * {{ll|Manual:$wgNamespacesToBeSearchedDefault}} [[Category:Help{{#translation:}}|Namespaces]] [[Category:Namespace{{#translation:}}|Namespaces]]
Search
Search
Export translations
Add topic