Format syntax
Template | Description |
---|---|
{{DATE}} | Outputs the current date in YYYY-MM-DD format. You could write {{DATE+3}} to offset the date with 3 days. You can use +-3 to offset with -3 days. |
{{DATE:<DATEFORMAT>}} | Replace <DATEFORMAT> with a Moment.js date format. You could write {{DATE<DATEFORMAT>+3}} to offset the date with 3 days. |
{{VDATE:<variable name>, <date format>}} | You'll get prompted to enter a date and it'll be parsed to the given date format. You could write 'today' or 'in two weeks' and it'll give you the date for that. Works like variables, so you can use the date in multiple places with different formats - enter once, format many times! Example: {{VDATE:date,YYYY}}/{{VDATE:date,MM}}/{{VDATE:date,DD}} REQUIRES THE NATURAL LANGUAGE DATES PLUGIN! |
{{VALUE}} or {{NAME}} | Interchangeable. Represents the value given in an input prompt. If text is selected in the current editor, it will be used as the value. When using the QuickAdd API, this can be passed programmatically using the reserved variable name 'value'. |
{{VALUE:<variable name>}} | You can now use variable names in values. They'll get saved and inserted just like values, but the difference is that you can have as many of them as you want. Use comma separation to get a suggester rather than a prompt. |
{{VALUE:<variable name>|<default>}} | Same as above, but with a default value. If you leave the prompt empty, the default value will be used instead. Example: {{VALUE:name|Anonymous}} will use "Anonymous" if no input is provided. |
{{LINKCURRENT}} | A link to the file from which the template is activated from. [[link]] format. |
{{MACRO:<MACRONAME>}} | Execute a macro and write the return value here. |
{{TEMPLATE:<TEMPLATEPATH>}} | Include templates in your format . Supports Templater syntax. |
{{MVALUE}} | Math modal for writing LaTeX. Use CTRL + Enter to submit. |
{{FIELD:<FIELDNAME>}} | Suggest the values of FIELDNAME anywhere {{FIELD:FIELDNAME}} is used. Fields are YAML fields, and the values represent any value this field has in your vault. If there exists no such field or value, you are instead prompted to enter one.Enhanced Filtering Options: β’ {{FIELD:fieldname|folder:path/to/folder}} - Only suggest values from files in specific folderβ’ {{FIELD:fieldname|tag:tagname}} - Only suggest values from files with specific tagβ’ {{FIELD:fieldname|inline:true}} - Include Dataview inline fields (fieldname:: value)β’ Combine filters: {{FIELD:fieldname|folder:daily|tag:work|inline:true}} This is currently in beta, and the syntax can changeβleave your thoughts here. |
{{selected}} | The selected text in the current editor. Will be empty if no active editor exists. |