Modèle:Str sub long

La bibliothèque libre.
Documentation
Logo du langage Lua.
Ce modèle utilise le module String, un script écrit dans le langage de programmation Lua. Toute expérimentation devrait être conduite d’abord via une sous-page bac à sable ou dans votre espace utilisateur. Voir le Projet:Scribunto (de la Wikipédia en français) si vous voulez en savoir plus.

Utilisation[modifier]

Description du rôle de ce modèle à compléter.

Syntaxe[modifier]

{{Str sub long|text|start|length}} = Substring of text starting at start and containing length characters. Base 0: the first character is numbered 0, and so on, e.g. {{Str sub long|20090624130510|8|2}} returns the 2 characters starting at the 9th, i.e. "13"

Paramètres[modifier]

The template takes a substring of ''text'' starting at ''start'' and containing ''length'' characters.

Paramètres du modèle[Modifier les données du modèle]

ParamètreDescriptionTypeÉtat
Text1

The substring to be trimmed.

Chaîneobligatoire
Numeric position2

Numeric position of the starting character within the string

Nombreobligatoire
Count3

Number of characters for the substring

Nombreobligatoire