Vorlage:Str sub: Unterschied zwischen den Versionen

Aus Android Wiki
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>

Aktuelle Version vom 22. Oktober 2015, 13:18 Uhr

Usage[Quelltext bearbeiten]

{{str_sub|text|start|end}} = Substring of text starting at start and going to end characters. Base 1: the first character is numbered 1, and so on, e.g. {{str_sub|20090624130510|1|4}} returns the 4 characters starting at the 1st or {{str_sub|20090624130510|7|8}} returns the 2 characters starting at the 7th.


MediaWiki.org
MediaWiki.org
Diese Seite basiert in ihrer ersten oder einer späteren Version auf dem Artikel „Template:Str_sub“ aus dem MediaWiki Wiki und steht, falls nicht anders angegeben, unter der Creative Commons Attribution-ShareAlike License. Auf MediaWiki.org ist eine Liste der Versionen und Autoren verfügbar.