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=wbformatentities
(main | wbformatentities)
- This module requires read rights.
- Source: WikibaseClient
- License: GPL-2.0-or-later
Formats entity IDs to HTML or plain text.
The language can be specified with the global uselang parameter.
Specific parameters:
Other general parameters are available.
- ids
The entity IDs to format.
- Separate values with | or alternative.
- Maximum number of values is 50 (500 for clients that are allowed higher limits).
- generate
The desired output format to generate.
- One of the following values: text/html, text/plain
- Default: text/html
Examples:
- Format a single item ID to HTML.
- api.php?action=wbformatentities&ids=Q2 [open in sandbox]
- Format an item ID and a property ID.
- api.php?action=wbformatentities&ids=Q2|P2 [open in sandbox]
- Format three item IDs in French.
- api.php?action=wbformatentities&ids=Q2|Q3|Q4&uselang=fr [open in sandbox]
- Format three item IDs and a property ID to plain text.
- api.php?action=wbformatentities&ids=Q2|Q3|Q4|P2&generate=text/plain [open in sandbox]