Manuale di MediaWiki : Sommario generale —— sommario specifico per Lettori, Scrittori, Amministratori, Sviluppatori —— Altre pagine di aiuto (specifiche per questo progetto)

Questa pagina è una traduzione della corrispondente pagina del manuale in inglese di MediaWiki.

Puoi consultare (in inglese) le linee guida del manuale | la Politica editoriale

{{{{{1}}}}}

La forma canonica di un nome di pagina è mostrato in grandi caratteri come testata della pagina. Un altro tipo di forma canonica è quello che viene generato negli URL dal sistema, per questa pagina "Aiuto:Nomi_delle_pagine" con i trattini bassi. Nomi alternativi per questa pagina (su molti progetti) sono aiuto:nomi delle pagine, aiuto:Nomi delle pagine, Aiuto:nomi delle pagine e Aiuto:Nomi delle pagine, ma non Aiuto:Nomi Delle Pagine; quelli in grassetto sono usati in questo progetto. Per i dettagli, guarda sotto.

Restrizioni edit

Caratteri speciali edit

I seguenti caratteri (che possono essere configurati in "$wgLegalTitleChars") non sono ammessi nei titoli di pagina:

# < > [ ] | { }

Nemmeno i caratteri non-stampabili con valori ASCII compresi tra 0 e 31, ed il carattere 127 "delete" sono ammessi.

Tali caratteri sono disabilitati per tale ragione:

  • [, ], {, }, e | hanno significati speciali nella sintassi di Wikipedia, e sono processati prima che venga determinato il nome della pagina. Per esempio, [[{{CURRENTYEAR}}]] punta a 2024, non alla pagina chiamata {{CURRENTYEAR}}.

Vedi anche w:en:Wikipedia:Naming conventions (technical restrictions).

Barra (/) edit

A seconda del namespace e delle impostazioni, la presenza di una barra nel Nome della Pagina serve per funzioni speciali, vedi Funzione delle sottopagine.

Prefissi dei namespace edit

Also, the first part of a page name may not coincide with a project-independent namespace prefix that is automatically converted to another one. As an example, the name Project: A-Kon on Wikipedia is not possible.

The first part of a page name can coincide with a namespace prefix that is not converted. For example, there might be articles in the English Wikipedia about books called Wikipedia: The Big Adventure and Talk: Secrets are Bad (but only without the space after the colon). However, in that case the pages are in the wrong namespace. This may be inconvenient in searching or displaying a list of pages. Also, in the second case there is no link to a Talk page about the book. (As explained above, the second page name is not possible on e.g. the German Wikipedia: see w:de:Talk: Secrets are Bad).

Prefissi che si riferiscono ad altri progetti oppure a pseudo-namespace edit

A page name cannot start with a prefix that is in use to refer to another project, including language codes, e.g. "en:" (list), or one of the pseudo-namespaces "Media:" and "Special:".

Thus e.g. an article about the album "Q: Are We Not Men? A: We Are Devo!" can not have that exact name. An attempt to create the article, whether by a link Q: Are We Not Men? A: We Are Devo! or a URL http://en.wikipedia.org/wiki/Q:Are_We_Not_Men%3F_A:_We_Are_Devo%21 leads to Wikiquote.

With regard to using the prefix of the project itself there is no consistency: a name like en:a cannot be used on en: (try w:en:a and w:en:en:a), while "Q: Are We Not Men? A: We Are Devo!" can exist on Wikiquote: q:Q: Are We Not Men? A: We Are Devo!.

Lunghezza massima del nome pagina edit

La massima lunghezza del nome pagina è di 255 byte (escluso il prefisso dello spazio dei nomi). Ricordiamoci che i caratteri non-ASCII, con la codifica UTF-8, possono richiedere fino a 4 bytes, pertanto il numero totale di caratteri che possiamo scrivere in un titolo può essere inferiore a 255 a seconda della lingua usata.

Vedere Test of maximum page name length: 255 characters; test of maximum page name length: 255 characters; test of maximum page name length: 255 characters; test of maximum page name length: 255 characters; test of maximum page name length: 255 characters; test.

Spaces vs. underscores edit

In page names, a blank space is equivalent with an underscore. A blank space is displayed in the large font title at the top of the page, the URLs show an underscore. See also below.

Case-sensitivity edit

If for the first letter of a page name two cases exist, as in the case of letters of the Latin, Greek, Cyrillic, and Armenian alphabets, the following applies.

All characters of namespace prefixes are case-insensitive. The canonical form, shown in large font as page header, and in URLs generated by the system, is on most projects with one capital; Klingon is an exception, see w:tlh:Chen'ay':h:h, where the c is converted to lower-case, and w:tlh:Qah:Page name, where the h is converted to upper-case. Below "page name" refers to the name without the possible namespace prefix.

Case-sensitivity of the first character edit

The first character of the page name (outside the main namespace: after the namespace prefix) may or may not be case-sensitive, depending on the project. [[Help:page name]] gives on this project: Help:page name. If the first character of the page name is case-sensitive this is a link (to a different page), otherwise it is bold (a self link to this page).

Currently the first character of the page name is case-insensitive, except in the following Wiktionaries:

  • bg
  • cs
  • de
  • en
  • eo
  • es
  • fa
  • fi
  • fr
  • gu
  • hi
  • hr
  • hu
  • ka
  • kn
  • ku
  • is
  • it
  • ja
  • ml
  • nl
  • pl
  • sa
  • sv
  • sw
  • tr
  • vi
  • zh

