Résumé

String/Documentation

“ An error is also generated if no match is found. If one adds the parameter ignore_errors=true, then the error will be suppressed and an empty string will be returned on any failure.
For information on constructing Lua patterns, a form of [regular expression] , see:
http://www.lua.org/manual/5.1/manual.html#5.4.1 http://www.mediawiki.org/wiki/Extension:Scribunto/Lua_reference_manual#Patterns http://www.mediawiki.org/wiki/Extension:Scribunto/Lua_reference_manual#Ustring_patterns pos This function returns a single character from the target string at position pos.
”
Source : Wikisource

String/Documentation

“ The string whose length to report If invoked using named parameters, Mediawiki will automatically remove any leading or trailing whitespace from the target string.
sub This function returns a substring of the target string at specified indices.
Usage:
{{#invoke:String|sub|target_string|start_index|end_index}} OR
{{#invoke:String|sub|s=target_string|i=start_index|j=end_index}} Parameters
s: The string to return a subset of i: The fist index of the substring to return, defaults to 1. j: The last index of the string to return, defaults to the last character.
”
Source : Wikisource

String/Documentation

“ Aide · Catégorie:Modules · Index complet des modules et de leur documentation · {{Module|nom du module}} · {{Modèle utilisant les modules Lua}}
Modules de base : Documentation module · String · List · Wikibase · TNT Le module String (un mot anglais signifiant chaîne de caractères) permet de manipuler des chaînes de caractères.
”
Source : Wikisource

Chaque jour avec Kwize, l'actualité mise en perspective par la littérature