0

I want to use the output of {{Special:Editcount/User}} in #expr to calculate something. But of course the output is handled as a string, even if I split it into its figures with #sub. So how can I make it being recognized as int? Any idea?

Vincent Doba
  • 4,343
  • 3
  • 22
  • 42

2 Answers2

0

Try {{formatnum|{{Special:Editcount/<user>}}|R}} (docs).

Tgr
  • 27,442
  • 12
  • 81
  • 118
0

You cannot do that, because embedded special pages such as {{Special:Editcount}} are filled out at load time, after the Wikitext has already been parsed. In order to parse such content you will need runtime JavaScript.

Noam
  • 1,317
  • 5
  • 16