Compare e.g. wikt:de:A and wikt:de:a, and wikt:nl:Sjabloon:H:f and wikt:nl:Sjabloon:h:f.

The same applies for the Klingon Wikipedia, compare e.g. w:tlh:jo and w:tlh:Jo.

Case where the first character is case-insensitive edit

The canonical form is with a capital.

Note that in the case of a prefix that is not a namespace for the software, and in the case of a second prefix, the case-insensitivity does not apply to the first character after this prefix, e.g. Template:H:h Help and [[Template:H:H Help]] are distinguished.

Case-sensitivity of the file name extension of an image edit

Note that even the file name extension of an image is case-sensitive: compare image:Stop_sign_us.jpg and image:Stop_sign_us.JPG

Ignored spaces/underscores edit

Spaces/underscores which are ignored:

  • those at the start and end of a full page name
  • those at the end of a namespace prefix, before the colon
  • those after the colon of the namespace prefix
  • duplicate consecutive spaces

Some show up in the link label, e.g. [[___help__ :_ _template_ _]] becomes ___help__ :_ _template_ _, linking to Help:Template.

However, a space before or after a "normal" colon makes a difference, e.g. MediaWiki User's Guide: Editing overview and MediaWiki User's Guide : Editing overview, and MediaWiki User's Guide:Editing overview are all distinguished, because "MediaWiki User's Guide:" is a pseudo-namespace, not a real one.

Coding of characters edit

A page name can not contain e.g. %41, because that is automatically converted to the character A, for which %41 is the code. [[%41]] is rendered as A. Similarly %C3%80 is automatically converted to the character À. [[%C3%80]] is rendered as À. The URL of the page is http://meta.wikipedia.org/wiki/%C3%80. One can argue what is the real name of the page, %C3%80 or À (a user will say the latter), but anyway there can not be distinct pages with these names.

Canonical form edit

The inclusion tag for a non-existing page shows a link with the canonical form of the page name: {{qwsazx}}, {{:qwsazx}}, {{project:qws azx}} give Template:Qwsazx, Qwsazx, Meta:Qws azx; compare with ordinary links Template:qwsazx, qwsazx, project:qws azx; these work like Piped links, e.g. [[Qwsazx|qwsazx]]; in this case the conversion shows up on the referring page only when pointing at it: in the pop-up and in the status bar (if applicable for the browser); whether the target is a redirect, and what the final target is, is not shown at all.

An attempt to include a page from another project results in just displaying the wikitext, e.g. {{en:qwsazx}}; ordinary interwiki links do not show existence and do not show a canonical form in the hover box or status bar: en:project:qwsazx. The same applies if interwiki link style is used for a link to a page in the same project: m:project:qwsazx.

A saved redirect page shows the canonical form of the target, even though the preview renders the link in the usual way, compare [1] with the preview of [2].

Manuale di MediaWiki : Sommario generale —— sommario specifico per Lettori, Scrittori, Amministratori, Sviluppatori —— Altre pagine di aiuto (specifiche per questo progetto)

Questa pagina è una traduzione della corrispondente pagina del manuale in inglese di MediaWiki.

Puoi consultare (in inglese) le linee guida del manuale | la Politica editoriale

{{{{{1}}}}}
Other languages:

The canonical form of a full page name is shown in large font as the page header. Another type of canonical form is what is in URLs generated by the system, for this page "Help:Page_name" with an underscore. Alternative names for this page (on most projects) are help:page name, help:Page name, Help:page name and Help:Page name, but not Help:Page Name; the alternative names for this page on this project are the bolded ones. For details, see below.

Terms edit

The terms "full page name" and "full pagename" include the namespace prefix; the terms "page name" and "pagename" are somewhat ambiguous for pages outside the main namespace as they may or may not include the namespace prefix. To avoid ambiguity one can use "full pagename" and "pagename without namespace prefix".

Variables and parser functions edit

  • "{{FULLPAGENAME}}" → "Help:Page name/it" [3]

Converting a page name to canonical form (see also below):

  • "{{FULLPAGENAME::project:abc  def__ghi&j / k}}" gives "Meta:Abc def ghi&j / k" [4] - leading colon is removed, the first letter of the namespace and that of the remaining page name is capitalized (and the generic namespace name is replaced by the actual one), underscores are replaced by spaces, consecutive spaces are replaced by a single one
  • "{{Omid Nezami E:abc:def}}" → "

