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=edit
- Questo modulo richiede i diritti di lettura.
 - Questo modulo richiede i diritti di scrittura.
 - Questo modulo accetta solo richieste POST.
 - Fonte: MediaWiki
 - Licenza: GPL-2.0-or-later
 
Crea e modifica pagine.
- title
 Titolo della pagina da modificare. Non può essere usato insieme a pageid.
- pageid
 ID di pagina della pagina da modificare. Non può essere usato insieme con title.
- Type: integer
 - section
 Identificativo di sezione. 0 per la sezione iniziale, new per una nuova sezione. Spesso è un intero positivo, ma potrebbe essere anche non numerico.
- sectiontitle
 Il titolo per una nuova sezione quando usi section=new.
- text
 Contenuto della pagina.
- summary
 Oggetto della modifica. Anche titolo della sezione se sezione=new e sectiontitle non è impostato.
- tags
 Cambia i tag da applicare alla revisione.
- Valori (separati da | o alternativa):
 - minor
 Contrassegna questa modifica come minore.
- Tipo: booleano (dettagli)
 - notminor
 Non contrassegnare questa modifica come minore anche se la preferenza "Indica ogni modifica come minore (solo come predefinito)" è impostata.
- Tipo: booleano (dettagli)
 - bot
 Contrassegna questa modifica come eseguita da un bot.
- Tipo: booleano (dettagli)
 - baserevid
 ID of the base revision, used to detect edit conflicts. May be obtained through action=query&prop=revisions. Self-conflicts cause the edit to fail unless basetimestamp is set.
- Type: integer
 - basetimestamp
 Timestamp of the base revision, used to detect edit conflicts. May be obtained through action=query&prop=revisions&rvprop=timestamp. Self-conflicts are ignored.
- Tipo: timestamp (formati consentiti)
 - starttimestamp
 Timestamp when the editing process began, used to detect edit conflicts. An appropriate value may be obtained using curtimestamp when beginning the edit process (e.g. when loading the page content to edit).
- Tipo: timestamp (formati consentiti)
 - recreate
 Override any errors about the page having been deleted in the meantime.
- Tipo: booleano (dettagli)
 - createonly
 Non modificare la pagina se già esiste.
- Tipo: booleano (dettagli)
 - nocreate
 Genera un errore se la pagina non esiste.
- Tipo: booleano (dettagli)
 - watch
 - Deprecato.
 Aggiunge la pagina agli osservati speciali dell'utente attuale.
- Tipo: booleano (dettagli)
 - unwatch
 - Deprecato.
 Rimuove la pagina dagli osservati speciali dell'utente attuale.
- Tipo: booleano (dettagli)
 - watchlist
 Unconditionally add or remove the page from the current user's watchlist, use preferences (ignored for bot users) or do not change watch.
- Uno dei seguenti valori: nochange, preferences, unwatch, watch
 - Default: preferences
 - md5
 The MD5 hash of the text parameter, or the prependtext and appendtext parameters concatenated. If set, the edit won't be done unless the hash is correct.
- prependtext
 Add this text to the beginning of the page or section. Overrides text.
- appendtext
 Add this text to the end of the page or section. Overrides text.
Use section=new to append a new section, rather than this parameter.
- undo
 Undo this revision. Overrides text, prependtext and appendtext.
- Type: integer
 - The value must be no less than 0.
 - undoafter
 Undo all revisions from undo to this one. If not set, just undo one revision.
- Type: integer
 - The value must be no less than 0.
 - redirect
 Risolvi automaticamente redirect.
- Tipo: booleano (dettagli)
 - contentformat
 Content serialization format used for the input text.
- Uno dei seguenti valori: application/json, application/octet-stream, application/unknown, application/x-binary, text/css, text/javascript, text/plain, text/unknown, text/x-wiki, unknown/unknown
 - contentmodel
 Modello di contenuto dei nuovi contenuti.
- Uno dei seguenti valori: css, javascript, json, text, unknown, wikitext
 - token
 Un token "csrf" recuperato da action=query&meta=tokens
Il token deve sempre essere inviato come ultimo parametro, o almeno dopo il parametro text.
- This parameter is required.
 
- Modifica una pagina.
 - api.php?action=edit&title=Test&summary=test%20summary&text=article%20content&baserevid=1234567&token=123ABC [apri in una sandbox]
 - Anteponi __NOTOC__ a una pagina.
 - api.php?action=edit&title=Test&summary=NOTOC&minor=&prependtext=__NOTOC__%0A&basetimestamp=2007-08-24T12:34:54Z&token=123ABC [apri in una sandbox]
 - Undo revisions 13579 through 13585 with autosummary.
 - api.php?action=edit&title=Test&undo=13585&undoafter=13579&basetimestamp=2007-08-24T12:34:54Z&token=123ABC [apri in una sandbox]