Jump to content

Module:String/doc

From Wikibooks, open books for an open world

Examples

[edit source]
  • {{#invoke:string|sub|[[Help:Contents]]|3|-3}} → Help:Contents
  • {{#invoke:string|length|Help:Contents}}Script error: The function "length" does not exist.
  • {{#invoke:string|find|Help:Contents|Contents}} → 6
  • {{#invoke:string|find|Help:Contents|Contents|yes|no}} → 6
  • {{#invoke:string|find|Help:Contents|ABC|yes|no}} → 0
  • {{#invoke:string|replace|Help:Contents|Contents|Lua}} → Help:Lua
  • {{#invoke:string|trim|--Help:Contents--|-}}Script error: The function "trim" does not exist.