Hilfe:Schlechter Titel
Appearance
| Hinweis: Wenn Du diese Seite bearbeitest, stimmst Du zu, dass Dein Beitrag unter der [CC0] veröffentlicht wird. Mehr Informationen findest du auf der Public Domain Hilfeseite. |
Some page titles are defined as bad for various reasons. Du kannst Seiten mit diesen Titeln nicht erstellen.
For details of what constitutes a bad title, see Handbuch:Seitentitel, the regex section, or Title.php.
For reference here is an example of a horrible, but valid title:
- Some¬`!"£$^&*()_+-=~?/.,;:'@
Sachen, die du nicht in Titeln verwenden kannst:
- The following standard CGI chars are not good:
- https://www.mediawiki.org/wiki/Some%s — Sehr schlecht!
- The following standard wiki syntax seems to work:
- https://www.mediawiki.org/wiki/Some%sSome[s — wird geschnitten
- https://www.mediawiki.org/wiki/Some%sSome]s — wird geschnitten
- https://www.mediawiki.org/wiki/Some%sSome{s — schlecht
- https://www.mediawiki.org/wiki/Some%sSome}s — schlecht
- and some just don't work:
- https://www.mediawiki.org/wiki/Some%sSome#s — wird geschnitten
- and some HTML like constructs are very bad, and can't be shown here because they break page formatting:
- https://www.mediawiki.org/wiki/Some%sSome<s — schlecht
- https://www.mediawiki.org/wiki/Some%sSome>s — schlecht
HTTP-Codes
These vary according to the version number of the software:
- 400 (Bad Request) for v1.19.1 and above
- 200 (OK) for v1.16.4 and earlier
Regex
Relatively simple PCRE2 regex for many invalid characters and sequences in titles. Note that this does not pick up everything that could be wrong with titles.
# Matching titles will be held as illegal.
$rxTc = '/' .
# Any character not allowed is forbidden.
'[^ %!"$&\'()*,\-.\/0-9:;=?@A-Z\\\\^_`a-z~\x80-\x{10FFFF}+]' .
# Non-ASCII whitespace, Unicode bidi override characters, the replacement character and noncharacters.
'|[\xA0\x{1680}\x{180E}\x{2000}-\x{200A}\x{200E}\x{200F}\x{2028}-\x{202F}\x{205F}\x{3000}\x{FFFD}\p{Noncharacter Code Point}]' .
# Starting whitespace/colon or an empty title.
'|\A(?:[ :]|\Z)' .
# Double/closing whitespace.
'| (?: |\Z)' .
# URL percent encoding sequences interfere with the ability to round-trip titles, you can't link to them consistently.
'|%[0-9A-Fa-f]{2}' .
# XML/HTML character references produce similar issues.
'|&[A-Za-z0-9\x80-\x{10FFFF}]+;' .
# Pages with "/./" or "/../" appearing in the URLs will often be unreachable due to the way web browsers deal with 'relative' URLs. Also, they conflict with subpage syntax. Forbid them explicitly.
'|(?:\A|\/)\.\.?(?:\/|\Z)' .
# Magic tilde sequences.
'|~{3}' .
'/u';