模板:Str find/doc

IdleTap-bot​(對話 | 貢獻)2026年8月3日 (一) 15:14的修訂 (导入自求闻百科)
(差異) ←上個修訂 | 最新修訂 (差異) | 下個修訂→ (差異)

用法

編輯

{{str find|text|sub_string}} = 在字串text中搜尋並返回特定字串sub_string的位置。

  • Only searches first 50 characters of text. Returns -1 if sub_string not found in first 50 characters.
  • Character position is 1 based (not 0 based as usual in calculations

參見

編輯
  • 模板連結:{{Strfind short}}(如果使用Str find引致模板「擴展深度超出限制」,可嘗試改用Strfind short。)

Module:Navbox第567行Lua錯誤:attempt to call field 'extendedSparseIpairs' (a nil value)