"සැකිල්ල:PAGENAMEBASE" හි සංශෝධන අතර වෙනස්කම්

Content deleted Content added
සුළු Protected Template:PAGENAMEBASE: Highly visible template: Used in Template:Taxobox ([edit=sysop] (indefinite) [move=sysop] (indefinite))
updated to use newer, faster, stronger {{tl|strfind short}}
1 පේළිය:
{{#ifexpr:Strloc prefix|{{str find{1|{{PAGENAME}}|(}} != -1}|
| strloc= {{str ≤ len strfind_short|{{{1| {{PAGENAME}} }}}|(|1| 49
lenstr= {{strlen_quick|{{{1|{{PAGENAME}}}}}|}}}}-2
<!-- The max {{str find}} can handle is 50 -->
| {{str left| {{PAGENAME}} | {{#expr:{{str find|{{PAGENAME}}|(}}-2}} }} <!-- Short enough for {{str find}} to work, and contains a "(" -->
| {{PAGENAME}} <!-- Too long for {{str find}} -->
}} <!-- PAGENAME contains a "(" -->
| {{PAGENAME}} <!-- No "(" found in PAGENAME -->
}}<noinclude>
{{documentation}}
"https://si.wikipedia.org/wiki/සැකිල්ල:PAGENAMEBASE" වෙතින් සම්ප්‍රවේශනය කෙරිණි