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=wbformatreference
(main | wbformatreference)
- This module is internal or unstable, and you should not use it. Its operation may change without notice.
- This module requires read rights.
- Font : WikibaseClient
- Licéncia : GPL-2.0-or-later
Formata una referència per mostrar als usuaris.
Paramètres :
Other general parameters are available.
- reference
La referència com a objecte JSON.
- Cal aquest paràmetre.
- style
L'estil en què formatar la referència.
- internal-data-bridge
- The style used by Data Bridge. Not intended for general use.
- Cal aquest paràmetre.
- One of the following values: internal-data-bridge
- outputformat
The format in which the result should be returned.
- html
- marcatge HTML.
- Cal aquest paràmetre.
- One of the following values: html
Examples:
- Formata una referència buida usant l'estil de Data Bridge a HTML.
- api.php?action=wbformatreference&reference={"snaks":{}}&style=internal-data-bridge&outputformat=html [open in sandbox]
- Format a reference containing one string using the Data Bridge style into HTML.
- api.php?action=wbformatreference&reference={ "snaks": { "P2": [ { "property": "P2", "snaktype": "value", "datavalue": { "type": "string", "value": "a string" }, "datatype": "string" } ] } }&style=internal-data-bridge&outputformat=html [open in sandbox]