Module:String/doc

From Wikibooks, open books for an open world
Jump to: navigation, search

Examples[edit]

  • {{#invoke:string|sub|[[Help:Contents]]|3|-3}} → Help:Contents
  • {{#invoke:string|length|Help:Contents}} → 13
  • {{#invoke:string|find|Help:Contents|Contents}} → 6
  • {{#invoke:string|find|Help:Contents|Contents|yes|no}} → yes
  • {{#invoke:string|find|Help:Contents|ABC|yes|no}} → no
  • {{#invoke:string|replace|Help:Contents|Contents|Lua}} → Help:Lua
  • {{#invoke:string|trim|--Help:Contents--|-}} → Help:Contents