Module:WikidataIB/sandbox1/doc: Difference between revisions

Content deleted Content added
Utility functions: document functions formatNumber and examine
formatNumber was deleted
Line 444:
* 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 ===