Template:User points: Difference between revisions

From [N8]
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 33: Line 33:
-->{{#vardefine:contributorpoints |{{#expr: {{#var:contributorcounts}}*5}}}}<!--
-->{{#vardefine:contributorpoints |{{#expr: {{#var:contributorcounts}}*5}}}}<!--


-->{{#ifexpr: {{#var: finalpoints}} < 2000 | <div class="userpoints_white">
-->{{#ifexpr: {{#var: finalpoints}} < 2000 | <div class="userpoints_white">|{{#ifexpr: {{#var: finalpoints}} < 3800 | <div class="userpoints_green">}}}}<div style ="color:#fff; text-align: center;">'''{{BASEPAGENAME}}: User Level'''</div></div>
}}{{#ifexpr: {{#var: finalpoints}} < 3800 | <div class="userpoints_green">
}}<div style ="color:#fff; text-align: center;">'''{{BASEPAGENAME}}: User Level'''</div></div>
{{#vardefine:finalpoints|{{#expr: {{#var: creationpoints}} + {{#var: editpoints}} + {{#var: contributorpoints}} }}}}
{{#vardefine:finalpoints|{{#expr: {{#var: creationpoints}} + {{#var: editpoints}} + {{#var: contributorpoints}} }}}}
<div style="margin-left: 50%; margin-right: 50%; text-align: center;">'''''{{#var: finalpoints}}''''' ''points''</div>
<div style="margin-left: 50%; margin-right: 50%; text-align: center;">'''''{{#var: finalpoints}}''''' ''points''</div>

Revision as of 18:06, 16 February 2021

Template documentation
This documentation is transcluded from Template:User points/doc. [edit] [purge]
This article is about User Point Template. For The Wiki Point System, see Wiki Point System.

The Userpoints Template adds a very detailed bar on the user's page with their current wiki point score. It also connects directly with the leaderboards.

{{User points
|User=(Defaults to {{BASEPAGENAME}} - should be used on user page_
|Hide footer=( optional: yes )
}}
Expression error: Unexpected < operator.
User points: User Level
Expression error: Unexpected < operator. points

Expression error: Unexpected < operator. Property "User points" (as page type) with input value "Expression error: Unexpected < operator." contains invalid characters or is incomplete and therefore can cause unexpected results during a query or annotation process.