We currently have [[https://www.mediawiki.org/wiki/Extension:Wikibase_Client/Lua#mw.wikibase.renderSnak|mw.wikibase.renderSnak]] and [[https://www.mediawiki.org/wiki/Extension:Wikibase_Client/Lua#mw.wikibase.renderSnaks|mw.wikibase.renderSnaks]] which render a Snak/ Snaks to Wikitext escaped plain text.
We also want to provide such functions that emit rich wikitext, so that for example qualifiers and references can easily be formatted. Similar to what we did with the new mw.wikibase.entity:formatStatements, we need to create new functions for this, with a new name.
I suggest to name these mw.wikibase.formatValue/ mw.wikibase.formatValues or mw.wikibase.formatSnak/mw.wikibase.formatSnaks. The first one has the advantage that it doesn't contain Snak (a term we don't want to expose).