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: WikibaseRepository
- License: GPL-2.0-or-later
Formats entity IDs to HTML.
The language can be specified with the global uselang parameter.
Parameter:
- 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).
Examples:
- Format a single item ID.
- 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]