Extension talk:Counter
Latest comment: 4 years ago by 2001:16B8:2250:5C00:EC65:F49A:6CB7:2095 in topic Updated to work with modern MediaWiki
Bug
editI do not get the syntax
number of persons: {{#+: ? | person}}
working on MediaWiki 1.13.4. It just always renders to
?
Can someone confirm this (even for an actual release)? Thanks! --83.171.168.17 19:11, 17 August 2010 (UTC)
- Same here on MW 1.19. Removing the pipe "fixes" the problem but of course that's not what I want.--217.88.234.5 17:19, 27 July 2012 (UTC)
- Apparently this only works if there is an actual non-empty string between the "?" and the "|" character. Maybe it's enough to just put a protected space there instead of a normal space.--217.88.234.5 17:24, 27 July 2012 (UTC)
- Same here on MW 1.19. Removing the pipe "fixes" the problem but of course that's not what I want.--217.88.234.5 17:19, 27 July 2012 (UTC)
Updated to work with modern MediaWiki
editThis extension broke sometime after MediaWiki 1.30.
I updated it to work with MediaWiki 1.34. I removed the "counting words" (a, an...) function though, as I personally don't need it and since it's not even localized, so it's not universally useful.
I have put the updated version here: github.com/sagamusix/MediaWiki-Counter
Note that it's very rudimentary and just doing the minimum to get it working, as I'm not really an active PHP or MediaWiki extension developer. 2001:16B8:2250:5C00:EC65:F49A:6CB7:2095 18:29, 24 August 2020 (UTC)