මාධ්‍යවිකි API උදවු

මෙය ස්වයං-ජනිත මාධ්‍යවිකි API ප්‍රලේඛන පිටුවකි.

ප්‍රලේඛනය සහ උදාහරණ: https://www.mediawiki.org/wiki/API

action=changecontentmodel

(main | changecontentmodel)
  • මෙම ඒකකය සදහා හිමිකම් කියවීම අවශ්‍ය වේ.
  • මෙම ඒකකය සදහා හිමිකම් ලිවීම අවශ්‍ය වේ.
  • මෙම ඒකකය POST ඉල්ලීම් පමණක් බාරගනී.
  • Source: MediaWiki
  • License: GPL-2.0-or-later

Change the content model of a page

පරාමිතීන්:
Other general parameters are available.
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.

වටිනාකම් ("|" සමග වෙන් කරන්න):
model

Content model of the new content.

This parameter is required.
එක් වටිනාකමක්: GadgetDefinition, css, javascript, json, text, vue, wikitext
bot

Mark the content model change with a bot flag.

Type: boolean (details)
token

action=query&meta=tokens මගින් "csrf" සංඥාව සොයාගන්නා ලදී

This parameter is required.
උදාහරණය:
Change the main page to have the text content model
api.php?action=changecontentmodel&title=Main Page&model=text&token=123ABC [open in sandbox]
"https://si.wiktionary.beta.math.wmflabs.org/wiki/විශේෂ:ApiHelp" වෙතින් සම්ප්‍රවේශනය කෙරිණි