Module:Ustring/doc: Difference between revisions

Content deleted Content added
escape by only ^\ is enough
m update link
Line 1:
{{Module rating |release<!-- Values: pre-alpha • alpha • beta • release • protected -- If a rating not needed/relevant, delete this template call -->}}
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) -->
This module directly imports all functions from the {{luaref|Ustring library|mw.ustring}} library. Documentation for each function can be found there.
 
The module takes an indefinite number of arguments. All arguments are coerced as number type if possible. If you wish for something to remain a string, you can simply escape it by insert <code>\</code> at the beginning of the string.
Line 9:
== Usage ==
 
<code><nowiki>{{</nowiki>#invoke:{{BASEPAGENAME}}|''function_name''|arg1|arg2|...}}</code> is equivalent to {{luaref|mw.ustringUstring library|mw.ustring.''function_name''|args=arg1, arg2, ...}}
 
===Example using mw.ustring.sub===