模板:Str endswith:修订间差异

    来自中国珂学院
    Cquote>Xeror
    (新模板)
     
    Cquote>Xeror
    小 (修正筆誤)
    第1行: 第1行:
    {{#ifeq: {{str left |nocategory={{{nocategory|}}} |{{{1|}}}|{{#expr:{{str len |nocategory={{{nocategory|}}} |{{{1|}}}}}-{{str len |nocategory={{{nocategory|}}} |{{{2|}}}}}}}}}{{trim |nocategory={{{nocategory|}}} |{{{2|}}}}} | {{trim |nocategory={{{nocategory|}}} |{{{1|}}}}}
    <includeonly>{{#ifeq: {{str left |nocategory={{{nocategory|}}} |{{{1|}}}|{{#expr:{{str len |nocategory={{{nocategory|}}} |{{{1|}}}}}-{{str len |nocategory={{{nocategory|}}} |{{{2|}}}}}}}}}{{trim |nocategory={{{nocategory|}}} |{{{2|}}}}} | {{trim |nocategory={{{nocategory|}}} |{{{1|}}}}}
       | 是
       | 是
    }}<noinclude>
    }}</includeonly><noinclude>
    這是{{tl|str endswith}}巨型模板。
    這是{{tl|str endswith}}巨型模板。



    2012年3月21日 (三) 17:45的版本

    這是{{str endswith}}巨型模板。

    如果第二個參數是第一個參數的結尾,它會傳回「是」。由於它用到{{str left}}和{{str len}},所以會受到它們的限制。兩個參數在使用前都會被裁切。

    例子

    特殊情況

    參見

    模板:字符串模板參見文字