Jump to content

Template:Encodefirst: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
Reverted 1 edit by Infogivver (talk): Not helpful (TW)
Swap out nested string functions for Module:MultiReplace, which is quicker. Maintains the behaviour of trimming the input string.
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
{{#switch:{{padleft:|1|{{{1|}}}}}|:=&#58;{{str right|{{{1}}}|1}}|;=&#59;{{str right|{{{1}}}|1}}|*=&#42;{{str right|{{{1}}}|1}}|#=&#35;{{str right|{{{1}}}|1}}|#default={{{1|}}}}}<noinclude>
{{#invoke:MultiReplace|main|1={{{1}}}|2=^:|3=&#58;|4=^;|5=&#59;|6=^*|7=&#42;|8=^#|9=&#35;}}<noinclude>
{{Documentation}}
{{Documentation}}
</noinclude>
</noinclude>

Latest revision as of 18:26, 4 October 2021

{{{1}}}