Wsadmin
Joined 12 January 2021
No edit summary |
No edit summary |
||
| (62 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
=== <nowiki>{{User points}}</nowiki> === | |||
{{User points}} | {{User points}} | ||
=== Simple query, with format=table === | |||
{{#ask: [[User:+]] [[User edit count:: > 0]] | {{#ask: [[User:+]] [[User edit count:: > 0]] | ||
|?User edit count | |?User edit count | ||
| Line 8: | Line 10: | ||
}} | }} | ||
{{#ask: [[User:+]] [[User edit count:: > 0]] | === Advanced query, with table compatibility === | ||
{| class="wikitable" style="max-width:500;" | |||
! User | |||
! Score | |||
! Contributions | |||
{{#ask: [[User:+]] [[User edit count:: > 0]] [[!User:Wsadmin]] [[!User:N8 Bot]] [[!User:New user message]] | |||
|?User edit count | |||
|sort=User edit count | |||
|order=desc | |||
|format=plainlist | |||
|template=Show user with user points in table | |||
|link=none | |||
}} | |||
|} | |||
{{#ask: [[User:La Danse Macabre]] | |||
|format=table | |||
}} | |||
=== Advanced query, with format=plainlist; template=Show user with user points === | |||
{{#ask: [[User:+]] [[User edit count:: > 0]] [[!User:New_user_message]] [[!User:New_user_message]] | |||
|?User edit count | |?User edit count | ||
|sort=User edit count | |sort=User edit count | ||
| Line 16: | Line 40: | ||
|link=none | |link=none | ||
}} | }} | ||
<br>creations:{{#vardefineecho:pagecreations|{{#ask:[[Page creator::User:{{BASEPAGENAME}}]] |format=count}}}} | |||
<br>edits:{{#vardefineecho:pageedits|{{#expr: {{formatnum:{{#show: User:{{BASEPAGENAME}} |?User edit count}}|R}} / 10}}}}<!-- | |||
-->{{#cadefine:$alleditors|{{#ask:[[Page creator::User:{{BASEPAGENAME}}]] [[Page author::!User:{{BASEPAGENAME}}]] | |||
|?Page author= |format=array | |||
|link=none | |||
|mainlabel=- | |||
|limit=999 | |||
}} }}<!-- | |||
-->{{#vardefine:contributorpoints1|0}}<!-- | |||
-->{{#camap:$alleditors|@@@|{{#ifeq: @@@|User:{{BASEPAGENAME}}||{{#vardefine:contributorpoints1|{{#expr:{{#var:contributorpoints1}}+1}} }} }}||}}<!-- | |||
--><br>contributor counts 1 (each unique contributor adds counts for how many pages of yours they have edited):{{#var:contributorpoints1}}<!-- | |||
-->{{#caunique:$alleditors}}<!-- | |||
-->{{#cadefine:$user|User:{{BASEPAGENAME}}}}<!-- | |||
-->{{#cadiff:$editors|$alleditors|$user}}<!-- | |||
--><br>contributor counts 2 (each unique contributor counts only once):{{#vardefineecho:contributorpoints2|{{#casize:$editors|top}} }} | |||
<br>{{#vardefineecho:creationpoints |{{#expr: {{#var: pagecreations}} * 20}}}} | |||
<br>{{#vardefineecho:editpoints |{{#expr: trunc {{#var: pageedits}} * 5}}}} | |||
<br>{{#vardefineecho:contributorpoints |{{#expr: {{#var:contributorpoints1}}*5}}}} | |||
<br>{{#vardefineecho:finalpoints|{{#expr: {{#var: creationpoints}} + {{#var: editpoints}} + {{#var: contributorpoints}} }}}} | |||
other user edit | |||