Template:Str endswith: Difference between revisions

    From Nonbinary Wiki
    m>Amalthea
    (create template; return "yes" if the first parameter string ends with the second parameter string.)
     
    m (15 revisions imported from templatewiki:Template:Str_endswith)
     
    (14 intermediate revisions by 9 users not shown)
    Line 1: Line 1:
    {{#ifeq: {{str left|{{{1|}}}|{{#expr:{{str len|{{{1|}}}}}-{{str len|{{{2|}}}}}}}}}{{{2|}}} | {{{1|}}}
    {{#invoke:Str endswith|main}}<noinclude>
      | yes
    }}<noinclude>
     
    {{documentation}}
    {{documentation}}
     
    {{En-WP attribution notice|Template:Str endswith}}
    <!-- Add categories and interwikis to the /doc subpage, not here! -->
    </noinclude>
    </noinclude>

    Latest revision as of 09:59, 16 November 2019

    yes

    Template documentation[create]
    Wikipedia logo This template uses material from the Wikipedia template Template:Str endswith, which is released under the Creative Commons Attribution-ShareAlike 3.0 Unported License (view authors).