Wikia

Community Central

Editcount: prevent insertion of HTML paragraph tags like on Wikia

97,220pages on
this wiki

Forum page

This Forum has been archived

Visit the new Forums
Forums: Index Community Central Forum Editcount: prevent insertion of HTML paragraph tags like on Wikia
Wikia's forums are a place for the community to help other members.
To contact staff directly or to report bugs, please use Special:Contact.
Note: This topic has been unedited for 1647 days. It is considered archived - the discussion is over. Do not add to unless it really needs a response.

I installed the latest revision (MW1.15-r48711) of Extension:Editcount on a couple of wikis I run and found that the syntax

{{Special:Editcount/Username}}

where Username is the username, produces the paragraph-enclosed output

<p>NumberOfEdits
</p>

instead of simply

NumberOfEdits

as is the case with the same syntax on Wikia, which also uses this extension. How do I prevent those HTML paragraph tags from being created?

Lowellian (reply) 23:19, May 21, 2010 (UTC)

This is a known bug with MediaWiki, see [1]. --Pcj (TC) 05:21, May 22, 2010 (UTC)
Thanks. Why doesn't it affect Wikia, which also uses MediaWiki? —Lowellian (reply) 14:32, May 23, 2010 (UTC)
Probably because Wikia Staff has fixed it, while with MediaWiki you have to wait until a new release. Mark (talk) 17:29, May 23, 2010 (UTC)
Okay. Does anyone have any instructions for how to modify MediaWiki to fix it? This seems something fairly simple that would require only a minor one-line fix to some PHP file. —Lowellian (reply) 17:41, May 23, 2010 (UTC)
There's a patch at http://bug-attachment.wikimedia.org/attachment.cgi?id=7271 --Pcj (TC) 18:44, May 23, 2010 (UTC)

This still leaves a bug with the extension, however: one can not include {{Special:Editcount/user}} in an {{#expr:}} expression. I really don't understand why, either, given it seems to output an exact value. Anyone have any ideas? ~ Michael von Preußen (voicemail)

Well, possibly because #expr doesn't recognize the , that Editcount outputs? (Notably you can't remove the comma with StringFunctions either so it doesn't seem to be ParserFunction-friendly) --Pcj (TC) 02:53, June 5, 2010 (UTC)
Mmhm, I initially thought it was the comma, but {{formatnum:{{Special:EditCount/Username}}|R}} doesn't remove the comma, and even odder, {{formatnum:{{Special:EditCount/Username}}}} outputs UNIQ71ce711.746bf67f9-item-10--QINU. The (logical) way to fix it would be to force the {{Special:EditCount/Username}}to output its value before one attempts to run the formatnum parser, but the only way I can think of doing that would be via substitution, which sort of defeats the whole purpose. ~ Michael von Preußen (voicemail)

Around Wikia's network

Random Wiki