Template:User stats: Difference between revisions

From Hidden Palace
Jump to navigation Jump to search
(Use variables)
(Fix formatting)
(13 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{#vardefine:article_count|{{#ask:[[Page creator::User:{{{1}}}]]|format=count}}}}
<includeonly>{{
{{#vardefine:edit_count{{#ask:[[User:{{{1}}}]]|?User edit count#-=|format=list|mainlabel=-}}}}
#vardefine:article_count|{{#ask:[[Page creator::User:{{{1}}}]]|format=count}}
}}{{
#vardefine:edit_count|{{formatnum:{{#show: User:{{{1}}} |?User edit count|default=0}}|R}}
}}{{
#vardefine:release_count|{{#ask:[[Was released by::{{{1}}}]]|format=count}}
}}{{#vardefine:dump_count|{{#ask:[[Was dumped by::{{{1}}}]]|format=count}}
}}{{
#ifexpr: {{#var:edit_count}} > 0  | {{{1}}} has contributed {{plural|{{formatnum:{{#var:edit_count}}}}|prototype}} edits and {{plural|{{formatnum:{{#var:article_count}}}}|prototype}} articles. |
}}
 
{{#ifexpr: {{#var:release_count}} > 0 or {{#var:dump_count}} > 0 |
== Prototypes ==
|}}
{{#ifexpr: {{#var:release_count}} > 0 |
 
{{{1}}} has released {{plural|{{formatnum:{{#var:release_count}}}}|prototype}}.
{{#ask:
[[Was released by::{{{1}}}]]  
|?Has build date=Date
|?Has system=System
|limit=1000
}}
|}}
 
{{#ifexpr: {{#var:dump_count}} > 0 |
{{{1}}} has dumped {{plural|{{formatnum:{{#var:dump_count}}}}|prototype}}.
{{#ask:
[[Was dumped by::{{{1}}}]]
|?Has build date=Date
|?Has system=System
|limit=1000
}}
|}}


{{#if: {{#var:edit_count}} | {{{1}}} has contributed {{#var:edit_count}} edits and {{#var:article_count}} articles. |}}


{{#if: {{#var:edit_count}} |
{{#ifexpr: {{#var:edit_count}} > 0 |
== Latest articles ==
== Latest articles ==
{{#ask:
{{#ask:
Line 19: Line 50:
{{Special:Contributions/{{{1}}}|limit=20}}
{{Special:Contributions/{{{1}}}|limit=20}}
|}}
|}}
</includeonly>

Revision as of 16:46, August 4, 2021