MediaWiki:G-characters-left/qqq

From translatewiki.net
Jump to navigation Jump to search

Used on Special:GiveGift to visually indicate to users who have JavaScript enabled the amount of characters available for the custom message, which can be no longer than 255 characters. Because this countdown uses JavaScript, it is not shown to users who have JavaScript disabled. Regardless, validation is done server-side so nobody is able to try to send a message longer than 255 characters. Parameters:

  • $1 is a HTML <span> element, not a number! This element's value is dynamically calculated at runtime by JavaScript (in /extensions/SocialProfile/UserGifts/resources/js/UserGifts.js), and hence it's not a number we can use for PLURAL etc.; thus PLURAL is not available for this message. See also Fanbox-charsleft ("(you have $1 characters left)").