Difference between revisions of "Template:User stats"

From Hidden Palace
Jump to navigation Jump to search
(Testing)
Line 1: Line 1:
 
<includeonly>{{#vardefine:article_count|{{#ask:[[Page creator::User:{{{1}}}]]|format=count}}}} {{#vardefine:edit_count|{{#ask:[[User:{{{1}}}]]|?User edit count#-=|format=list|mainlabel=-}}}} {{#vardefine:release_count|{{#ask:[[Was released by::{{{1}}}]]|format=count}}}}
 
<includeonly>{{#vardefine:article_count|{{#ask:[[Page creator::User:{{{1}}}]]|format=count}}}} {{#vardefine:edit_count|{{#ask:[[User:{{{1}}}]]|?User edit count#-=|format=list|mainlabel=-}}}} {{#vardefine:release_count|{{#ask:[[Was released by::{{{1}}}]]|format=count}}}}
{{#if: {{#var:edit_count}} | {{{1}}} has contributed {{#var:edit_count}} edits and {{#var:article_count}} articles. |}}
+
{{#vardefine:dump_count|{{#ask:[[Was dumped by::{{{1}}}]]|format=count}}}}
 +
{{#if: {{#var:edit_count}} | {{{1}}} has contributed {{plural|{{#var:edit_count}}|prototype}} edits and {{plural|{{#var:article_count}}|prototype}} articles. |}}
  
 +
{{#ifexpr: {{#var:release_count}} > 0 or {{#var:dump_count}} > 0 |
 +
== Prototypes ==
 +
|}}
 
{{#ifexpr: {{#var:release_count}} > 0 |
 
{{#ifexpr: {{#var:release_count}} > 0 |
== Prototypes ==
+
 
{{{1}}} has released {{#var:release_count}} prototypes.
+
{{{1}}} has released {{plural|{{#var:release_count}}|prototype}}.
 
{{#ask:
 
{{#ask:
 
  [[Was released by::{{{1}}}]]  
 
  [[Was released by::{{{1}}}]]  
Line 12: Line 16:
 
}}
 
}}
 
|}}
 
|}}
 +
 +
{{#ifexpr: {{#var:dump_count}} > 0 |
 +
{{{1}}} has dumped {{plural|{{#var:dump_count}}|prototype}}.
 +
{{#ask:
 +
[[Was dumped by::{{{1}}}]]
 +
|?Has build date=Date
 +
|?Has system=System
 +
|limit=1000
 +
}}
 +
|}}
 +
  
 
{{#if: {{#var:edit_count}} |
 
{{#if: {{#var:edit_count}} |

Revision as of 17:04, July 24, 2021