Aide de l’API de MediaWiki
Ceci est une page d’aide de l’API de MediaWiki générée automatiquement.
Documentation et exemples : https://www.mediawiki.org/wiki/API
action=threadaction
- Ce module nécessite des droits de lecture.
- Ce module nécessite des droits d’écriture.
- Ce module n’accepte que les requêtes POST.
- Source : Liquid Threads
- Licence : Voir le lien
Allows actions to be taken on threads and posts in threaded discussions.
- thread
A list (pipe-separated) of thread IDs or titles to act on
- Valeurs séparées par | ou autre. Le nombre maximal de valeurs est 50 (500 pour les robots).
- talkpage
The talkpage to act on (if applicable)
- threadaction
The action to take
- Une des valeurs suivantes : markread, markunread, split, merge, reply, newthread, setsubject, setsortkey, edit, addreaction, deletereaction, inlineeditform
- token
Un jeton « 1 » récupéré par action=query&meta=tokens
- Ce paramètre est obligatoire.
- subject
The subject to set for the new or split thread
- reason
If applicable, the reason/summary for the action
- newparent
If merging a thread, the ID or title for its new parent
- text
The text of the post to create
- render
If set, on post/reply methods, the top-level thread after the change will be rendered and returned in the result.
- bump
If set, overrides default behaviour as to whether or not to
- sortkey
Specifies the timestamp to which to set a thread's sort key. Must be in the form YYYYMMddhhmmss, a unix timestamp or 'now'.
- signature
Specifies the signature to use for that post. Can be NULL to specify the default signature
- type
Specifies the type of reaction to add
- value
Specifies the value associated with the reaction to add
- method
For getting inline edit forms, the method to get a form for
- operand
- (aucune description)
- g-recaptcha-response
Champ du formulaire ReCaptcha.
- Modifier une page
- api.php?action=edit&title=Test&summary=test%20summary&text=article%20content&basetimestamp=2007-08-24T12:34:54Z&token=123ABC [ouvrir dans le bac à sable]
- Préfixer une page par __NOTOC__.
- api.php?action=edit&title=Test&summary=NOTOC&minor=&prependtext=__NOTOC__%0A&basetimestamp=2007-08-24T12:34:54Z&token=123ABC [ouvrir dans le bac à sable]
- Annuler les révisions 13579 à 13585 avec résumé automatique.
- api.php?action=edit&title=Test&undo=13585&undoafter=13579&basetimestamp=2007-08-24T12:34:54Z&token=123ABC [ouvrir dans le bac à sable]