Jump to content

Topic on Extension talk:Contribution Scores

Unrecognised punctuation character

2
Peachey88 (Flood) (talkcontribs)
* {{PLURAL:{{#cscore:SomeUser|changes}}|change|changes}} (should return "change" if user has 1 edit)
* {{#ifeq:{{#cscore:SomeUser|changes}}|1|change|changes}} (should return "change" if user has 1 edit)
* {{#ifexpr: {{#cscore:SomeUser|changes}} > 2 | 2+ | 0 or 1 }}

The output of #cscore cannot be used for further parsing.

Neoshinji (talkcontribs)

To add further parsing you should modify the last line of the file ContributionScores.php

return $parser->insertStripItem($output, $parser->mStripState);

TO

return $output;	

Naturally it is not a secure or good solution if you want to use this extension, but if your purpose is to use the additional parsing then it is enough.

Reply to "Unrecognised punctuation character"