User talk:Caorongjin/wordcount.js

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia

Why skin-limited[edit]

if($.inArray(mw.config.get('skin'), ['vector' , 'monobook' ]) === -1){
		return;
	}

I get that Dr_Pda's original included this, but is there a reason not to allow for other skins? It seems to work just fine on modern, so while I can just easily copy this and remove that line it seems silly if there's no need. ~ Amory (utc) 02:28, 23 February 2018 (UTC)[reply]

Ping Caorongjin 'cause I forgot that above ~ Amory (utc) 02:31, 23 February 2018 (UTC)[reply]
Amorymeltzer, good question. Removed. (Sorry for the late response… didn't get notified for some reason!) --Caorongjin (talk) 08:56, 15 November 2019 (UTC)[reply]

Character count[edit]

Thank you for this handy script! Is there a way to adapt it to count characters instead of words? Vadim Galimov (talk) 16:54, 5 November 2020 (UTC)[reply]

Hi there @Vadim Galimov: That's an interesting question. I'm not sure what the use case would be for something like that. I wrote the script specifically to deal with University assignments that need to be graded, and have certain word count requirements. I presume that you want to count all non-whitespace characters (like most word processors), or are you speaking about every single character? --Caorongjin (talk) 21:09, 5 November 2020 (UTC)[reply]
Yes, the former. My thought was that it could be useful in more precisely gauging the volume of an article to prevent bloating (the English-language guidelines indeed suggest assessing articles by weight in kB, but the Russian ones, for instance, are character count-based). Vadim Galimov (talk) 09:33, 6 November 2020 (UTC)[reply]

Not working with new Vector?[edit]

Hello! I have seen that currently the word count only counts titles, references and things in bullet points. Is a problem with the new Vector? Thanks! Theklan (talk) 23:40, 7 January 2024 (UTC)[reply]

Thanks for pointing that out! Should be fixed now. —Caorongjin 💬 08:58, 8 January 2024 (UTC)[reply]