Template:UKB points/doc
Appearance
This is a documentation subpage for Template:UKB points. It may contain usage information, categories and other content that is not part of the original template page. |
This template may have no transclusions, because it is substituted by a tool or script, it is used as part of a short-term or less active Wikipedia process, or for some other reason. |
This template is not used on the English Wikipedia, but it has been kept as a convenience for the operation of a bot on other Wikipedias.
This template is used by UKBot. Before making changes to the template, make sure that they will be understood by the bot. |
{{UKB points}} is used to define a rule for how points should be awarded in a contest checked by User:UKBot. In addition to being readable for the bot, the template also produces a human readable form of the points rule.
Each contest must have at least one {{UKB points}} template, but can have multiple.
Usage
[edit]The first parameter defines what kind of action points should be awarded for, while the second parameter defines the number of points. Supported actions:
new
- points are awarded for each new page created (excluding redirects).
- Example:
{{UKB points | new | 10 }}
- Example:
redirect
- points are awarded for each new redirect page created.
- Example:
{{UKB points | redirect | 2 }}
- Example:
byte
- points are awarded for each byte added.
- Example:
{{UKB points | byte | 0.01 }}
will award 1 point for every 100 bytes.
- Example:
|maxpoints=
can be used to limit the max number of points awarded per page.- Example:
{{UKB points | byte | 0.01 | maxpoints=50 }}
will award 1 point for every 100 bytes added, but no more than 50 points per page.
- Example:
bytebonus
- adds a fixed bonus if more than a given number of bytes is added to a single page.
- Example:
{{UKB points | bytebonus | 20 | 3000 }}
will award 20 points if more than 3000 bytes was added to a single page.
- Example:
word
- points are awarded for every word added to the running text (not including text inside info boxes, other templates or tables).
- Example:
{{UKB points | word | 0.05 }}
will award 1 points per 20 words added.
- Example:
wordbonus
- adds a fixed bonus if more than a given number of words is added to a single page.
- Example:
{{UKB points | wordbonus | 10 | 200 }}
will award 10 points if more than 200 words was added to a single page.
- Example:
image
- points are awarded for every image added
- Example:
{{UKB points | image | 5 }}
will award 5 points for every image added.
- Example:
|maxpoints=
can be used to limit the max number of points awarded per page.- Example:
{{UKB points | image | 5 | maxpoints=15 }}
will award 5 points for every image added, but no more than 15 points per page.
- Example:
|self-uploaded=
can be used to award more points to images added that was uploaded by the same user.- Example:
{{UKB points | image | 5 | self-uploaded=10 }}
will award 10 points for every image added that was uploaded by the same user, and 5 points for other images added.
- Example:
|initial limit=
can be used to only award adding images to articles having no more than a specified number of images from before.- Example:
{{UKB points | image | 5 | initial limit=0 }}
will only award points for adding images to pages that did not have images from before.
- Example:
citation
- points are awarded for every citation added
- Example:
{{UKB points | citation | 3 | 1 }}
will award 3 points for every citation added and 1 point for every reference to a named citation.
- Example:
qualified
- awards a fixed number of points for every qualified page contributed to in some way.
- Example:
{{UKB points | qualified | 20 }}
will award 20 points for every qualified page.
- Example:
edit
- awards a fixed number of points for every edit to a qualified page.
- Example:
{{UKB points | edit | 1 }}
will award 1 point for every edit.
- Example:
template removal
- awards a fixed number of points for removing a template.
- Example:
{{UKB points | template removal | 2 | Citation needed }}
will award 2 points for every {{Citation needed}} template removed.
- Example:
- Wild cards are supported in the beginning or end.
- Example:
{{UKB points | template removal | 2 | *stub }}
will award 2 points for every stub template removed, such as {{physics stub}}...
- Example:
external link
- points are awarded for every external link added
- Example:
{{UKB points | external link | 5 }}
will award 5 points for every external link added
- Example:
|maxpoints=
the max number of points awarded per page.- Example:
{{UKB points | external link | 5 | maxpoints=15 }}
will award 5 points for every external link added, but no more than 15 points per page.
- Example:
See also
[edit]- {{UKB criterion}}