API:Threadaction
Appearance
Prefix: None Required Rights: None POST Only? No
Allows actions to be taken on threads and posts in threaded discussions.
Parameters
[edit]- bump β If set, overrides default behaviour as to whether or not to . Type: string
- gettoken β . Type: string
- method β For getting inline edit forms, the method to get a form for. Type: string
- newparent β If merging a thread, the ID or title for its new parent. Type: string
- operand β . Type: string
- reason β If applicable, the reason/summary for the action. Type: string
- render β If set, on post/reply methods, the top-level thread after the change will be rendered and returned in the result.. Type: string
- signature β Specifies the signature to use for that post. Can be NULL to specify the default signature. Type: string
- sortkey β Specifies the timestamp to which to set a thread's sort key. Must be in the form YYYYMMddhhmmss, a unix timestamp or 'now'.. Type: string
- subject β The subject to set for the new or split thread. Type: string
- talkpage β The talkpage to act on (if applicable). Type: string
- text β The text of the post to create. Type: string
- thread β A list (pipe-separated) of thread IDs or titles to act on.
- threadaction β The action to take.
- Type: one of
markread
,markunread
,split
,merge
,reply
,newthread
,setsubject
,setsortkey
,edit
,addreaction
,deletereaction
,inlineeditform
- token β An edit token (from ?action=query&prop=info&intoken=edit). Type: string
- type β Specifies the type of reaction to add. Type: string
- value β Specifies the value associated with the reaction to add. Type: string
Errors Codes
[edit]- already-top-level β This thread is already a top-level thread..
- badtoken β Invalid token.
- invalid-parent-thread β The parent thread you specified was neither the title of a thread, nor a thread ID..
- invalid-sortkey β You must specify a valid timestamp for the sortkey parameter. It should be in the form YYYYMMddhhmmss, a unix timestamp or "now"..
- invalid-subject β The subject you specified is not valid.
- invalid-subject β You must specify a thread to edit.
- invalid-talkpage β The talkpage you specified is invalid, or does not have discussion threading enabled..
- mustbeposted β The threadaction module requires a POST request.
- no-parent-thread β You must specify a new parent thread to merge beneath.
- no-specified-threads β You must specify a thread to change the subject of.
- no-specified-threads β You must specify a thread to reply to.
- no-specified-threads β You must specify a thread to set the sortkey of.
- no-specified-threads β You must specify a thread to merge.
- no-specified-threads β You must specify a thread to split.
- no-text β You must include text in your post.
- no-valid-subject β No subject, or an invalid subject, was specified.
- noaction β The action parameter must be set.
- noapiwrite β Editing of this wiki through the API is disabled. Make sure the $wgEnableWriteAPI=true; statement is included in the wiki's LocalSettings.php file.
- nosubject β The subject parameter must be set.
- notalkpage β The talkpage parameter must be set.
- notoken β The token parameter must be set.
- perm_result-protected β You cannot reply to this thread, because the perm_result is protected from replies..
- readapidenied β You need read permission to use this module.
- talkpage-protected β You cannot post to the specified talkpage, because it is protected from new posts.
- too-many-threads β You may only edit one thread at a time.
- too-many-threads β You may only change the subject of one thread at a time.
- too-many-threads β You may only split one thread at a time.
- writeapidenied β You're not allowed to edit this wiki through the API.