راهنمای واسط برنامه‌نویسی کاربردی مدیاویکی

این یک صفحهٔ مستندات برای واسط برنامه‌نویسی کاربردی مدیاویکی است که به‌طور خودکار ایجاد شده‌است.

مستندات و نمونه‌ها: https://www.mediawiki.org/wiki/Special:MyLanguage/API:Main_page

action=wbformatvalue

(main | wbformatvalue)
  • این پودمان نیازمند اختیارات خواندن است.
  • منبع: WikibaseClient
  • مجوز: GPL-2.0-or-later

مقادیر داده را قالب‌بندی می‌کند.

پارامترها:
generate

فرمت خروجی

یکی از مقدارهای زیر: text/html، text/html; disposition=verbose، text/html; disposition=verbose-preview، text/plain، text/x-wiki
پیش‌فرض: text/x-wiki
datavalue

The data to format. This has to be the JSON serialization of a DataValue object.

این پارامتر الزامی است.
datatype

نوع داده. این متفاوت است از نوع مقدار.

یکی از مقدارهای زیر: commonsMedia، entity-schema، external-id، geo-shape، globe-coordinate، monolingualtext، quantity، string، tabular-data، time، url، wikibase-item، wikibase-property
property

Property ID the data value belongs to, should be used instead of the datatype parameter.

options

The options the formatter should use. Provided as a JSON object.