Verification

The Wiki-bot can be used to **verify** the identity and link a discord user to a wiki user.

## Overview

The person with `Manage Server` permission is able to set up to 10 (25) verifications, against which users will be matched. Users can then use the `!wiki verify` command to verify themselves. The Wiki-Bot will then assign specific roles to the user for every verification they matched. Users that are blocked on the wiki won't be able to verify themselves.

## Criteria

There are a number of restrictions/settings that can be applied to a verification. Here is a list of them:

* The channel, in which `!wiki verify` can be used.
* The role that's assigned upon matching the verification
* The user group to be a member of on the wiki to match the verification entry.
* The minimal edit count on the wiki that's required to match the verification entry.
* The required account age in days to match the verification entry.
* Whether the Discord users nickname should be set to their wiki username when they match the verification entry.

## Notices

### Success notice

This notice is added to a successful verification.

Example
`Thanks for your work on the wiki, you can now check out the #editors channel.`
### Missing requirements notice

This notice is added when the Discord user matches the wiki user, but they don't fulfill any requirements for roles.

Example
`You need at least 50 edits for the @Editor role.`
### Functions and Variables

The custom notices support some simple functions and variables.

* `$editcount` – The current edit count of the user.
* `$accountage` – The current account age of the user in full days.
* `$postcount` – The current discussions post count of the user (only Fandom wikis).
* `{{#expr: 1+1}}` – Returns the result of an expression.
	+ Supports only addition `+` and subtraction `-`.
* `{{#ifexpr: 1 > 1 | *if true* | *if false* }}` – Returns text depending on the result of an expression.
	+ Supports `<`, `>`, `=`, `<=`, `>=`, `!=`, `<>` as well as `and`, `or`.

## How to Verify

For Fandom and Gamepedia wikis, put your Discord Username and Discord Tag (For example, `Wiki-Bot#2998`) in Fandom/Gamepedia profile. See also Fandom help and Gamepedia help documents to see detailed procedure.

For Wikimedia and Miraheze wikis, you will receive a DM from Wiki-Bot, which will include a link to the wiki's OAuth authentication system. Allowing the tool will let Wiki-Bot know the username, user rights, and other data required to perform verification.

For other wikis, put your Discord Username and Discord Tag in `Discord` user sub page (in the form of `Special:MyPage/Discord`, for example User:MarkusRost/Discord).

## Help Commands

* `!wiki verification`
	+ I will change the wiki verifications used by the !wiki verify command.
* `!wiki verification add <role>`
	+ I will add a new wiki verification. Accepts a | separated list.
* `!wiki verification <id> channel <new channel>`
	+ I will change the channel for the wiki verification. Accepts a | separated list.
* `!wiki verification <id> role <new role>`
	+ I will change the role for the wiki verification. Accepts a | separated list.
* `!wiki verification <id> editcount <new edit count>`
	+ I will change the minimal edit count for the wiki verification.
* `!wiki verification <id> usergroup <new user group>`
	+ I will change the user group for the wiki verification. Accepts a | separated list.
		- Provide AND as the first list entry to make all provided user groups required.
* `!wiki verification <id> accountage <new account age>`
	+ I will change the minimal account age (in days) for the wiki verification.
* `!wiki verification <id> rename`
	+ I will change if the user's Discord nickname should be changed to their wiki username for the wiki verification.
* `!wiki verification <id> delete`
	+ I will delete the wiki verification.