MediaWiki API help

This is an auto-generated MediaWiki API documentation page.

Documentation and examples: https://www.mediawiki.org/wiki/Special:MyLanguage/API:Main_page

action=discussiontoolsedit

(main | discussiontoolsedit)
  • This module requires read rights.
  • This module requires write rights.
  • This module only accepts POST requests.
  • Font : Eines de discussió
  • Licéncia : MIT

Publica un missatge en una pàgina de discussió.

Paramètres :
Other general parameters are available.
paction

Action to perform.

addcomment
Afegeix un nou comentari com a resposta a un altre ja existent.
addtopic
Afegeix una nova secció de debat i un missatge d'inici.
Cal aquest paràmetre.
One of the following values: addcomment, addtopic
autosubscribe

Automatically subscribe the user to the talk page thread?

One of the following values: default, no, yes
Per defecte: default
page

Pàgina per a realitzar accions

Cal aquest paràmetre.
token

A "csrf" token retrieved from action=query&meta=tokens

Cal aquest paràmetre.
formtoken

An optional unique ID generated in the client to prevent double-posting.

No pot tenir més de 16 caràcters.
commentname

Nom del comentari al qual respondre. Només s'utilitza quan paction és addcomment.

commentid

Identificació del comentari al qual respondre. Només s'utilitza quan paction és addcomment. Sobreeescriu commentname.

wikitext

Contingut per a publicar com a codi wiki. No es pot emprar conjuntament amb el codi HTML.

html

Contingut per a publicar com a codi HTML. No es pot emprar conjuntament amb el codi wiki.

summary

Resum d'edició

sectiontitle

El títol d’una secció nova. Només s'utilitza quan paction is addtopic.

allownosectiontitle

Allow posting a new section without a title.

Type: boolean (details)
useskin

Apply the selected skin to the parser output. May affect the following properties: text, langlinks, headitems, modules, jsconfigvars, indicators.

One of the following values: apioutput, cologneblue, fallback, minerva, modern, monobook, timeless, vector, vector-2022
watchlist

Unconditionally add or remove the page from the current user's watchlist, use preferences (ignored for bot users) or do not change watch.

captchaid

ID del captcha (en desar amb una resposta de captcha),

captchaword

Resposta al captcha (en desar amb una resposta de captcha).

nocontent

Omit the HTML content of the new revision in the response.

tags

Change tags to apply to the edit.

Separate values with | or alternative.
Maximum number of values is 50 (500 for clients that are allowed higher limits).
returnto

Page title. If saving the edit created a temporary account, the API may respond with an URL that the client should visit to complete logging in. If this parameter is provided, the URL will redirect to the given page, instead of the page that was edited.

Tipus: títol de pàgina
Accepta pàgines que no existeixen.
returntoquery

URL query parameters (with leading ?). If saving the edit created a temporary account, the API may respond with an URL that the client should visit to complete logging in. If this parameter is provided, the URL will redirect to a page with the given query parameters.

Default: (empty)
returntoanchor

URL fragment (with leading #). If saving the edit created a temporary account, the API may respond with an URL that the client should visit to complete logging in. If this parameter is provided, the URL will redirect to a page with the given fragment.

Default: (empty)
mobileformat

Return parse output in a format suitable for mobile devices.

Type: boolean (details)