Jump to content

Template:Redirect-synonym and Template:Redirect-synonym/sandbox: Difference between pages

(Difference between pages)
Page 1
Page 2
Content deleted Content added
avoid repetition
 
Use the "endswith" function which reads more naturally than taking a substring.
 
Line 1: Line 1:
{{Hatnote|"{{{1}}}" redirects here. The term may also refer to {{{2}}}.}}{{#switch:{{{1<noinclude>|REDIRECT</noinclude>}}}|REDIRECT|REDIRECT1|REDIRECT2|REDIRECT3|TERM = | #default = {{#ifexist:{{{1}}}||{{main other|[[Category:Missing redirects]]}}}}}}<noinclude>
{{Hatnote|"{{{1}}}" redirects here. It may also refer to {{#if:{{str endswith|1={{{2}}}|2=]]}}|{{{2}}}|[[{{{2}}}]]}}.}}{{#switch:{{{1<noinclude>|REDIRECT</noinclude>}}}|REDIRECT|REDIRECT1|REDIRECT2|REDIRECT3|TERM = | #default = {{#ifexist:{{{1}}}||{{main other|[[Category:Missing redirects]]}}}}}}<noinclude>


{{Documentation}}
{{Documentation}}