[1]" [5] - ditto

  • "{{FULLPAGENAME:abc:def:}}" → "Abc:def:" [6] - ditto
  • "{{FULLPAGENAME:help:def}}" → "Help:Def" [7] - since "Help" is a namespace name, the d is also capitalized
  • "{{FULLPAGENAME:ab:cdef}}" → "ab:cdef" [8] - since "ab" is an interwiki prefix it is not capitalized; the rest of the name is not changed because that would depend on the local settings of that wiki
  • "{{FULLPAGENAME:ab:}}" → "ab:" [9] - refers to the main page of the other wiki, returns the same
  • "{{FULLPAGENAME:a[b}}" → "" [10] - if it is not a valid page name the empty string is returned
  • "{{FULLPAGENAME:help:abcdefghijklmnopqrstuvwxyz abcdefghijklmnopqrstuvwxyz abcdefghijklmnopqrstuvwxyz abcdefghijklmnopqrstuvwxyz abcdefghijklmnopqrstuvwxyz abcdefghijklmnopqrstuvwxyz abcdefghijklmnopqrstuvwxyz abcdefghijklmnopqrstuvwxyz abcdefghijklmnopqrstuvwxyz abcdefghijklmnopqrstuvwxyz}}" → "" [11] - ditto (the maximum for the pagename without namespace is 255 bytes)
  • "{{FULLPAGENAME:}}" → "" [12] - ditto
  • "{{FULLPAGENAME:help:}}" → "" [13] - ditto, a namespace name with colon is not a valid page name

With the extra E spaces are replaced by underscores and some characters are percent-encoded, for use in a URL:

  • "{{FULLPAGENAMEE:abcdefghijklmnopqrstuvwxyz~ !"$'()*,-./0123456789:;=?@ABCDEFGHIJKLMNOPQRSTUVWXYZ\^_±×•é}}" → "Abcdefghijklmnopqrstuvwxyz~_!%22$%27()*,-./0123456789:;%3D%3F@ABCDEFGHIJKLMNOPQRSTUVWXYZ%5C%5E_%C2%B1%C3%97%E2%80%A2%C3%A9" [14], compare:
    • "{{urlencode:abcdefghijklmnopqrstuvwxyz~ !"$'()*,-./0123456789:;=?@ABCDEFGHIJKLMNOPQRSTUVWXYZ\^_±×•é}}" → "abcdefghijklmnopqrstuvwxyz%7E+%21%22%24%27%28%29%2A%2C-.%2F0123456789%3A%3B%3D%3F%40ABCDEFGHIJKLMNOPQRSTUVWXYZ%5C%5E_%C2%B1%C3%97%E2%80%A2%C3%A9" [15] (more encodings; space becomes +, underscore is preserved)
    • "{{anchorencode:abcdefghijklmnopqrstuvwxyz~ !"$'()*,-./0123456789:;=?@ABCDEFGHIJKLMNOPQRSTUVWXYZ\^_±×•é}}" → "abcdefghijklmnopqrstuvwxyz~_!"$'()*,-./0123456789:;=?@ABCDEFGHIJKLMNOPQRSTUVWXYZ\^_±×•é" [16]
  • "{{NAMESPACE}}" → "Help" [17]

Extracting the namespace:

  • "{{NAMESPACE:abc:def}}" → "" [18]
  • "{{NAMESPACE:help:def}}" → "Help" [19]
  • "{{NAMESPACE:ab:help:def}}" → "" [20] - empty, would depend on the local settings of the other wiki
  • "{{NAMESPACE:ab:}}" → "" [21] - refers to the main page of the other wiki, returns the same
  • "{{NAMESPACE:help:a[b}}" → "" [22] - if it is not a valid page name the empty string is returned
  • "{{NAMESPACE:}}" → "" [23] - ditto
  • "{{NAMESPACE:help:}}" → "" [24] - ditto, a namespace name with colon is not a valid page name
  • "{{PAGENAME}}" → "Page name/it" [25]

Removing the namespace:

  • "{{PAGENAME:abc:def}}" → "Abc:def" [26]
  • "{{PAGENAME:help:def}}" → "Def" [27]
  • "{{PAGENAME:ab:help:def}}" → "help:def" [28] - removes the interwiki prefix only; removing the namespace would depend on the local settings of the other wiki
  • "{{PAGENAME:help:a[b}}" → "" [29] - if it is not a valid page name the empty string is returned
  • "{{PAGENAMEE:help:abcdefghijklmnopqrstuvwxyz~ !"$'()*,-./0123456789:;=?@ABCDEFGHIJKLMNOPQRSTUVWXYZ\^_±×•é}}" → "Abcdefghijklmnopqrstuvwxyz~_!%22$%27()*,-./0123456789:;%3D%3F@ABCDEFGHIJKLMNOPQRSTUVWXYZ%5C%5E_%C2%B1%C3%97%E2%80%A2%C3%A9" [30]

