Basic Template #685
pietraferreira
started this conversation in
Templates Showcase
Replies: 2 comments 3 replies
-
<%*
let result = title.replace(/-/g, ' ')
result = result.charAt(0).toUpperCase() + result.slice(1);
tR += "---"
%>with <%*
let result = title.replace(/\b\w/g, c => c.toUpperCase());
tR += "---"
%>
[As a noob at regex, I rely alot on google and stackoverflow lol] ~welp |
Beta Was this translation helpful? Give feedback.
3 replies
-
|
Thanks! This looks like a good template for my initial incursion into Templater! When I inevitably fail, I promise to at least attempt to report it in a comic manner! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Uh oh!
There was an error while loading. Please reload this page.
-
This template should:
For example, a note named "something-i-am-studying.md" would have its title automatically generated as "Something i am studying" in the metadata and "# Something i am studying" in the body.
A nice feature would be to have the first letter of every word capitalized - but I haven't figured that out yet.
Beta Was this translation helpful? Give feedback.
All reactions