Vorlage:Str find

Aus Kitakien

(Unterschied zwischen Versionen)
Wechseln zu: Navigation, Suche
K (Schützte „Vorlage:Str find“: Selten zu ändernde Vorlage ([edit=autoconfirmed] (unbeschränkt) [move=sysop] (unbeschränkt)))
 
(Der Versionsvergleich bezieht 18 dazwischenliegende Versionen mit ein.)
Zeile 1: Zeile 1:
-
<includeonly>{{#switch:*{{{2|}}}*
+
{{#titleparts: {{str find/logic|{{{1|}}}|{{{2|}}}|{{str len|*{{{2|}}}*}}-2}}-1 | 1 }}<noinclude>{{pp-template}}{{dokumentation}}</noinclude>
-
|**=-1
+
-
|*{{str_index|{{{1|}}}|1}}*=1
+
-
|*{{str_index|{{{1|}}}|2}}*=2
+
-
|*{{str_index|{{{1|}}}|3}}*=3
+
-
|*{{str_index|{{{1|}}}|4}}*=4
+
-
|*{{str_index|{{{1|}}}|5}}*=5
+
-
|*{{str_index|{{{1|}}}|6}}*=6
+
-
|*{{str_index|{{{1|}}}|7}}*=7
+
-
|*{{str_index|{{{1|}}}|8}}*=8
+
-
|*{{str_index|{{{1|}}}|9}}*=9
+
-
|*{{str_index|{{{1|}}}|10}}*=10
+
-
|*{{str_index|{{{1|}}}|11}}*=11
+
-
|*{{str_index|{{{1|}}}|12}}*=12
+
-
|*{{str_index|{{{1|}}}|13}}*=13
+
-
|*{{str_index|{{{1|}}}|14}}*=14
+
-
|*{{str_index|{{{1|}}}|15}}*=15
+
-
|*{{str_index|{{{1|}}}|16}}*=16
+
-
|*{{str_index|{{{1|}}}|17}}*=17
+
-
|*{{str_index|{{{1|}}}|18}}*=18
+
-
|*{{str_index|{{{1|}}}|19}}*=19
+
-
|*{{str_index|{{{1|}}}|20}}*=20
+
-
|*{{str_index|{{{1|}}}|21}}*=21
+
-
|*{{str_index|{{{1|}}}|22}}*=22
+
-
|*{{str_index|{{{1|}}}|23}}*=23
+
-
|*{{str_index|{{{1|}}}|24}}*=24
+
-
|*{{str_index|{{{1|}}}|25}}*=25
+
-
|*{{str_index|{{{1|}}}|26}}*=26
+
-
|*{{str_index|{{{1|}}}|27}}*=27
+
-
|*{{str_index|{{{1|}}}|28}}*=28
+
-
|*{{str_index|{{{1|}}}|29}}*=29
+
-
|*{{str_index|{{{1|}}}|30}}*=30
+
-
|*{{str_index|{{{1|}}}|31}}*=31
+
-
|*{{str_index|{{{1|}}}|32}}*=32
+
-
|*{{str_index|{{{1|}}}|33}}*=33
+
-
|*{{str_index|{{{1|}}}|34}}*=34
+
-
|*{{str_index|{{{1|}}}|35}}*=35
+
-
|*{{str_index|{{{1|}}}|36}}*=36
+
-
|*{{str_index|{{{1|}}}|37}}*=37
+
-
|*{{str_index|{{{1|}}}|38}}*=38
+
-
|*{{str_index|{{{1|}}}|39}}*=39
+
-
|*{{str_index|{{{1|}}}|40}}*=40
+
-
|*{{str_index|{{{1|}}}|41}}*=41
+
-
|*{{str_index|{{{1|}}}|42}}*=42
+
-
|*{{str_index|{{{1|}}}|43}}*=43
+
-
|*{{str_index|{{{1|}}}|44}}*=44
+
-
|*{{str_index|{{{1|}}}|45}}*=45
+
-
|*{{str_index|{{{1|}}}|46}}*=46
+
-
|*{{str_index|{{{1|}}}|47}}*=47
+
-
|*{{str_index|{{{1|}}}|48}}*=48
+
-
|*{{str_index|{{{1|}}}|49}}*=49
+
-
|*{{str_index|{{{1|}}}|50}}*=50
+
-
|-1
+
-
}}</includeonly><noinclude>
+
-
 
+
-
<nowiki>{{str_find|</nowiki>''text''|''character''<nowiki>}}</nowiki> = Position of first appearance of ''character'' in ''text''.
+
-
 
+
-
Only searches first 50 characters of ''text''.  Returns -1 if ''character'' not found in first 50 characters.</noinclude>
+

Aktuelle Version vom 15:35, 9. Dez. 2009

1Vorlage:Pp-template

Datei:Information.svg Dokumentation

Diese Vorlage dient der Suche eines Teilstrings in einem Text.

Kopiervorlage

{{str find|Text|Teilstring}}

Parameter

  • Sucht nur die ersten 50 Zeichen von Text. Gibt -1 zurück, wenn Teilstring nicht in den ersten 80 Zeichen gefunden wird.
  • Die Zeichenposition ist 1 basiert (nicht 0 basiert wie sonst bei Berechnungen).


Wenn du Fragen zu dieser Vorlage hast, dann kannst du auf der Seite Kitakien Diskussion:Wikiprojekt Vorlage fragen.
Persönliche Werkzeuge