User:UBX/LiveEditCounter
{{userbox
| id = 30px
{{formatnum:{{{1|N}}}}}+
| id-s = {{#expr: -7.75 * ln ( 0.08 * {{#invoke:String|len|s={{{1|N+}}}}} ) }}
| id-op = {{#ifexpr: {{#invoke:String|len|s={{{1|N}}}}} >= 5 | font-weight:normal;}} line-height:{{#expr:({{#invoke:String|len|s={{{1|N}}}}}+5)/6}}em; border-right: 1px solid #999;
| info = This user has made {{plain link|url=//tools.wmflabs.org/xtools/pcount/index.php?name={{urlencode:{{BASEPAGENAME}}}}&lang=en&wiki=wikipedia|name={{formatnum:{{{1|N}}}}}+ edits}} {{nowrap|to Wikipedia}}.
| info-c = Gold
| info-class = plainlinks
}}
This template has two main features:
- It adjusts the font size of the number displayed, so it will fit into the default 45px-wide standard userbox "id" field;
- It will automatically display the updated edit count for users who install the accompanying script (optional; original concept by User:Henrik).
- :To install the script, add
importScript('User:UBX/LiveEditCounter.js');
to your script page.
Category:Wikipedia editing-related user templates
}}