Four tiers of wiki badges.
This commit is contained in:
parent
8666c91a76
commit
9e24b5684f
4 changed files with 132 additions and 0 deletions
33
roles/badges-backend/files/badges/associate-editor.yml
Normal file
33
roles/badges-backend/files/badges/associate-editor.yml
Normal file
|
@ -0,0 +1,33 @@
|
|||
%YAML 1.2
|
||||
---
|
||||
|
||||
# This is some metadata about the badge
|
||||
name: Associate Editor
|
||||
description: Edited at least 20 wiki pages.
|
||||
creator: ralph
|
||||
|
||||
# This is a link to the discussion about adopting this as a for-real badge.
|
||||
discussion: https://github.com/oddshocks/badges/blob/master/docs/badges.rst
|
||||
|
||||
# A link to the image for the badge
|
||||
image_url: http://upload.wikimedia.org/wikipedia/commons/5/53/PSM_V37_D209_Fisher_island_sound_rock_forming_natural_breakwater.jpg
|
||||
|
||||
# That's us!
|
||||
issuer_id: fedora-project
|
||||
|
||||
# We'll perform our more costly check (defined below) only when
|
||||
# we receive messages that match this 'trigger'
|
||||
trigger:
|
||||
topic: wiki.article.edit
|
||||
|
||||
# Once the check has been triggered, this defines what we actually check.
|
||||
criteria:
|
||||
datanommer:
|
||||
filter:
|
||||
topics:
|
||||
- "{topic}" # The topic of the message that triggered us.
|
||||
usernames:
|
||||
- "{msg.user}"
|
||||
operation: count
|
||||
condition:
|
||||
greater than or equal to: 20
|
33
roles/badges-backend/files/badges/junior-editor.yml
Normal file
33
roles/badges-backend/files/badges/junior-editor.yml
Normal file
|
@ -0,0 +1,33 @@
|
|||
%YAML 1.2
|
||||
---
|
||||
|
||||
# This is some metadata about the badge
|
||||
name: Junior Editor
|
||||
description: Edited at least 10 wiki pages.
|
||||
creator: ralph
|
||||
|
||||
# This is a link to the discussion about adopting this as a for-real badge.
|
||||
discussion: https://github.com/oddshocks/badges/blob/master/docs/badges.rst
|
||||
|
||||
# A link to the image for the badge
|
||||
image_url: http://upload.wikimedia.org/wikipedia/commons/5/53/PSM_V37_D209_Fisher_island_sound_rock_forming_natural_breakwater.jpg
|
||||
|
||||
# That's us!
|
||||
issuer_id: fedora-project
|
||||
|
||||
# We'll perform our more costly check (defined below) only when
|
||||
# we receive messages that match this 'trigger'
|
||||
trigger:
|
||||
topic: wiki.article.edit
|
||||
|
||||
# Once the check has been triggered, this defines what we actually check.
|
||||
criteria:
|
||||
datanommer:
|
||||
filter:
|
||||
topics:
|
||||
- "{topic}" # The topic of the message that triggered us.
|
||||
usernames:
|
||||
- "{msg.user}"
|
||||
operation: count
|
||||
condition:
|
||||
greater than or equal to: 10
|
33
roles/badges-backend/files/badges/master-editor.yml
Normal file
33
roles/badges-backend/files/badges/master-editor.yml
Normal file
|
@ -0,0 +1,33 @@
|
|||
%YAML 1.2
|
||||
---
|
||||
|
||||
# This is some metadata about the badge
|
||||
name: Master Editor
|
||||
description: Edited at least 100 wiki pages.
|
||||
creator: ralph
|
||||
|
||||
# This is a link to the discussion about adopting this as a for-real badge.
|
||||
discussion: https://github.com/oddshocks/badges/blob/master/docs/badges.rst
|
||||
|
||||
# A link to the image for the badge
|
||||
image_url: http://upload.wikimedia.org/wikipedia/commons/5/53/PSM_V37_D209_Fisher_island_sound_rock_forming_natural_breakwater.jpg
|
||||
|
||||
# That's us!
|
||||
issuer_id: fedora-project
|
||||
|
||||
# We'll perform our more costly check (defined below) only when
|
||||
# we receive messages that match this 'trigger'
|
||||
trigger:
|
||||
topic: wiki.article.edit
|
||||
|
||||
# Once the check has been triggered, this defines what we actually check.
|
||||
criteria:
|
||||
datanommer:
|
||||
filter:
|
||||
topics:
|
||||
- "{topic}" # The topic of the message that triggered us.
|
||||
usernames:
|
||||
- "{msg.user}"
|
||||
operation: count
|
||||
condition:
|
||||
greater than or equal to: 100
|
33
roles/badges-backend/files/badges/senior-editor.yml
Normal file
33
roles/badges-backend/files/badges/senior-editor.yml
Normal file
|
@ -0,0 +1,33 @@
|
|||
%YAML 1.2
|
||||
---
|
||||
|
||||
# This is some metadata about the badge
|
||||
name: Senior Editor
|
||||
description: Edited at least 50 wiki pages.
|
||||
creator: ralph
|
||||
|
||||
# This is a link to the discussion about adopting this as a for-real badge.
|
||||
discussion: https://github.com/oddshocks/badges/blob/master/docs/badges.rst
|
||||
|
||||
# A link to the image for the badge
|
||||
image_url: http://upload.wikimedia.org/wikipedia/commons/5/53/PSM_V37_D209_Fisher_island_sound_rock_forming_natural_breakwater.jpg
|
||||
|
||||
# That's us!
|
||||
issuer_id: fedora-project
|
||||
|
||||
# We'll perform our more costly check (defined below) only when
|
||||
# we receive messages that match this 'trigger'
|
||||
trigger:
|
||||
topic: wiki.article.edit
|
||||
|
||||
# Once the check has been triggered, this defines what we actually check.
|
||||
criteria:
|
||||
datanommer:
|
||||
filter:
|
||||
topics:
|
||||
- "{topic}" # The topic of the message that triggered us.
|
||||
usernames:
|
||||
- "{msg.user}"
|
||||
operation: count
|
||||
condition:
|
||||
greater than or equal to: 50
|
Loading…
Add table
Add a link
Reference in a new issue