Jump to content

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]

Text in excerpts is not counted

[edit]

Hi, and thanks for a great tool! I just realized that if Module:Excerpt is used in an article, the words in the transcluded text are not counted. Can this be fixed? Or should it be documented as a limitation? Sorry if this is a pain - I could wave a magic wand and make all excerpts go away, but we seem to be stuck with them as excerpts have some big fans. Clayoquot (talk | contribs) 19:52, 29 October 2024 (UTC)[reply]

Thanks for this. I just tried to fix this but found a bug in the Module:Excerpt!! See Module talk:Excerpt. —Caorongjin 💬 21:47, 29 October 2024 (UTC)[reply]
Thanks for trying, I really appreciate it! Clayoquot (talk | contribs) 22:43, 29 October 2024 (UTC)[reply]