MediaWiki-API-hjelp

Dette er en automatisk generert MediaWiki-API-dokumentasjonsside.

Dokumentasjon og eksempler: https://www.mediawiki.org/wiki/API

action=changecontentmodel

(main | changecontentmodel)
  • Denne modulen krever lesetilgang.
  • Denne modulen krever skrivetilgang.
  • Denne modulen aksepterer bare POST forespørsler.
  • Kilde: MediaWiki
  • Lisens: GPL-2.0-or-later

Change the content model of a page

Parametre:
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.

Verdier (separer med | eller alternativ):
model

Content model of the new content.

This parameter is required.
Én av følgende verdier: GeoJSON, GeoJson, css, javascript, json, text, wikitext
bot

Mark the content model change with a bot flag.

Type: boolean (details)
token

EN «csrf»-nøkkel hentet fra action=query&meta=tokens

This parameter is required.