parent
f3849d9384
commit
3705ca9c5c
@ -1,4 +1,4 @@
|
||||
{
|
||||
"jsFiles": "",
|
||||
"jsFolder": "00.01 Admin/dv-views"
|
||||
"jsFolder": "00.01 Admin"
|
||||
}
|
File diff suppressed because one or more lines are too long
@ -1,3 +1,3 @@
|
||||
{
|
||||
"folder": "Admin/Templates"
|
||||
"folder": "00.01 Admin/Templates"
|
||||
}
|
@ -0,0 +1,11 @@
|
||||
class templaterFunc {
|
||||
createNewFile(tp) {
|
||||
const fileName = await tp.system.prompt("File name")
|
||||
const templateName = await tp.system.prompt("Template name") tp.file.create_new(tp.file.find_tfile("Template " + templateName), fileName, true, tp.file.folder())
|
||||
}
|
||||
|
||||
getFileName(tp, prompt) {
|
||||
const tempresult = await tp.system.prompt(prompt)
|
||||
return tempresult
|
||||
}
|
||||
}
|
@ -0,0 +1,5 @@
|
||||
<%*
|
||||
const fileName = await tp.system.prompt("File name")
|
||||
const templateName = await tp.system.prompt("Template name")
|
||||
tp.file.create_new(tp.file.find_tfile("Template " + templateName), fileName, tp.file.folder())
|
||||
%>
|
@ -0,0 +1,32 @@
|
||||
[Forum](https://forum.obsidian.md)
|
||||
|
||||
 
|
||||
 
|
||||
|
||||
```button
|
||||
name Create Note
|
||||
type append template
|
||||
action NewFile
|
||||
color blue
|
||||
templater true
|
||||
```
|
||||
|
||||
```button
|
||||
name Create Note
|
||||
type append template
|
||||
action NewFile1
|
||||
color blue
|
||||
templater true
|
||||
```
|
||||
|
||||
const {templaterFunc} = customJS
|
||||
templaterFunc.createNewFile(tp)
|
||||
%>
|
||||
|
||||
const {templaterFunc} = customJS
|
||||
templaterFunc.createNewFile(tp)
|
||||
%>
|
||||
|
||||
const {templaterFunc} = customJS
|
||||
templaterFunc.createNewFile(tp)
|
||||
%>
|
@ -0,0 +1,91 @@
|
||||
---
|
||||
|
||||
Tag: ["Nordic design", "cosy"]
|
||||
Date: 2021-10-24
|
||||
DocType: "Place"
|
||||
Hierarchy: "NonRoot"
|
||||
TimeStamp:
|
||||
location:
|
||||
Place:
|
||||
Type: Restaurant
|
||||
SubType: Modern
|
||||
Style: ["Swedish", "Japanese"]
|
||||
Location: Mayfair
|
||||
Country: UK
|
||||
Status: Tested
|
||||
|
||||
---
|
||||
|
||||
Parent:: [[@Restaurants London|Restaurants in London]]
|
||||
|
||||
---
|
||||
|
||||
 
|
||||
|
||||
```button
|
||||
name Save
|
||||
type command
|
||||
action Save current file
|
||||
id Save
|
||||
```
|
||||
^button-PantechniconSave
|
||||
|
||||
 
|
||||
|
||||
# Pantechnicon
|
||||
|
||||
 
|
||||
|
||||
```ad-abstract
|
||||
title: Summary
|
||||
collapse: open
|
||||
Nice shopping & restaurant space between Sloane Square and Hyde Park corner.
|
||||
```
|
||||
|
||||
 
|
||||
|
||||
```toc
|
||||
style: number
|
||||
```
|
||||
|
||||
 
|
||||
|
||||
---
|
||||
|
||||
 
|
||||
|
||||
### Contact
|
||||
|
||||
 
|
||||
|
||||
```ad-address
|
||||
~~~
|
||||
19 Motcomb Street
|
||||
London SW1X 8LB
|
||||
United Kingdom
|
||||
~~~
|
||||
```
|
||||
|
||||
 
|
||||
|
||||
Phone:: <a href="Tel:+442070345426">0207 034 5426</a>
|
||||
|
||||
Email:: reservations@pantechnicon.com
|
||||
|
||||
Website:: https://www.pantechnicon.com
|
||||
|
||||
|
||||
 
|
||||
|
||||
---
|
||||
|
||||
 
|
||||
|
||||
### Notes
|
||||
|
||||
 
|
||||
|
||||
Loret ipsum
|
||||
|
||||
 
|
||||
 
|
Loading…
Reference in new issue