Skip to content

Instantly share code, notes, and snippets.

@vssun
Created August 19, 2011 00:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vssun/1155734 to your computer and use it in GitHub Desktop.
Save vssun/1155734 to your computer and use it in GitHub Desktop.
Template for trimming some characters from right (Called by template:Of, template:Oflevel2)
<includeonly>{{#sub:{{{1}}}|0|{{#expr:{{#Len:{{{1}}}}}-{{{2}}}}}}}</includeonly><noinclude>നൽകുന്ന വാചകത്തിന്റെ അവസാനഭാഗത്തു നിന്നും നിശ്ചിതയെണ്ണം അക്ഷരങ്ങൾ/ചിഹ്നങ്ങൾ ഒഴിവാക്കി തിരിച്ചുനൽകുന്നു.
#ഒന്നാമത്തെ പരാമീറ്റർ: വാചകം
#രണ്ടാമത്തെ പരാമീറ്റർ: എത്ര അക്ഷരങ്ങൾ/ചിഹ്നങ്ങൾ ഒഴിവാക്കണം?
</noinclude>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment