Шаблон:Str endswith: различия между версиями

Материал из Колыбели Солнца
Перейти к навигации Перейти к поиску
en>Amalthea
(create template; return "yes" if the first parameter string ends with the second parameter string.)
 
en>Amalthea
м (trim input)
Строка 1: Строка 1:
{{#ifeq: {{str left|{{{1|}}}|{{#expr:{{str len|{{{1|}}}}}-{{str len|{{{2|}}}}}}}}}{{{2|}}} | {{{1|}}}
{{#ifeq: {{str left|{{{1|}}}|{{#expr:{{str len|{{{1|}}}}}-{{str len|{{{2|}}}}}}}}}{{{str trim|{{{2|}}}}} | {{str trim|{{{1|}}}}}
   | yes
   | yes
}}<noinclude>
}}<noinclude>

Версия 05:02, 19 мая 2009

{{#ifeq: Шаблон:Str left{Шаблон:Str trim | Шаблон:Str trim

 | yes

}}

Ошибка Lua: Внутренняя ошибка: Интерпретатор завершил работу со статусом 1.