Template:User points: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
<includeonly>{{# | <noinclude> | ||
-->{{# | |||
-->{{# | <pre> | ||
{{User points | |||
|User=(default={{BASEPAGENAME}}) | |||
|Creations= | |||
|Edits= | |||
|Contributors= | |||
}} | |||
</pre> | |||
{{User points}} | |||
</noinclude> | |||
<includeonly>{{#vardefineecho:pagecreations|{{{Creations|{{#ask:[[Page creator::User:{{{User|{{BASEPAGENAME}}}}}]] |format=count}} }}} }}<!-- | |||
-->{{#vardefineecho:pageedits|{{#expr: {{{Edits|{{formatnum:{{#show: User:{{{User|{{BASEPAGENAME}}}}}|?User edit count|default=0}}|R}} }}} / 10}} }}<!-- | |||
-->{{#vardefineecho:pagecontributors|{{{Contributors|{{#ask:[[Page creator::User:{{{User|{{BASEPAGENAME}}}}}]] [[Page author::!User:{{{User|{{BASEPAGENAME}}}}}]] |format=count}} }}} }}<!-- | |||
// counting contributions from other users on your pages | // counting contributions from other users on your pages | ||
// currently each unique contributor adds counts for how many pages of yours they have edited | // currently each unique contributor adds counts for how many pages of yours they have edited | ||
-->{{#cadefine:$alleditors|{{#ask:[[Page creator::User:{{BASEPAGENAME}}]] [[Page author::!User:{{BASEPAGENAME}}]] | -->{{#cadefine:$alleditors|{{#ask:[[Page creator::User:{{{User|{{BASEPAGENAME}}}}}]] [[Page author::!User:{{{User|{{BASEPAGENAME}}}}}]] | ||
|?Page author= |format=array | |?Page author= |format=array | ||
|link=none | |link=none | ||
| Line 12: | Line 26: | ||
-->{{#vardefine:contributorcounts|0}}<!-- | -->{{#vardefine:contributorcounts|0}}<!-- | ||
-->{{#camap:$alleditors|@@@ | -->{{#camap:$alleditors|@@@ | ||
|{{#ifeq: @@@|User:{{BASEPAGENAME}}||{{#vardefine:contributorcounts| {{#expr:{{#var:contributorcounts}}+1}} }} }} | |{{#ifeq: @@@|User:{{{User|{{BASEPAGENAME}}}}}||{{#vardefine:contributorcounts| {{#expr:{{#var:contributorcounts}}+1}} }} }} | ||
||}}<!-- | ||}}<!-- | ||
// old counter (doesnt work in MW1.35) | // old counter (doesnt work in MW1.35) | ||
{{#vardefine:contributorcounts|{{#ask:[[Page creator::User:{{BASEPAGENAME}}]] [[Page author::!User:{{BASEPAGENAME}}]] | {{#vardefine:contributorcounts|{{#ask:[[Page creator::User:{{{User|{{BASEPAGENAME}}}}}]] [[Page author::!User:{{{User|{{BASEPAGENAME}}}}}]] | ||
|?Page author |format=valuerank | |?Page author |format=valuerank | ||
|link=none | |link=none | ||
| Line 144: | Line 158: | ||
}} | }} | ||
--> | --> | ||
{{#set:User points={{#var: finalpoints}} }}</includeonly | {{#set:User points={{#var: finalpoints}} }}</includeonly> | ||
Revision as of 20:12, 25 February 2021
{{User points
|User=(default={{BASEPAGENAME}})
|Creations=
|Edits=
|Contributors=
}}
000
User points - User Level:
White: Tier 1
(0 Wiki Points)