सामग्रीमा जानुहोस्

ढाँचा:Str find long/कागजात

विकिपिडिया, एक स्वतन्त्र विश्वकोशबाट

{{str find|text|sub_string}} = Position of first appearance of sub_string in text.

  • Only searches first 80 characters of text. Returns -1 if sub_string not found in first 80 characters.
  • Character position is 1 based (not 0 based as usual in calculations).
  • "{{str find long|abc bde|a}}" gives "1"
  • "{{str find long|abc bde|b}}" gives "2"
  • "{{str find long|abc bde|c}}" gives "3"
  • "{{str find long|abc bde| }}" gives "4"
  • "{{str find long|abc bde|d}}" gives "6"
  • "{{str find long|abc bde|e}}" gives "7"
  • "{{str find long|abc bde|f}}" gives "-1"

Description of all string templates