Hi everyone,
I have written a Wikipedia bot. It obviously does a fair amount of work with strings. I'd like to know what are MediaWiki's or Wikipedia's limits for the size of these strings. For example, I have found documentation that states that edit summaries are limited to 200 characters. (I'm not sure if that includes a terminating zero or not). Where can I find the maximum size for:
URL page title page content (wikitext and HTML versions) HTTP response from server edit token login token username etc.
Richard
2011/3/23 richardcavell@mail.com:
URL
This is fairly high, but I'm not sure just how high. If you're concerned your query strings will get cut off, use POST instead of GET.
page title
255 bytes (MediaWiki-enforced limit). This does NOT include the namespace prefix
page content (wikitext and HTML versions)
The wikitext limit is configurable. On Wikipedia this is 2000 KB. There is no limit on the HTML size.
HTTP response from server
No limit.
edit token login token
Always the same length, don't recall the exact number offhand. We may make it longer without announcement if needed, though.
username
255 bytes, as usernames are also titles.
Roan Kattouw (Catrope)
Roan Kattouw wrote:
2011/3/23:
URL
This is fairly high, but I'm not sure just how high. If you're concerned your query strings will get cut off, use POST instead of GET.
page title
255 bytes (MediaWiki-enforced limit). This does NOT include the namespace prefix
page content (wikitext and HTML versions)
The wikitext limit is configurable. On Wikipedia this is 2000 KB.
Except a few old pages that are longer.
HTTP response from server
No limit.
edit token login token
Always the same length, don't recall the exact number offhand. We may make it longer without announcement if needed, though.
They are currently 34 characters for logged in users.
username
255 bytes, as usernames are also titles.
mediawiki-api@lists.wikimedia.org