Module:WikidataIB/doc: Difference between revisions

Content deleted Content added
Undid revision 845912612 by Pppery (talk) restore useful function
Reverted to revision 845752683 by Pppery (talk): Retore documentation. (TW)
Line 432:
* failing that, the Wikidata entity ID asociated with the curent page, if it exists;
* otherwise, nothing
 
=== Function formatNumber ===
formatNumber reads a number supplied in the first unnamed parameter (or {{para|num}} as a named alias) and a language code in the {{para|lang}} parameter. If no valid language parameter is supplied, it uses the user's set language where available, otherwise the wiki's content language. It returns the number formatted according to the language conventions of that language.
* Example: <code><nowiki>{{#invoke:WikidataIB |formatNumber |1.23456789e6 |lang=de}}</nowiki></code> → {{#invoke:WikidataIB |formatNumber |1.23456789e6 |lang=de}}
 
=== Function examine ===