Template:Str endswith: Difference between revisions

    From Nonbinary Wiki
    m>Wikid77
    (changed from Template:Str_left to use {padleft:| len(1) - len(2) |{1} }, to reduce expansion depth to 14 levels from 16.)
    m (15 revisions imported from templatewiki:Template:Str_endswith)
     
    (9 intermediate revisions by 5 users not shown)
    Line 1: Line 1:
    {{#ifeq: {{padleft:|{{#expr:{{str len |nocategory={{{nocategory|}}} |{{{1|Abcdef}}}}}-{{str len |nocategory={{{nocategory|}}} |{{{2|ef}}}}} }}|{{{1|Abcdef}}} }}{{str trim |nocategory={{{nocategory|}}} |{{{2|ef}}}}} | {{str trim |nocategory={{{nocategory|}}} |{{{1|Abcdef}}}}}
    {{#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).