Bước tới nội dung

Bản mẫu:User contrib/doc

Bách khoa toàn thư mở Wikipedia

This is a multi-purpose edit counter userbox. By default, it links to X!'s Tools at WMFLabs.org to show stats. You can use a parameter to specify a different edit-counting tool.

{{User contrib|N}} (where N = number of edits)

Or:

{{User contrib|N|User_name}} (User_name is only needed if placed on a different page than your main userpage.)
{{User contrib|N|format=no}}: by default, the figure N is displayed with commas separating thousands. Use |format=no to suppress these commas.
{{User contrib|N|lang=X}}: prepends "Wikipedia" with the name of one or more languages. So replacing X with "English" yields "contributions to the English Wikipedia".
{{User contrib|N|project=X|projsite=Y.Z}}: replaces "Wikipedia" with the name of one or more projects, and changes the link in the template to link to the stats tool for a different project than English Wikipedia. The value for projsite is the domain name of the project, minus .org. For example |project=Wikimedia Commons|projsite=commons.wikimedia yields "contributions to Wikimedia Commons" and a link to commons stats. May be used in combination with |lang=, for example |lang=French|project=Wiktionary|projsite=fr.wiktionary yields "contributions to the French Wiktionary" and a link to stats for that project.
{{User contrib|N|deleted=X}}: adds the string "over X of which were to pages that are now deleted". Used to show how many deleted contributions you've made, which doesn't show up in most edit counters.
{{User contrib|N|articles=X}}: adds the string "over X of which were to articles". Used to show how many of your edits you've made in the article namespace.
{{User contrib|N|automated=X}}: adds the string "over X of which were automated". Used to show how many of your edits you've made were automated or semi-automated.
{{User contrib|N|distinct=X}}: adds the string "on over X distinct pages". Used to show how many contributions have been made to different pages in total. This value can be seen in the X! Tools (default) counter under "Unique pages edited". The parameter |unique= is a synonym for |distinct=.
{{User contrib|N|images=X}}: adds the string "as well as uploaded X images". Used to show how many images you've uploaded.
{{User contrib|N|cur_images=X}}: adds the string "over X of which are still current". Used to show how many of those images that are still current.
{{User contrib|N|insane=yes}}: adds the string "and, as a result, may be slightly insane", which was previously featured on the 100,000 edits box.
{{User contrib|N|total=yes}}: adds a link to a query page that gives your total number of edits, including deleted edits. Link displays as (total).
{{User contrib|N|bot=yes}}: by default, the text begins "This user has". Use |bot=yes to change this to "This bot has".
{{User contrib|N|log=yes}}: changes text to indicate that the number represents logged actions, such as page moves or deletions, rather than other edits, and changes the link to point to the user's log of actions instead of the edit stats counter.
{{User contrib|N|linked=no}}: suppresses the normal extlink to the edit counter (useful for people/bots who have way too many edits for detailed edit counters to handle gracefully).

Colors are retained from the old edit count templates. To customize, use parameters id-bg, info-bg, border, id-font, and info-font to set the background, font, and border colors. If you want a more customized version, feel free to make a copy in your userspace.

For example, {{user contrib|100|User_name|id-bg=#bbbbee|info-bg=#ddddff|id-font=#000033|info-font=#333366|border=#aaaaaa}} gives you:

100+Thành viên này đã có hơn 100 sửa đổi trên Wikipedia.


Link destination may also be changed by changing the link parameter:

{{User contrib|100|link=//tools.wmflabs.org/supercount/index.php?user=Username&project=en.wikipedia}} for Supercount:
100+Thành viên này đã có hơn 100 sửa đổi trên Wikipedia.
{{User contrib|100|link=//tools.wmflabs.org/guc/?user=Username for Luxo's tool (GUC):
100+Thành viên này đã có hơn 100 sửa đổi trên Wikipedia.
{{User contrib|100|link=//en.wikipedia.org/wiki/Special:Contributions/Username}} makes:
100+Thành viên này đã có hơn 100 sửa đổi trên Wikipedia.

Color reference

[sửa mã nguồn]

For reference, these are the colors used for separate edit count templates:

Color codes table
Edit count id-color id-bg info-color info-bg
0 black #FF33FF black #9C9C00
10 black #FFB6C1 black #FFC0CB
25 white #006600 black #90EE90
50 black #FFFF99 black #FFFF33
100 black #FFFF99 black #FFFF33
150 black #FFFF99 black #FFFF33
200 black #FFFF99 black #FFFF33
250 black #FF9933 black #FFCC99
300 white #005C7D black #3B9AFF
400 white #006600 black #90EE90
500 black #FF6161 black #FF9999
600 black #3399FF black #99CCFF
700 white #9000C0 black #DA66FF
800 white #1255A6 black #6B97DA
900 black #549CD7 black #87CEEB
1000 black #FF54AA black #FF99CC
1100 white #5448A4 black #A77FF8
1200 white #4D5966 black #A6937D
1500 black #FF643D black #FF9900
2000 black #549CD7 black #87CEEB
2500 white #8C00BB black #D964FF
3000 black #33CCCC black #55EEEE
3500 white #1255A6 black #6E9CE1
4000 black #38A969 black #44C87F
4500 white #B30000 white #800000
5000 white #2E2EFF black #9999FF
5500 black #E0FFFF black #00FFFF
6000 white #5649A6 black #AB81FD
7000 black #ADD8E6 black #549CD7
7500 black #3399FF black #99CCFF
8000 black #979797 black #A9A9A9
9000 white black black #9A9A9A
10000 black #33FFFF black #99FFFF
11000 white #0000FF black #00FFFF
12000 black #FF8888 black #ADD8E6
13000 black #FFFF00 black #C0C0C0
14000 white #0000FF white #006100
15000 white #006600 black #32CD32
16000 white #000080 white #B60000
17000 black #FFD700 black #FFFF00
18000 white #006600 black #32CD32
19000 black #99FF33 black #66CC33
20000 black #DEB887 white #8B0000
21000 black #FFA07A black #66CDAA
22000 white #000080 white #B60000
23000 white #B30024 black #FFD700
24000 black #FFD700 black #C0C0C0
25000 black #33FF33 black #99CC99
30000 black #FF2EFF black #E3CBAF
35000 black #08DC84 black #EE82EE
40000 black #FD8C40 black #88C9BE
45000 black #8DE5BB black #B8B895
50000 white #5745BB black #FBCC1C
55000 white #1F6439 black #7EB2A8
60000 black #6AAFFD black #57F852
65000 white #8D374E black #B6C319
70000 black #74E987 black #40E3B3
75000 black #5DCF1C white #3C21FC
80000 white #2B2E20 black #2BF410
85000 white #5245BA black #D763FD
90000 white #A42714 white #910E9A
95000 black #EADB95 white #644940
100000 #00FF00 black #00FF00 black

Bản mẫu:Edit number userboxes