Extension talk:Counter

From mediawiki.org
Jump to navigation Jump to search


I 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! -- 19:11, 17 August 2010 (UTC)[reply]

Same here on MW 1.19. Removing the pipe "fixes" the problem but of course that's not what I want.-- 17:19, 27 July 2012 (UTC)[reply]
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.-- 17:24, 27 July 2012 (UTC)[reply]

Updated to work with modern MediaWiki[edit]

This 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)[reply]