Removing the namespace, and, for namespaces in which the subpage feature is enabled, going up one level:

  • "{{BASEPAGENAME:a/b/c}}" → "A/b" [31]
  • "{{BASEPAGENAME:Talk:a/b/c}}" → "A/b" [32]*"{{BASEPAGENAME:User:a/b/c}}" → "A/b" [33]*"{{BASEPAGENAME:User talk:a/b/c}}" → "A/b" [34]*"{{BASEPAGENAME:Meta:a/b/c}}" → "A/b" [35]*"{{BASEPAGENAME:Meta talk:a/b/c}}" → "A/b" [36]*"{{BASEPAGENAME:File:a/b/c}}" → "A/b/c" [37]*"{{BASEPAGENAME:File talk:a/b/c}}" → "A/b" [38]*"{{BASEPAGENAME:MediaWiki:a/b/c}}" → "A/b/c" [39]*"{{BASEPAGENAME:MediaWiki talk:a/b/c}}" → "A/b" [40]*"{{BASEPAGENAME:Template:a/b/c}}" → "A/b" [41]*"{{BASEPAGENAME:Template talk:a/b/c}}" → "A/b" [42]*"{{BASEPAGENAME:Help:a/b/c}}" → "A/b" [43]*"{{BASEPAGENAME:Help talk:a/b/c}}" → "A/b" [44]*"{{BASEPAGENAME:Category:a/b/c}}" → "A/b/c" [45]*"{{BASEPAGENAME:Category talk:a/b/c}}" → "A/b" [46]
  • "{{BASEPAGENAME:help:a}}" → "A" [47]
  • "{{BASEPAGENAME:help:a/b/c/d/e/f/g/h/i/j/k/l/m/n/o/p/q/r/s/t/u/v/w/x/y/z/a/b/c/d/e/f/g/h/i/j/k/l/m/n/o/p/q/r/s/t/u/v/w/x/y/z/a/b/c/d/e/f/g/h/i/j/k/l/m/n/o/p/q/r/s/t/u/v/w/x/y/z/a/b/c/d/e/f/g/h/i/j/k/l/m/n/o/p/q/r/s/t/u/v/w/x/y/z/a/b/c/d/e/f/g/h/i/j/k/l/m/n/o/p/q/r/s/t/u/v/w/x}}" → "A/b/c/d/e/f/g/h/i/j/k/l/m/n/o/p/q/r/s/t/u/v/w/x/y/z/a/b/c/d/e/f/g/h/i/j/k/l/m/n/o/p/q/r/s/t/u/v/w/x/y/z/a/b/c/d/e/f/g/h/i/j/k/l/m/n/o/p/q/r/s/t/u/v/w/x/y/z/a/b/c/d/e/f/g/h/i/j/k/l/m/n/o/p/q/r/s/t/u/v/w/x/y/z/a/b/c/d/e/f/g/h/i/j/k/l/m/n/o/p/q/r/s/t/u/v/w" [48] - unlike for #titleparts:, there is no limit for the number of levels
  • "{{BASEPAGENAME:w:a/b}}" → "a" [49] - for other wikis, assume the subpage feature is enabled there
  • "{{BASEPAGENAME:help:a/b[c}}" → "" [50] - if it is not a valid page name the empty string is returned
  • "{{BASEPAGENAMEE:help:abcdefghijklmnopqrstuvwxyz~ !"$'()*,-./0123456789:;=?@ABCDEFGHIJKLMNOPQRSTUVWXYZ\^_±×•é}}" → "Abcdefghijklmnopqrstuvwxyz~_!%22$%27()*,-." [51]

Return the name after the last slash for namespaces in which the subpage feature is enabled, remove only the namespace in other namespaces:

  • "{{SUBPAGENAME:a/b/c}}" → "c" [52]
  • "{{SUBPAGENAME:Talk:a/b/c}}" → "c" [53]*"{{SUBPAGENAME:User:a/b/c}}" → "c" [54]*"{{SUBPAGENAME:User talk:a/b/c}}" → "c" [55]*"{{SUBPAGENAME:Meta:a/b/c}}" → "c" [56]*"{{SUBPAGENAME:Meta talk:a/b/c}}" → "c" [57]*"{{SUBPAGENAME:File:a/b/c}}" → "A/b/c" [58]*"{{SUBPAGENAME:File talk:a/b/c}}" → "c" [59]*"{{SUBPAGENAME:MediaWiki:a/b/c}}" → "A/b/c" [60]*"{{SUBPAGENAME:MediaWiki talk:a/b/c}}" → "c" [61]*"{{SUBPAGENAME:Template:a/b/c}}" → "c" [62]*"{{SUBPAGENAME:Template talk:a/b/c}}" → "c" [63]*"{{SUBPAGENAME:Help:a/b/c}}" → "c" [64]*"{{SUBPAGENAME:Help talk:a/b/c}}" → "c" [65]*"{{SUBPAGENAME:Category:a/b/c}}" → "A/b/c" [66]*"{{SUBPAGENAME:Category talk:a/b/c}}" → "c" [67]
  • "{{SUBPAGENAME:help:a}}" → "A" [68]
  • "{{SUBPAGENAME:help:a/b/c/d/e/f/g/h/i/j/k/l/m/n/o/p/q/r/s/t/u/v/w/x/y/z/a/b/c/d/e/f/g/h/i/j/k/l/m/n/o/p/q/r/s/t/u/v/w/x/y/z/a/b/c/d/e/f/g/h/i/j/k/l/m/n/o/p/q/r/s/t/u/v/w/x/y/z/a/b/c/d/e/f/g/h/i/j/k/l/m/n/o/p/q/r/s/t/u/v/w/x/y/z/a/b/c/d/e/f/g/h/i/j/k/l/m/n/o/p/q/r/s/t/u/v/w/x}}" → "x" [69] - unlike for #titleparts:, there is no limit for the number of levels
  • "{{SUBPAGENAME:w:a/b}}" → "b" [70] - for other wikis, assume the subpage feature is enabled there
  • "{{SUBPAGENAME:help:a/b[c}}" → "" [71] - if it is not a valid page name the empty string is returned
  • "{{SUBPAGENAMEE:help:abcdefghijklmnopqrstuvwxyz~ !"$'()*,-./0123456789:;=?@ABCDEFGHIJKLMNOPQRSTUVWXYZ\^_±×•é}}" → "0123456789:;%3D%3F@ABCDEFGHIJKLMNOPQRSTUVWXYZ%5C%5E_%C2%B1%C3%97%E2%80%A2%C3%A9" [72]

