Extension:Jade/API

We recommend going through the API rather than editing a judgment's JSON directly, but you are welcome to do whatever suits you. For most simple tasks, the API will help you by hiding some of the complexities of translation and data structure. The extension provides append and list methods for the following judgment types:


 * action=judgediffdamaging - Judge an edit as damaging or not.

Parameter signature:
 * : A valid edit token is required.
 * : The revision being judged. Integer.
 * : Whether judging as damaging or not. Boolean.
 * : Rationale or other comments. Optional, string.
 * : Edit summary for the judgment. Optional, string.
 * : Change tags to apply to the judgment. Optional, pipe-separated list of tag names.

Result signature:
 * : Module result container
 * : One of "Success" or "Failure".
 * : Article in which the new judgment was stored. This may contain more judgments about the same target entity.
 * : Judgment page revision before our judgment is created.
 * : New page revision after our judgment is created.

Possible errors: TODO

"Example (must also post a token):"


 * action=judgediffgoodfaith - Judge an edit as good faith or not.

Parameter signature:
 * : A valid edit token is required.
 * : The revision being judged. Integer.
 * : True if judging the edit to be made in good faith, false for bad faith. Boolean.
 * : Rationale or other comments. Optional, string.
 * : Edit summary for the judgment. Optional, string.
 * : Change tags to apply to the judgment. Optional, pipe-separated list of tag names.

Result signature:
 * : Module result container
 * : One of "Success" or "Failure".
 * : Article in which the new judgment was stored. This may contain more judgments about the same target entity.
 * : Judgment page revision before our judgment is created.
 * : New page revision after our judgment is created.

Possible errors: TODO

"Example (must also post a token):"


 * action=judgearticlequality - Assess the quality of an article.

Parameter signature:
 * : A valid edit token is required.
 * : Revision at which we're assessing the article. Page title can be determined from this, so we don't ask for the title or page ID as a separate parameter.
 * : Quality grade on your local wiki's scale, e.g. "FA" or "III".
 * : Rationale or other comments. Optional, string.
 * : Edit summary for the judgment. Optional, string.
 * : Change tags to apply to the judgment. Optional, pipe-separated list of tag names.

Result signature:
 * : Module result container
 * : One of "Success" or "Failure".
 * : Article in which the new judgment was stored. This may contain more judgments about the same target entity.
 * : Judgment page revision before our judgment is created.
 * : New page revision after our judgment is created.

Possible errors: TODO

"Example (must also post a token):"


 * action=query&prop=damagingjudgments - Get damaging judgments for the given revisions.

Parameters: Takes the  parameter, or can be used with a generator returning revisions.

Result signature:
 * : Module result container.
 * : list of judgments,
 * : Boolean, true if judged damaging.
 * : Freeform text notes about the judgment.
 * : Boolean, true if the judgment represents a current consensus.

"Example:"


 * action=query&prop=goodfaithjudgments - Get good-faith judgments for the given revisions.

Parameters: Takes the  parameter, or can be used with a generator returning revisions.

Result signature:
 * : Module result container.
 * : list of judgments,
 * : Boolean, true if judged good faith.
 * : Freeform text notes about the judgment.
 * : Boolean, true if the judgment represents a current consensus.

"Example:"


 * action=query&prop=articlequalityjudgments - Get article quality judgments for the given revisions.

Parameters: Takes the  parameter, or can be used with a generator returning revisions.

Result signature:
 * : Module result container.
 * : list of judgments,
 * : Article quality label. String.
 * : Freeform text notes about the judgment.
 * : Boolean, true if the judgment represents a current consensus.

"Example:"