模板:Str endswith:修订间差异
Cquote>MerlIwBot 小 (机器人添加:ne:ढाँचा:Str endswith) |
Cquote>MerlIwBot 小 (机器人添加:tr:Şablon:Str endswith, it:Template:Str endswith) |
||
| 第33行: | 第33行: | ||
[[en:Template:Str endswith]] | [[en:Template:Str endswith]] | ||
[[id:Templat:Str endswith]] | [[id:Templat:Str endswith]] | ||
[[it:Template:Str endswith]] | |||
[[ja:Template:Str endswith]] | [[ja:Template:Str endswith]] | ||
[[ne:ढाँचा:Str endswith]] | [[ne:ढाँचा:Str endswith]] | ||
[[ru:Шаблон:Str endswith]] | [[ru:Шаблон:Str endswith]] | ||
[[tr:Şablon:Str endswith]] | |||
</noinclude> | </noinclude> | ||
2012年7月28日 (六) 05:49的版本
模板:Translating 這是{{str endswith}}巨型模板。
如果第二個參數是第一個參數的結尾,它會傳回「是」。由於它用到{{str left}}和{{str len}},所以會受到它們的限制。兩個參數在使用前都會被裁切。
例子
{{-{}-str endswith|foo (bar)|(bar)}}→{{-{}-str endswith|foo|bar}}→{{-{}-str endswith|(bar)|foo (bar)}}→{{-{}-str endswith|foo bar | bar}}→
- 特殊情況
{{-{}-str endswith}}→{{-{}-str endswith||}}→{{-{}-str endswith|| }}→{{-{}-str endswith| |}}→{{-{}-str endswith|[499 characters]X|X}}→{{-{}-str endswith|[499 characters]X|Y}}→{{-{}-str endswith|[499 characters]X|[same 499 characters]X}}→{{-{}-str endswith|[499 characters]X|[same 499 characters]Y}}→{{-{}-str endswith|[500 characters]X|X}}→ 1{{-{}-str endswith|[500 characters]X|Y}}→
參見
bn:টেমপ্লেট:Str endswith bs:Šablon:Niz završavasa en:Template:Str endswith id:Templat:Str endswith it:Template:Str endswith ja:Template:Str endswith ne:ढाँचा:Str endswith ru:Шаблон:Str endswith tr:Şablon:Str endswith