The namespace and title of the associated content page:

  • "{{SUBJECTPAGENAME:help:a b}}" → "Help:A b" [73]
  • "{{SUBJECTPAGENAME:help talk:a b}}" → "Help:A b" [74]
  • "{{SUBJECTPAGENAMEE:help:a b}}" → "Help:A_b" [75]
  • "{{SUBJECTPAGENAMEE:help talk:a b}}" → "Help:A_b" [76]

The namespace and title of the associated talk page:

  • "{{TALKPAGENAME:help:a b}}" → "Help talk:A b" [77]
  • "{{TALKPAGENAME:help talk:a b}}" → "Help talk:A b" [78]
  • "{{TALKPAGENAMEE:help:a b}}" → "Help_talk:A_b" [79]
  • "{{TALKPAGENAMEE:help talk:a b}}" → "Help_talk:A_b" [80]

Page titles containing certain characters, such as single quotes (') or asterisks *, may produce unexpected results when handled with these magic words, e.g. {{PAGEINSCATEGORY:{{PAGENAME}}}}. See bugs 14779, 16474.

Restrictions edit

Special characters edit

The following characters (the configuration is made in $wgLegalTitleChars) are not allowed in page titles:

# < > [ ] | { }

The non-printable characters with values 0 through 31, and the "delete" character 127 in ASCII are also not allowed.

The reasons for disallowing these characters include:

  • [, ], {, }, and | have special meaning within MediaWiki's syntax, which are processed before the pagename is determined. For example, {{tc}} refers to Template:Tc, not a page called {{tc}}, and [[tc]] is a link to page Tc, not a page called [[tc]].

Testing whether a page name is allowed can be done by trying to create a link to it (see also below):

  • "[[a{b]]" → "[[a{b]]" [81]
  • "[[a}b]]" → "[[a}b]]" [82]
  • "[[a[b]]" → "[[a[b]]" [83]
  • "[[a]b]]" → "[[a]b]]" [84]
  • "[[a<b]]" → "[[a<b]]" [85]
  • "[[a>b]]" → "[[a>b]]" [86]
  • "[[a#b]]" → "a#b" [87] (link to anchor b on page a)
  • "[[#b]]" → "#b" [88] (link to anchor b on the current page)
  • "[[a|b]]" → "b" [89] (piped link to page a)
  • "[[a+b]]" → "a+b" [90]
  • "[[a\b]]" → "a\b" [91]
  • "[[a%b]]" → "a%b" [92]
  • "[[a%2f]]" → "a/" [93] (%2f is the code for a slash, therefore a page name containing it is not possible)
  • "[[:/b]]" → "/b" [94] (the page name /b is allowed, but the link requires a colon)
  • "[[.]]" → "[[.]]" [95]
  • "[[..]]" → "[[..]]" [96]
  • "[[a]]" → "a" [97]
  • "[[.a.]]" → ".a." [98]
  • "[[./]]" → "[[./]]" [99]
  • "[[a./]]" → "a./" [100]
  • "[[a_b]]" → "a_b" [101] (underscore and space are equivalent)
  • "[[a  b]]" → "a b" [102] (no consecutive spaces in page names, in links they are ignored)

In the default setup for MediaWiki prior to version 1.8.3., the + character is also not allowed in page titles. It allows '+' by default as of 1.8.3. For older versions, the '+' can be added to $wgLegalTitleChars with

$wgLegalTitleChars .='+';

in LocalSettings.php

The backslash (\) gives problems: depending on where the pagename is used, the backslash may or may not be converted to a slash (/).

See also Wikipedia:Naming_conventions_(technical_restrictions), and the {{DISPLAYTITLE}} magic word.

Forward slash (/) edit

Depending on the namespace and the settings, a forward slash in the pagename provides special functionality: see subpage feature.

Due to the subfeature for linking to a subpage, linking from a namespace where the subpage feature is enabled to a page in the main namespace with a name starting with "/", requires a workaround: put a colon in the link, between "[[" and the pagename.

Namespace prefixes edit

The first part of a page name may not coincide with a generic namespace name with colon that is automatically converted to another prefix. As an example, the name "Project: A-Kon" is not possible, for it will be automatically linked to "Meta:A-Kon".

If the first part of a page name coincides with a namespace prefix that is not converted, this page is in the corresponding namespace, and a space after the colon is automatically removed, so it is not possible to have a page with this name in the main namespace, or to have a space after the colon. For example, an article in the English Wikipedia about the film Help: A Day in the Life has to be called Help:A Day in the Life, and similarly for an article about the book called Wikipedia: The Missing Manual or about a book called Talk: Secrets are Bad. Also, in those cases the pages are in the wrong namespace, which may be inconvenient in searching or displaying a list of pages, and in displaying recent changes or user contributions etc. in a particular namespace. In addition, in the last case there is no link to the Talk page about the article, for the page itself is a Talk page. (As explained above, such names will not work on projects where they are converted into a different name; e.g. in the German Wikipedia the second page name will be converted to "Diskussion:Secrets are Bad".) As a workaround a page title can be prefixed with "&nbsp;", displayed as a blank space.

Prefixes referring to other projects or pseudo-namespaces edit

A page name cannot start with a prefix that is in use to refer to another project, including language codes, e.g. "en:" (see Wikimedia wikis), or one of the pseudo-namespaces "Media:" and "Special:".

Thus e.g. an article about the album "Q: Are We Not Men? A: We Are Devo!" or the movie Species: The Awakening can not have that exact name. Attempts to create the articles, whether by a link or putting a URL in the address bar, leads to Wikiquote or Wikispecies, respectively. Again, as a workaround the title can be prefixed with "&nbsp;", displayed as a blank space.

With regard to using the prefix of the project itself there is no consistency: a name like en:a cannot be used on en: (try w:en:a and w:en:en:a), while "Q: Are We Not Men? A: We Are Devo!" can exist on Wikiquote: q:Q: Are We Not Men? A: We Are Devo!.

Maximum page name length edit

The maximum page name length is 255 bytes (excluding the namespace prefix). Be aware that non-ASCII characters may take up to four bytes in UTF-8 encoding, so the total number of characters you can fit into a title may be less than 255 depending on the language it's in.

This is demonstrated by the error message when using a potential reference to a page with a name of 256 bytes: https://meta.wikimedia.org/wiki/Test_of_maximum_page_name_length:_255_characters;_test_of_maximum_page_name_length:_255_characters;_test_of_maximum_page_name_length:_255_characters;_test_of_maximum_page_name_length:_255_characters;_test_of_maximum_page_name_length:_255_characters;_test12.

The maximum page name length in the File namespace for new uploads is 240 bytes (excluding the namespace prefix). Note that the limit was 255 bytes until late 2011 - see bugzilla:30202. Existing filenames may be up to 255 bytes, but new uploads are restricted to 240.

First character edit

The first character of a page name cannot be a colon (:), space ( ), or underscore (_). A slash gives a mild complication, see above. A percent sign (%) gives complications because depending on what follows in a link, the link may not work or interpret the sign together with some following characters as a code for a character: % and %1 work normally (but perhaps there are complications with such page names), while [[%23]] gives #, [[%234]] gives #4 and [[%2542]] gives [[%2542]] (see also below).

Spaces vs. underscores edit

In page names a blank space is equivalent with an underscore. A blank space is displayed in the large font title at the top of the page, the URLs show an underscore. See also below.

Case-sensitivity edit

If two cases exist for the letters used in a page name, as in the case of letters of the Latin, Greek, Cyrillic, and Armenian alphabets, the following applies.

Namespace prefixes edit

All characters of namespace prefixes are case-insensitive. The canonical#canonical form, shown in large font as page header, and in URLs generated by the system, is often with one capital; exceptions are e.g. MediaWiki and Hilfe Diskussion.

Case-sensitivity of the first character edit

The first character of the page name (after the namespace prefix, if applicable) may or may not be case-sensitive, depending on the project, but in some namespaces it's always case-insensitive, in particular special pages and usernames (see $wgCapitalLinks). [[Help:page name]] gives on this project: Help:page name. If the first character of the page name is case-sensitive this is a link (to a different page), otherwise it is bold (a self link to this page). Any result of Special:Export shows <case>case-sensitive</case> or <case>first-letter</case>, respectively.

On Wikimedia projects currently the first character of the page name is case-insensitive, except in Lojban Wikipedia, Sakizaya Wikipedia, and all Wiktionaries. Compare e.g. wikt:de:A and wikt:de:a.

Where the first character is case-insensitive, the canonical form is with a capital.

Note that this only applies to the first character of the page name. In the case of a "prefix" that is not defined for the software, the case-insensitivity does not apply to the first character after this "prefix", e.g. Template:H:h Help and [[Template:H:H Help]] are distinguished.

Case-sensitivity of the file name extension of an image edit

Note that even the file name extension of an image is case-sensitive: compare image:Stop_sign_us.jpg and image:Stop_sign_us.JPG

Ignored spaces/underscores edit

Spaces/underscores which are ignored:

  • those at the start and end of a full page name
  • those at the end of a namespace prefix, before the colon
  • those after the colon of the namespace prefix
  • duplicate consecutive spaces

Some show up in the link label, e.g. [[___help__ :_ _template_ _]] becomes ___help__ :_ _template_ _, linking to Help:Template.

However, a space before or after a "normal" colon makes a difference, e.g. MediaWiki User's Guide: Editing overview and MediaWiki User's Guide : Editing overview, and MediaWiki User's Guide:Editing overview are all distinguished, because "MediaWiki User's Guide:" is a pseudo-namespace, not a real one.

Coding of characters edit

A page name cannot contain e.g. %41, because that is automatically converted to the character A, for which %41 is the code. [[%41]] is rendered as A. Similarly %C3%80 is automatically converted to the character À. [[%C3%80]] is rendered as À. The URL of the page is http://meta.wikipedia.org/wiki/%C3%80. One can argue what is the real name of the page, %C3%80 or À (a user will say the latter), but anyway there can not be distinct pages with these names.

Canonical form edit

  • "{{FULLPAGENAME::project:abc  def__ghi&j / k}}" gives "Meta:Abc def ghi&j / k" [103] - leading colon is removed, the first letter of the namespace and that of the remaining page name is capitalized (and the generic namespace name is replaced by the actual one), underscores are replaced by spaces, consective spaces are replaced by a single one

The inclusion tag for a non-existing page shows a link with the canonical form of the page name:

Compare with ordinary links:

These work like piped links, e.g. [[Qwsazx|qwsazx]]; in this case the conversion shows up on the referring page only when pointing at it: in the pop-up and in the status bar (if applicable for the browser); whether the target is a redirect, and what the final target is, is not shown at all.

An attempt to include a page from another project results in just displaying the wikitext, e.g. {{en:qwsazx}}; ordinary interwiki links do not show existence and do not show a canonical form in the hover box or status bar: en:project:qwsazx. The same applies if interwiki link style is used for a link to a page in the same project: m:project:qwsazx.

Checking the validity of a page name edit

Checking the validity of a page name:

  • "{{PAGENAME:a[b}}" → "" [110] - if it is not a valid page name the empty string is returned
  • "{{#titleparts:a[b|1|26}}" gives "a[b" [111] - if it is not a valid page name the 26th part (which should be empty as 25 is the maximum) gives the whole string
  • "[[a[b]]" → "[[a[b]]" [112] - if it is not a valid page name no link is produced


Alphabetic order edit

Scorciatoia:
WM:ALPH

The system applies alphabetical order only in page names, namely in the following features:

They are in Unicode order: the range 32-127 corresponds to ASCII. For more information on non-ASCII special characters, see Special characters.

Thus we have the following partial list showing the order:

!"#$%&'()*+,-./0123456789:;<=>?@
ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_'
abcdefghijklmnopqrstuvwxyz{|}~
¡¢£¤¥¦§¨©ª«­®¯°±²³´µ•¸¹º»¼½¾¿
ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖ×ØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿ
ĀāĂ㥹ĆćĈĉĊċČčĎďĐđĒēĔĕĖėĘęĚěĜĝĞğĠġĢģĤĥĦħĨĩĪīĬĭĮįİıIJijĴĵĶķĸĹĺĻļĽľĿŀŁłŃńŅņŇňʼnŊŋ
ŌōŎŏŐőŒœŔŕŖŗŘřŚśŜŝŞşŠšŢţŤťŦŧŨũŪūŬŭŮůŰűŲųŴŵŶŷŸŹźŻżŽžſ
ǺǻǼǽǾǿ΄΅Ά·ΈΉΊΌΎΏΐ
ΑΒΓΔΕΖΗΘΙΚΛΜΝΞΟΠΡΣΤΥΦΧΨΩΪΫάέήίΰ
αβγδεζηθικλμνξοπρςστυφχψωϊϋόύώ

Note in particular that "Z" comes before "a", and "z" before "é". The blank space within a page name is treated as an underscore, and therefore comes after the capitals, and before the lower case letters. However, a "blank space" after the name comes before any character. Sometimes a special character looks like a regular letter, but has a special code anyway.

Thus we have the order PC, PCX, PC Bruno, PCjr, Κύρια Σελίδα.

See also:

Conversion of spaces to underscores etc. edit

There is no feature for just conversion of spaces to underscores and of special characters to escape codes, but there are two features for doing this in combination with something else: localurl (see Help:Variable) and PAGENAMEE.

Most needs for conversion are covered by these, but e.g. in a template one cannot link to a page with a given name {{{1}}} on a project with a different $wgScript.

Variables PAGENAME and PAGENAMEE in URLs edit

{{NAMESPACE}}:{{PAGENAME}} and {{NAMESPACE}}:{{PAGENAMEE}} give for this page Help:Page name/it and Help:Page_name/it, respectively. For a page in the main namespace, the page name is prefixed with a colon.

Example:

http://meta.wikimedia.org/w/index.php?title=Special:Whatlinkshere&target={{NAMESPACE}}:{{PAGENAMEE}}

gives

http://meta.wikimedia.org/w/index.php?title=Special:Whatlinkshere&target=Help:Page_name/it

Within localurl and fullurl, {{PAGENAME}} should be used in the first part (because it is converted by localurl and fullurl), or {{PAGENAMEE}} in the second part:

  • "{{fullurl:Special:Allpages/{{PAGENAME:abcdefghijklmnopqrstuvwxyz~ !"$'()*,-./0123456789:;=?@ABCDEFGHIJKLMNOPQRSTUVWXYZ\^_±×•é}}}}" gives "//meta.wikimedia.org/wiki/Special:Allpages/Abcdefghijklmnopqrstuvwxyz~_!%22$%27()*,-./0123456789:;%3D%3F@ABCDEFGHIJKLMNOPQRSTUVWXYZ%5C%5E_%C2%B1%C3%97%E2%80%A2%C3%A9" [113]
  • "{{fullurl:Special:Allpages|&from={{PAGENAMEE:abcdefghijklmnopqrstuvwxyz~ !"$'()*,-./0123456789:;=?@ABCDEFGHIJKLMNOPQRSTUVWXYZ\^_±×•é}}}}" gives "//meta.wikimedia.org/w/index.php?title=Special:Allpages&&from=Abcdefghijklmnopqrstuvwxyz~_!%22$%27()*,-./0123456789:;%3D%3F@ABCDEFGHIJKLMNOPQRSTUVWXYZ%5C%5E_%C2%B1%C3%97%E2%80%A2%C3%A9" [114]

Wrong:

  • "{{fullurl:Special:Allpages|&from={{PAGENAME:abcdefghijklmnopqrstuvwxyz~ !"$'()*,-./0123456789:;=?@ABCDEFGHIJKLMNOPQRSTUVWXYZ\^_±×•é}}}}" gives "//meta.wikimedia.org/w/index.php?title=Special:Allpages&&from=Abcdefghijklmnopqrstuvwxyz~ !"$'()*,-./0123456789:;=?@ABCDEFGHIJKLMNOPQRSTUVWXYZ\^ ±×•é" [115]

See also edit


Sommario delle pagine di Aiuto - Pagine nel namespace Aiuto su: Meta b: n: w: q: wiktionary

Per i lettori: Vai | Ricerche | URL | Namespace | Nomi delle pagine | Sezioni | Collegamenti | Puntano qui | Piped link | Collegamenti Interwiki | Reindirizzamenti | Variabili | Categorie | Pagine speciali
Seguire i cambiamenti: Ultime modifiche | (avanzate) | Cambiamenti correlati | Segui | Cronologia | Confronti | Contributi utenti | Sommario delle modifiche | Modifiche minori | Modifiche sorvegliate
Login e preferenze: Loggarsi | Preferenze | Stile Utente
Editing: Modifica | Nuova pagina | Immagini/file | Pagina delle immagini | Caratteri speciali | Formule | Tabelle | EasyTimeline | Template | Rinominare (muovere) una pagina | Scorciatoie modifiche | Pagine discussioni | Prove || mod_corr_meta |
Altri progetti: Wikibooks | Wikinews | Wikipedia | Wikiquote | Wiktionary
modifica questo piè di pagina

Other languages:

Conversion of spaces to underscores and of special characters to escape codes edit

There is no feature for just conversion of spaces to underscores and of special characters to escape codes, but there are two features for doing this in combination with something else: localurl (see Help:Variable) and PAGENAMEE.

Most needs for conversion are covered by these, but e.g. in a template one cannot link to a page with a given name {{{1}}} on a project with a different $wgScript.

Variables PAGENAME and PAGENAMEE edit

The variable {{PAGENAME}} gives, for this page, Page name/it. {{PAGENAMEE}} gives Page_name/it.

Thus in the first case a space is used, in the second case an underscore, like in URLs. Similarly, À becomes the escape code %C3%80 (see above), and so on.

{{NAMESPACE}}:{{PAGENAME}} and {{NAMESPACE}}:{{PAGENAMEE}} give for this page Help:Page name/it and Help:Page_name/it, respectively. For a page in the main namespace, the page name is prefixed with a colon.

Example:

http://meta.wikimedia.org/w/wiki.phtml?title=Special:Whatlinkshere&target={{NAMESPACE}}:{{PAGENAMEE}}

gives

http://meta.wikimedia.org/w/wiki.phtml?title=Special:Whatlinkshere&target=Help:Page_name/it

Within localurl, {{PAGENAME}} should be used in the first part (because it is converted by localurl), or {{PAGENAMEE}} in the second part:

  • {{SERVER}}{{localurl:Special:Allpages|namespace=12&from={{PAGENAMEE}}}} gives here:

//meta.wikimedia.org/w/index.php?title=Special:Allpages&namespace=12&from=Page_name/it

  • {{SERVER}}{{localurl:Special:Allpages/{{PAGENAME}}|namespace=12}} gives here:

//meta.wikimedia.org/w/index.php?title=Special:Allpages/Page_name/it&namespace=12

Wrong:

  • {{SERVER}}{{localurl:Special:Allpages|namespace=12&from={{PAGENAME}}}} gives here:

//meta.wikimedia.org/w/index.php?title=Special:Allpages&namespace=12&from=Page name/it (wrong link)

  • {{SERVER}}{{localurl:Special:Allpages/{{PAGENAMEE}}|namespace=12}} gives here:

//meta.wikimedia.org/w/index.php?title=Special:Allpages/Page_name/it&namespace=12 (works here, the underscore, converted from a space, is not affected by the second conversion, but it does not work with special characters).

See Help:ĀāĆćĎďĒēĜĝĤĥĨĩĴĵĹĺŃń and PAGENAMEE for an example of how these variables interact with special characters.

See also edit


Sommario delle pagine di Aiuto - Pagine nel namespace Aiuto su: Meta b: n: w: q: wiktionary

Per i lettori: Vai | Ricerche | URL | Namespace | Nomi delle pagine | Sezioni | Collegamenti | Puntano qui | Piped link | Collegamenti Interwiki | Reindirizzamenti | Variabili | Categorie | Pagine speciali
Seguire i cambiamenti: Ultime modifiche | (avanzate) | Cambiamenti correlati | Segui | Cronologia | Confronti | Contributi utenti | Sommario delle modifiche | Modifiche minori | Modifiche sorvegliate
Login e preferenze: Loggarsi | Preferenze | Stile Utente
Editing: Modifica | Nuova pagina | Immagini/file | Pagina delle immagini | Caratteri speciali | Formule | Tabelle | EasyTimeline | Template | Rinominare (muovere) una pagina | Scorciatoie modifiche | Pagine discussioni | Prove || mod_corr_meta |
Altri progetti: Wikibooks | Wikinews | Wikipedia | Wikiquote | Wiktionary
modifica questo piè di pagina

Other languages:
  1. Omid Nezami