Template:Str sub/doc: Difference between revisions
Template page
More actions
create |
m format |
||
| (16 intermediate revisions by 12 users not shown) | |||
| Line 1: | Line 1: | ||
{{ | {{Lua|Module:String}} | ||
<!-- | {{TemplateBox | ||
|1 = 1 | |||
|1label-en= text | |||
|1d-en = The text to get the substring from. | |||
|1aliases = <!-- List of aliases, separated by / (a slash) --> | |||
|1type = <!-- number, string, string/wiki-user-name, string/wiki-page-name, string/line; unknown --> | |||
|1def = <!-- default value for the parameter --> | |||
|1stat = required | |||
=== | |2 = 2 | ||
|2label-en= start | |||
|2d-en = Zero-based index of the first character returned. | |||
|2aliases = | |||
|2type = number | |||
|2def = 0 | |||
|2stat = optional | |||
|3 = 3 | |||
|3label-en= length | |||
|3d-en = The number of returned characters. | |||
|3aliases = | |||
|3type = number | |||
|3def = 0 | |||
|3stat = optional | |||
|name = Str sub long | |||
|desc = This template returns the substring of <text> starting at <start> and containing <length> characters.<br>{{Nobold|Base 0: the first character is numbered 0, and so on, e.g. <nowiki>{{str sub long|20090624130510|8|2}}</nowiki> returns the 2 characters starting at the 9th, i.e. "{{str_sub|20090624130510|8|2}}".}} | |||
|usage-notes = | |||
=== | |namespace = template | ||
|usergroup = | |||
|shorthand = | |||
|mustbesubst = | |||
|setscats = | |||
|placement = | |||
|example = | |||
|example-value = | |||
|relieson = | |||
|seealso = {{String templates see also}} | |||
|print = | |||
|type = | |||
|i18n-method = - | |||
|i18n-desc = | |||
|i18n-subpage = | |||
|i18n-mediawiki-msg = | |||
|useTemplateData = only | |||
}} | |||