FANDOM allows hyphens in wiki subdomains. Why then, can't Miraheze allow them for technical reasons? I'm pretty sure it wouldn't be that hard to add support for hyphens in wiki subdomains.
Description
Event Timeline
Actually it is fairly hard since Miraheze uses databases equal to the subdomain so I'm not sure if this is really possible. I'm not really 100% sure but it might be possible to achieve this if we changed the method for databses so hyphenated subdomains will be wiki_database which may be possible, but I'll have to see with @John first. I also could be completely wrong about the reasons for technical limitation.
Concern I have here would be mainly technical, since the subdomain forms the database name. Assuming @John sees no possible technical issues with - or _ in subdomains/database names, then this reasonable, though I do wonder whether this is really needed. After all, there's plenty of available alphanumeric database/subdomain combinations available, and custom domains can be used where not.
Another potential concern I have is users, not realizing their wiki has been created, may request a duplicate wiki with a - or _ in the subdomain/database name, which could then be created, whereas currently, CreateWiki would say that the wiki database name already exists (which is ideal)
The lack of support for this is because of limitations with MySQL. Hyphens can be used in URLs if requested similar to a custom domain, however the wiki identifier can not contain a hyphen.
Could it not be if it were to be put in addQuotes()?
- Permitted characters in unquoted identifiers:
- ASCII: [0-9,a-z,A-Z$_] (basic Latin letters, digits 0-9, dollar, underscore)
- Extended: U+0080 .. U+FFFF
- Permitted characters in quoted identifiers include the full Unicode Basic Multilingual Plane (BMP), except U+0000:
- ASCII: U+0001 .. U+007F
- Extended: U+0080 .. U+FFFF
- ASCII NUL (U+0000) and supplementary characters (U+10000 and higher) are not permitted in quoted or unquoted identifiers.
- Identifiers may begin with a digit but unless quoted may not consist solely of digits.
- Database, table, and column names cannot end with space characters.
Would require changes to MediaWiki, we tried to use hyphens on the past and MediaWiki itself didn’t have the appropriate support
@Tali64 Workaround could be for you to select a subdomain containing alphanumeric characters only, no special characters, then request a custom domain. You can Google Freenom, which provides free domains, if you aren't able to pay for a domain.