[{"data":1,"prerenderedAt":338},["ShallowReactive",2],{"/reference/templates":3,"/reference/templates-surround":330},{"id":4,"title":5,"body":6,"description":320,"extension":321,"links":322,"meta":323,"navigation":325,"path":326,"seo":327,"stem":328,"__hash__":329},"docs/2.reference/templates.md","Templates",{"type":7,"value":8,"toc":303},"minimark",[9,24,37,43,47,52,62,69,74,81,92,95,101,105,108,120,126,129,149,153,157,172,178,182,185,192,198,202,205,211,215,218,250,254],[10,11,12,13,18,19,23],"p",{},"Templates allow you to prefill the content of an object- you can prefill ",[14,15,17],"a",{"href":16},"/reference/properties","properties"," and ",[14,20,22],{"href":21},"/reference/blocks","blocks"," in your objects.",[10,25,26,27,31,32,36],{},"This is very convenient if you have repeating workflows for which you want to set up predefined content because it saves you time, with no need to repeatedly set up each workflow. Templates are available for ",[14,28,30],{"href":29},"/reference/dates-and-daily-notes","daily notes",", pages, and ",[14,33,35],{"href":34},"/tutorials/custom-content-types","custom object types",".",[10,38,39],{},[40,41,42],"strong",{},"Here is a Quick Tip video about templates to see them in action:",[44,45],"youtube",{"id":46},"iHfr2zQ9ek4",[48,49,51],"h2",{"id":50},"the-basics","The Basics",[53,54,55,59],"ul",{},[56,57,58],"li",{},"Templates belong to one object type only. You can't apply the same template to multiple object types.",[56,60,61],{},"When applying a template, all referenced objects (like tags, obect select properties, or links in your content) will not be duplicated but linked.",[10,63,64],{},[65,66],"img",{"alt":67,"src":68},"Template section on empty meeting","/reference/media/project-template.png",[70,71,73],"h3",{"id":72},"creating-and-editing-a-template","Creating and editing a template",[10,75,76,77,36],{},"To create a template, go to ",[78,79,80],"code",{},"Settings > Object Types > Choose your type > Scroll to \"Define templates\" > \"+ New Template\"",[10,82,83,84,18,88,36],{},"Your template is a blank canvas. You can do anything in a template that you can do in a standard object including ",[14,85,87],{"href":86},"./blocks","block formatting",[14,89,91],{"href":90},"/tutorials/networked-note-taking","linking",[10,93,94],{},"You can name your template in the box at the top of the screen.",[10,96,97],{},[65,98],{"alt":99,"src":100},"Template settings","/reference/media/milestone-template.png",[70,102,104],{"id":103},"applying-a-template","Applying a template",[10,106,107],{},"There are many ways to apply a template you've created.",[53,109,110,113],{},[56,111,112],{},"If you already have an object created, you can simply choose your template from the template section at the bottom of your empty object.",[56,114,115,116,119],{},"You can also create an object from a template with the ",[78,117,118],{},"+ New"," button in the left sidebar.",[10,121,122],{},[65,123],{"alt":124,"src":125},"Templates via new content button","/reference/media/new-template.png",[10,127,128],{},"You can directly apply a template from your keyboard too:",[53,130,131,142],{},[56,132,133,134,137,138,141],{},"Type ",[78,135,136],{},"Cmd U"," (Mac) or ",[78,139,140],{},"Ctrl + U"," (Windows) and then the name of the template (that you defined when setting it up), press enter and you have created the object and applied the template all at once.",[56,143,144,145,148],{},"Or Type ",[78,146,147],{},"/\u003Cname of template>"," in any page and enter, which will also create the object and apply the template at once.\nselect the template you want to use.",[48,150,152],{"id":151},"develop-your-templates-further","Develop your templates further",[70,154,156],{"id":155},"date-variables-in-titles","Date variables in titles",[10,158,159,160,163,164,167,168,36],{},"If you have a naming schema for your objects based on a date, for example, you want to name your weekly meeting ",[78,161,162],{},"Weekly - 2023-02-1",", you can use a date syntax in the title. This will be replaced with the current date when applying the template. For the example above, you'd set the title of your template to ",[78,165,166],{},"Journal Entry - {date:YYYY-MM}-1",". You can find more information about all possible date formatting options ",[14,169,171],{"href":170},"/reference/templates/date-formatting","here",[10,173,174],{},[65,175],{"alt":176,"src":177},"Weekly meeting template with date syntax","/reference/media/date-variable.png",[70,179,181],{"id":180},"default-templates","Default Templates",[10,183,184],{},"You may want to set some templates as default, such as a daily note template or a colleague template for your Person object type.",[10,186,187,188,191],{},"Go to the ",[78,189,190],{},"Object type settings > Define Templates > press the star icon next to the relevant template",". It will be applied automatically going forward.",[10,193,194],{},[65,195],{"alt":196,"src":197},"default template","/reference/media/default-template.jpg",[70,199,201],{"id":200},"variable-queries-in-templates","Variable queries in templates",[10,203,204],{},"Variable queries allow you to build templates that include smart queries, which work immediately without any manual adjustment.",[10,206,207,208,36],{},"Learn about this ",[14,209,171],{"href":210},"./queries#variable-queries-in-templates",[48,212,214],{"id":213},"what-we-have-planned-for-templates","What we have planned for templates",[10,216,217],{},"The current implementation of templates is version 1.0. Here are some more features you can vote for:",[53,219,220,238],{},[56,221,222,225,228,229,232,233,36],{},[40,223,224],{},"Block templates",[226,227],"br",{},"Save a group of blocks and name it to reuse it again. For example, you could define an \"info box\" as a block template and reuse this block group with all its styles by typing ",[78,230,231],{},"+info box"," in your note. You can vote for block templates ",[14,234,171],{"href":235,"rel":236},"https://feedback.capacities.io/p/block-templates",[237],"nofollow",[56,239,240,243,245,246,36],{},[40,241,242],{},"More template automation and logic",[226,244],{},"Like the date formatting options, we want to allow more automation, like prefilling date properties, self-referencing properties, and customizable duplication logic. You can vote and add your requests here ",[14,247,171],{"href":248,"rel":249},"https://feedback.capacities.io/p/more-template-automation-and-logic",[237],[48,251,253],{"id":252},"faqs","FAQs",[53,255,256,268,280,291],{},[56,257,258,261,263,264,267],{},[40,259,260],{},"How do I add today's date to a template, so that when the template is triggered, today's date is filled?",[226,262],{},"We do not have support for this. Please vote ",[14,265,171],{"href":248,"rel":266},[237]," for that.",[56,269,270,273,275,276,36],{},[40,271,272],{},"Can I turn any existing page into a template?",[226,274],{},"We don't have support for that. Vote ",[14,277,171],{"href":278,"rel":279},"https://feedback.capacities.io/p/make-any-page-a-template-new-save-as-template-option-to-recycle-favorite-formats",[237],[56,281,282,285,275,287,36],{},[40,283,284],{},"Is there an option to hide/show certain properties per template?",[226,286],{},[14,288,171],{"href":289,"rel":290},"https://feedback.capacities.io/p/templates-showhide-properties",[237],[56,292,293,296,298,299,36],{},[40,294,295],{},"Is it possible to duplicate templates?",[226,297],{},"Not right now. Vote ",[14,300,171],{"href":301,"rel":302},"https://feedback.capacities.io/p/ability-to-duplicate-template",[237],{"title":304,"searchDepth":305,"depth":306,"links":307},"",1,2,[308,313,318,319],{"id":50,"depth":306,"text":51,"children":309},[310,312],{"id":72,"depth":311,"text":73},3,{"id":103,"depth":311,"text":104},{"id":151,"depth":306,"text":152,"children":314},[315,316,317],{"id":155,"depth":311,"text":156},{"id":180,"depth":311,"text":181},{"id":200,"depth":311,"text":201},{"id":213,"depth":306,"text":214},{"id":252,"depth":306,"text":253},"Templates allow you to prefill the content of an object- you can prefill properties and blocks in your objects.","md",null,{"image":324},"/reference/media/templates-cover.png",true,"/reference/templates",{"title":5,"description":320},"2.reference/templates","SCbNGXaYO474UMNN6AlAVhmzM8tFbqxmfefyRIwQ3ZU",[331,335],{"title":332,"path":333,"stem":334,"children":-1},"Task Management","/reference/task-management","2.reference/task-management",{"title":336,"path":170,"stem":337,"children":-1},"Date formatting in templates","2.reference/templates/date-formatting",1775120784161]