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=changecontentmodel
(main | changecontentmodel)
- 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
Modifica il modello di contenuto di una pagina
Parametri:
- title
- Title of the page to change the contentmodel of. Cannot be used together with pageid. 
- pageid
- Page ID of the page to change the contentmodel of. Cannot be used together with title. 
- Type: integer
- summary
- Edit summary and log entry reason 
- tags
- Change tags to apply to the log entry and edit. 
- Valori (separati da | o alternativa):
- model
- Modello di contenuto del nuovo contenuto. 
- This parameter is required.
- Uno dei seguenti valori: css, javascript, json, sanitized-css, text, wikitext
- bot
- Mark the content model change with a bot flag. 
- Tipo: booleano (dettagli)
- token
- Un token "csrf" recuperato da action=query&meta=tokens 
- This parameter is required.
Esempio:
- Change the main page to have the textcontent model
- api.php?action=changecontentmodel&title=Main Page&model=text&token=123ABC [apri in una sandbox]