Vorlage:Str sub: Unterschied zwischen den Versionen

Keine Änderung der Größe ,  22. Oktober 2015
keine Bearbeitungszusammenfassung
Keine Bearbeitungszusammenfassung
Keine Bearbeitungszusammenfassung
 
Zeile 1: Zeile 1:
<includeonly>{{{{{|safesubst:}}}#invoke:String|sub|{{{1}}}|{{{2}}}|{{{3}}}}}</includeonly><noinclude>
=== Usage ===
=== Usage ===
<code><nowiki>{{str_sub|</nowiki>''text''|''start''|''end''<nowiki>}}</nowiki></code> = Substring of ''text'' starting at ''start'' and going to ''end'' characters. Base 1: the first character is numbered 1, and so on, e.g. <nowiki>{{str_sub|20090624130510|1|4}}</nowiki> returns the 4 characters starting at the 1st or <nowiki>{{str_sub|20090624130510|7|8}}</nowiki> returns the 2 characters starting at the 7th.
<code><nowiki>{{str_sub|</nowiki>''text''|''start''|''end''<nowiki>}}</nowiki></code> = Substring of ''text'' starting at ''start'' and going to ''end'' characters. Base 1: the first character is numbered 1, and so on, e.g. <nowiki>{{str_sub|20090624130510|1|4}}</nowiki> returns the 4 characters starting at the 1st or <nowiki>{{str_sub|20090624130510|7|8}}</nowiki> returns the 2 characters starting at the 7th.


<includeonly>{{{{{|safesubst:}}}#invoke:String|sub|{{{1}}}|{{{2}}}|{{{3}}}}}</includeonly><noinclude>
{{MediaWiki|Template:Str_sub}}
{{MediaWiki|Template:Str_sub}}
</noinclude>
</noinclude>
11.008

Bearbeitungen