Template:Strfind short/testcases
Appearance
limits in MediaWiki; see the HTML comment "NewPP limit report" in the rendered page. to examine the results of template uses. You can also use Special:ExpandTemplates You can test how this page looks in the different skins and parsers with these links: |
WikiCode | Expected result | Main template | Sandbox |
---|---|---|---|
{{strfind short}} |
0 | 0 | 0 |
{{strfind short|abcdef|-|1}} |
0 | 0 | 0 |
{{strfind short|abc-def|-|1}} |
4 | 4 | 4 |
{{strfind short|abcdef|dc|2}} |
0 | 0 | 0 |
{{strfind short|abcdedcf|dc|2}} |
6 | 6 | 6 |
{{strfind short|10400|-|1}} |
0 | 0 | 0 |
{{strfind short|10400500600700800|-|1}} |
0 | 0 | 0 |
{{strfind short|10400500600700-800|-|1}} |
15 | 15 | 15 |