User "Catrope" posted a comment on MediaWiki.r98614.
Full URL: http://www.mediawiki.org/wiki/Special:Code/MediaWiki/98614#c23596
Commit summary:
Created EXAMPLE_TOKEN which replaces all tokens in api examples and also looks
like a real token,
I think it save a work of many tool developing people since I myself had
troubles understanding
how real token looks from the api.php descriptions (previous example also
contained some charactes
which would hardly be inside the string, token is always lower case)
Comment:
You don't have to append it yourself. I guess my wording wasn't very clear.
Tokens consist of 32 lowercase hexadecimal characters, followed by a plus and a
backslash. Or as a regex: <code>/[0-9a-f]{32}\+\\/</code> . So if you want
example tokens to be realistic, you should also include the +\ part.
_______________________________________________
MediaWiki-CodeReview mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-codereview