Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:art: https://github.com/siyuan-note/siyuan/issues/14394#issuecomment-4747687317

Daniel47b5bcbf2c56
diff --git a/app/guide/20210808180117-6v0mkxr/20200923234011-ieuun1p/20210808180303-xaduj2o/20201204184532-3qm9l8n.sy b/app/guide/20210808180117-6v0mkxr/20200923234011-ieuun1p/20210808180303-xaduj2o/20201204184532-3qm9l8n.sy
index 3c31d6697d..f8b883dc7f 100644
--- a/app/guide/20210808180117-6v0mkxr/20200923234011-ieuun1p/20210808180303-xaduj2o/20201204184532-3qm9l8n.sy
+++ b/app/guide/20210808180117-6v0mkxr/20200923234011-ieuun1p/20210808180303-xaduj2o/20201204184532-3qm9l8n.sy
@@ -6,7 +6,7 @@
"id": "20201204184532-3qm9l8n",
"title": "Template snippet",
"type": "doc",
- "updated": "20250828155251"
+ "updated": "20260619110501"
},
"Children": [
{
@@ -57,7 +57,7 @@
"HeadingLevel": 2,
"Properties": {
"id": "20210104091444-jy56z0p",
- "updated": "20250828155251"
+ "updated": "20260619110501"
},
"Children": [
{
@@ -215,7 +215,7 @@
"ListData": {},
"Properties": {
"id": "20210104091444-mwbvc9m",
- "updated": "20250828155251"
+ "updated": "20260619110501"
},
"Children": [
{
@@ -249,15 +249,7 @@
},
{
"Type": "NodeText",
- "Data": "​: Use this variable to insert the current document name. For example, if the "
- },
- {
- "Type": "NodeText",
- "Data": "template"
- },
- {
- "Type": "NodeText",
- "Data": " content is "
+ "Data": "​: Use this variable to insert the current document name. For example, if the template content is "
},
{
"Type": "NodeTextMark",
@@ -451,15 +443,7 @@
},
{
"Type": "NodeText",
- "Data": "​: This function is used to query the "
- },
- {
- "Type": "NodeText",
- "Data": "database"
- },
- {
- "Type": "NodeText",
- "Data": ", and the return value is a list of blocks"
+ "Data": "​: This function is used to query the database, and the return value is a list of blocks"
}
]
},
@@ -524,15 +508,7 @@
},
{
"Type": "NodeText",
- "Data": "​: This function is used to query the "
- },
- {
- "Type": "NodeText",
- "Data": "database"
- },
- {
- "Type": "NodeText",
- "Data": " based on the block ID, and the return value is block"
+ "Data": "​: This function is used to query the database based on the block ID, and the return value is block"
}
]
},
@@ -596,15 +572,7 @@
},
{
"Type": "NodeText",
- "Data": "​: This function is used to query the "
- },
- {
- "Type": "NodeText",
- "Data": "database"
- },
- {
- "Type": "NodeText",
- "Data": ", and the return value is a list of spans"
+ "Data": "​: This function is used to query the database, and the return value is a list of spans"
}
]
},
@@ -669,15 +637,7 @@
},
{
"Type": "NodeText",
- "Data": "​: This function is used to query the "
- },
- {
- "Type": "NodeText",
- "Data": "database"
- },
- {
- "Type": "NodeText",
- "Data": " and the return value is a result set"
+ "Data": "​: This function is used to query the database and the return value is a result set"
}
]
},
@@ -1600,6 +1560,97 @@
]
}
]
+ },
+ {
+ "ID": "20260619110501-lne9tlj",
+ "Type": "NodeListItem",
+ "ListData": {
+ "BulletChar": 42,
+ "Marker": "Kg=="
+ },
+ "Properties": {
+ "id": "20260619110501-lne9tlj",
+ "updated": "20260619110501"
+ },
+ "Children": [
+ {
+ "ID": "20260619110501-arxyui9",
+ "Type": "NodeParagraph",
+ "Properties": {
+ "id": "20260619110501-arxyui9",
+ "updated": "20260619110501"
+ },
+ "Children": [
+ {
+ "Type": "NodeText",
+ "Data": "​"
+ },
+ {
+ "Type": "NodeTextMark",
+ "TextMarkType": "code",
+ "TextMarkTextContent": "countif"
+ },
+ {
+ "Type": "NodeText",
+ "Data": "​ counts the number of elements in a numeric list that satisfy a specified comparison condition. The first argument is the numeric list, the second is the comparison operator ("
+ },
+ {
+ "Type": "NodeTextMark",
+ "TextMarkType": "code",
+ "TextMarkTextContent": "gt"
+ },
+ {
+ "Type": "NodeText",
+ "Data": "​/"
+ },
+ {
+ "Type": "NodeTextMark",
+ "TextMarkType": "code",
+ "TextMarkTextContent": "lt"
+ },
+ {
+ "Type": "NodeText",
+ "Data": "​/"
+ },
+ {
+ "Type": "NodeTextMark",
+ "TextMarkType": "code",
+ "TextMarkTextContent": "eq"
+ },
+ {
+ "Type": "NodeText",
+ "Data": "​/"
+ },
+ {
+ "Type": "NodeTextMark",
+ "TextMarkType": "code",
+ "TextMarkTextContent": "ge"
+ },
+ {
+ "Type": "NodeText",
+ "Data": "​/"
+ },
+ {
+ "Type": "NodeTextMark",
+ "TextMarkType": "code",
+ "TextMarkTextContent": "le"
+ },
+ {
+ "Type": "NodeText",
+ "Data": "​), and the third is the threshold. For example: "
+ },
+ {
+ "Type": "NodeTextMark",
+ "TextMarkType": "code",
+ "TextMarkTextContent": "countif .values \"gt\" 0"
+ },
+ {
+ "Type": "NodeText",
+ "Data": "​"
+ }
+ ]
+ }
+ ]
}
]
},
diff --git a/app/guide/20210808180117-czj9bvb/20200812220555-lj3enxa/20210808180321-hbvl5c2/20201204181006-7bkppue.sy b/app/guide/20210808180117-czj9bvb/20200812220555-lj3enxa/20210808180321-hbvl5c2/20201204181006-7bkppue.sy
index 292c649247..cb6fefaa91 100644
--- a/app/guide/20210808180117-czj9bvb/20200812220555-lj3enxa/20210808180321-hbvl5c2/20201204181006-7bkppue.sy
+++ b/app/guide/20210808180117-czj9bvb/20200812220555-lj3enxa/20210808180321-hbvl5c2/20201204181006-7bkppue.sy
@@ -6,7 +6,7 @@
"id": "20201204181006-7bkppue",
"title": "模板片段",
"type": "doc",
- "updated": "20250828154937"
+ "updated": "20260619110354"
},
"Children": [
{
@@ -69,7 +69,7 @@
"HeadingLevel": 2,
"Properties": {
"id": "20210104091309-fhb549c",
- "updated": "20250828154937"
+ "updated": "20260619110354"
},
"Children": [
{
@@ -237,7 +237,7 @@
"ListData": {},
"Properties": {
"id": "20210104091309-gjkg3u5",
- "updated": "20250828154937"
+ "updated": "20260619110354"
},
"Children": [
{
@@ -271,15 +271,7 @@
},
{
"Type": "NodeText",
- "Data": "​:该变量用于插入当前文档名。比如"
- },
- {
- "Type": "NodeText",
- "Data": "模板"
- },
- {
- "Type": "NodeText",
- "Data": "内容为 "
+ "Data": "​:该变量用于插入当前文档名。比如模板内容为 "
},
{
"Type": "NodeTextMark",
@@ -473,19 +465,7 @@
},
{
"Type": "NodeText",
- "Data": "​:该函数用于查询"
- },
- {
- "Type": "NodeText",
- "Data": "数据库"
- },
- {
- "Type": "NodeText",
- "Data": ",返回值为 blocks "
- },
- {
- "Type": "NodeText",
- "Data": "列表"
+ "Data": "​:该函数用于查询数据库,返回值为 blocks 列表"
}
]
},
@@ -550,15 +530,7 @@
},
{
"Type": "NodeText",
- "Data": "​:该函数用于根据块 ID 查询"
- },
- {
- "Type": "NodeText",
- "Data": "数据库"
- },
- {
- "Type": "NodeText",
- "Data": ",返回值为 block"
+ "Data": "​:该函数用于根据块 ID 查询数据库,返回值为 block"
}
]
},
@@ -622,19 +594,7 @@
},
{
"Type": "NodeText",
- "Data": "​:该函数用于查询"
- },
- {
- "Type": "NodeText",
- "Data": "数据库"
- },
- {
- "Type": "NodeText",
- "Data": ",返回值为 spans "
- },
- {
- "Type": "NodeText",
- "Data": "列表"
+ "Data": "​:该函数用于查询数据库,返回值为 spans 列表"
}
]
},
@@ -699,15 +659,7 @@
},
{
"Type": "NodeText",
- "Data": "​:该函数用于查询"
- },
- {
- "Type": "NodeText",
- "Data": "数据库"
- },
- {
- "Type": "NodeText",
- "Data": ",返回值为结果集"
+ "Data": "​:该函数用于查询数据库,返回值为结果集"
}
]
},
@@ -1385,15 +1337,7 @@
},
{
"Type": "NodeText",
- "Data": "​:该函数用于返回指定周几的"
- },
- {
- "Type": "NodeText",
- "Data": "日期"
- },
- {
- "Type": "NodeText",
- "Data": " "
+ "Data": "​:该函数用于返回指定周几的日期 "
},
{
"Type": "NodeTextMark",
@@ -1402,15 +1346,7 @@
},
{
"Type": "NodeText",
- "Data": "​,例如返回本周四的"
- },
- {
- "Type": "NodeText",
- "Data": "日期"
- },
- {
- "Type": "NodeText",
- "Data": " "
+ "Data": "​,例如返回本周四的日期 "
},
{
"Type": "NodeTextMark",
@@ -1646,6 +1582,97 @@
]
}
]
+ },
+ {
+ "ID": "20260619110353-4mrvct5",
+ "Type": "NodeListItem",
+ "ListData": {
+ "BulletChar": 42,
+ "Marker": "Kg=="
+ },
+ "Properties": {
+ "id": "20260619110353-4mrvct5",
+ "updated": "20260619110354"
+ },
+ "Children": [
+ {
+ "ID": "20260619110353-824wvha",
+ "Type": "NodeParagraph",
+ "Properties": {
+ "id": "20260619110353-824wvha",
+ "updated": "20260619110354"
+ },
+ "Children": [
+ {
+ "Type": "NodeText",
+ "Data": "​"
+ },
+ {
+ "Type": "NodeTextMark",
+ "TextMarkType": "code",
+ "TextMarkTextContent": "countif"
+ },
+ {
+ "Type": "NodeText",
+ "Data": "​ 统计数字列表中满足指定比较条件的元素个数,第一个参数为数字列表,第二个参数为比较操作符("
+ },
+ {
+ "Type": "NodeTextMark",
+ "TextMarkType": "code",
+ "TextMarkTextContent": "gt"
+ },
+ {
+ "Type": "NodeText",
+ "Data": "​/"
+ },
+ {
+ "Type": "NodeTextMark",
+ "TextMarkType": "code",
+ "TextMarkTextContent": "lt"
+ },
+ {
+ "Type": "NodeText",
+ "Data": "​/"
+ },
+ {
+ "Type": "NodeTextMark",
+ "TextMarkType": "code",
+ "TextMarkTextContent": "eq"
+ },
+ {
+ "Type": "NodeText",
+ "Data": "​/"
+ },
+ {
+ "Type": "NodeTextMark",
+ "TextMarkType": "code",
+ "TextMarkTextContent": "ge"
+ },
+ {
+ "Type": "NodeText",
+ "Data": "​/"
+ },
+ {
+ "Type": "NodeTextMark",
+ "TextMarkType": "code",
+ "TextMarkTextContent": "le"
+ },
+ {
+ "Type": "NodeText",
+ "Data": "​),第三个参数为比较阈值。例如:"
+ },
+ {
+ "Type": "NodeTextMark",
+ "TextMarkType": "code",
+ "TextMarkTextContent": "countif .values \"gt\" 0"
+ },
+ {
+ "Type": "NodeText",
+ "Data": "​"
+ }
+ ]
+ }
+ ]
}
]
},
diff --git a/app/guide/20211226090932-5lcq56f/20211226115423-d5z1joq/20211226121203-rjjngpz/20211226123004-dplpw0o.sy b/app/guide/20211226090932-5lcq56f/20211226115423-d5z1joq/20211226121203-rjjngpz/20211226123004-dplpw0o.sy
index 44a900892b..95449f35f1 100644
--- a/app/guide/20211226090932-5lcq56f/20211226115423-d5z1joq/20211226121203-rjjngpz/20211226123004-dplpw0o.sy
+++ b/app/guide/20211226090932-5lcq56f/20211226115423-d5z1joq/20211226121203-rjjngpz/20211226123004-dplpw0o.sy
@@ -6,7 +6,7 @@
"id": "20211226123004-dplpw0o",
"title": "範本片段",
"type": "doc",
- "updated": "20250828155154"
+ "updated": "20260619110430"
},
"Children": [
{
@@ -53,7 +53,7 @@
"HeadingLevel": 2,
"Properties": {
"id": "20211226123024-eyagqur",
- "updated": "20250828155154"
+ "updated": "20260619110430"
},
"Children": [
{
@@ -208,7 +208,7 @@
"ListData": {},
"Properties": {
"id": "20211226123024-pjvw31z",
- "updated": "20250828155154"
+ "updated": "20260619110430"
},
"Children": [
{
@@ -436,19 +436,7 @@
},
{
"Type": "NodeText",
- "Data": "​:該函數用於查詢"
- },
- {
- "Type": "NodeText",
- "Data": "資料庫"
- },
- {
- "Type": "NodeText",
- "Data": ",返回值為 blocks "
- },
- {
- "Type": "NodeText",
- "Data": "列表"
+ "Data": "​:該函數用於查詢資料庫,返回值為 blocks 列表"
}
]
},
@@ -513,15 +501,7 @@
},
{
"Type": "NodeText",
- "Data": "​:函數用於根據塊 ID 查詢"
- },
- {
- "Type": "NodeText",
- "Data": "資料庫"
- },
- {
- "Type": "NodeText",
- "Data": ",傳回值為 block"
+ "Data": "​:函數用於根據塊 ID 查詢資料庫,傳回值為 block"
}
]
},
@@ -585,19 +565,7 @@
},
{
"Type": "NodeText",
- "Data": "​:該函數用於查詢"
- },
- {
- "Type": "NodeText",
- "Data": "資料庫"
- },
- {
- "Type": "NodeText",
- "Data": ",返回值為 spans "
- },
- {
- "Type": "NodeText",
- "Data": "列表"
+ "Data": "​:該函數用於查詢資料庫,返回值為 spans 列表"
}
]
},
@@ -662,15 +630,7 @@
},
{
"Type": "NodeText",
- "Data": "​:函數用於查詢"
- },
- {
- "Type": "NodeText",
- "Data": "資料庫"
- },
- {
- "Type": "NodeText",
- "Data": ",傳回值為結果集"
+ "Data": "​:函數用於查詢資料庫,傳回值為結果集"
}
]
},
@@ -1348,15 +1308,7 @@
},
{
"Type": "NodeText",
- "Data": "​:此函數用於傳回指定週幾的"
- },
- {
- "Type": "NodeText",
- "Data": "日期"
- },
- {
- "Type": "NodeText",
- "Data": " "
+ "Data": "​:此函數用於傳回指定週幾的日期 "
},
{
"Type": "NodeTextMark",
@@ -1365,15 +1317,7 @@
},
{
"Type": "NodeText",
- "Data": "​,例如傳回本週四的"
- },
- {
- "Type": "NodeText",
- "Data": "日期"
- },
- {
- "Type": "NodeText",
- "Data": " "
+ "Data": "​,例如傳回本週四的日期 "
},
{
"Type": "NodeTextMark",
@@ -1609,6 +1553,97 @@
]
}
]
+ },
+ {
+ "ID": "20260619110430-74fvgix",
+ "Type": "NodeListItem",
+ "ListData": {
+ "BulletChar": 42,
+ "Marker": "Kg=="
+ },
+ "Properties": {
+ "id": "20260619110430-74fvgix",
+ "updated": "20260619110430"
+ },
+ "Children": [
+ {
+ "ID": "20260619110430-gcgcbkm",
+ "Type": "NodeParagraph",
+ "Properties": {
+ "id": "20260619110430-gcgcbkm",
+ "updated": "20260619110430"
+ },
+ "Children": [
+ {
+ "Type": "NodeText",
+ "Data": "​"
+ },
+ {
+ "Type": "NodeTextMark",
+ "TextMarkType": "code",
+ "TextMarkTextContent": "countif"
+ },
+ {
+ "Type": "NodeText",
+ "Data": "​ 統計數字列表中滿足指定比較條件的元素個數,第一個參數為數字列表,第二個參數為比較運算子("
+ },
+ {
+ "Type": "NodeTextMark",
+ "TextMarkType": "code",
+ "TextMarkTextContent": "gt"
+ },
+ {
+ "Type": "NodeText",
+ "Data": "​/"
+ },
+ {
+ "Type": "NodeTextMark",
+ "TextMarkType": "code",
+ "TextMarkTextContent": "lt"
+ },
+ {
+ "Type": "NodeText",
+ "Data": "​/"
+ },
+ {
+ "Type": "NodeTextMark",
+ "TextMarkType": "code",
+ "TextMarkTextContent": "eq"
+ },
+ {
+ "Type": "NodeText",
+ "Data": "​/"
+ },
+ {
+ "Type": "NodeTextMark",
+ "TextMarkType": "code",
+ "TextMarkTextContent": "ge"
+ },
+ {
+ "Type": "NodeText",
+ "Data": "​/"
+ },
+ {
+ "Type": "NodeTextMark",
+ "TextMarkType": "code",
+ "TextMarkTextContent": "le"
+ },
+ {
+ "Type": "NodeText",
+ "Data": "​),第三個參數為比較閾值。例如:"
+ },
+ {
+ "Type": "NodeTextMark",
+ "TextMarkType": "code",
+ "TextMarkTextContent": "countif .values \"gt\" 0"
+ },
+ {
+ "Type": "NodeText",
+ "Data": "​"
+ }
+ ]
+ }
+ ]
}
]
},
diff --git a/app/guide/20240530133126-axarxgx/20240530101000-4qitucx/20240530101000-g3ugxml/20240530101000-6x9ivi7.sy b/app/guide/20240530133126-axarxgx/20240530101000-4qitucx/20240530101000-g3ugxml/20240530101000-6x9ivi7.sy
index 8356e1876a..7e00f5b33a 100644
--- a/app/guide/20240530133126-axarxgx/20240530101000-4qitucx/20240530101000-g3ugxml/20240530101000-6x9ivi7.sy
+++ b/app/guide/20240530133126-axarxgx/20240530101000-4qitucx/20240530101000-g3ugxml/20240530101000-6x9ivi7.sy
@@ -7,7 +7,7 @@
"id": "20240530101000-6x9ivi7",
"title": "テンプレートスニペット",
"type": "doc",
- "updated": "20250828155138"
+ "updated": "20260619110446"
},
"Children": [
{
@@ -66,7 +66,7 @@
"Properties": {
"ID": "20240530101000-5nvn9ad",
"id": "20240530101000-pi05yzt",
- "updated": "20250828155138"
+ "updated": "20260619110446"
},
"Children": [
{
@@ -226,7 +226,7 @@
"ListData": {},
"Properties": {
"id": "20240530101000-by5hqnb",
- "updated": "20250828155138"
+ "updated": "20260619110446"
},
"Children": [
{
@@ -260,15 +260,7 @@
},
{
"Type": "NodeText",
- "Data": "​: この変数は現在のドキュメント名を挿入します。たとえば、"
- },
- {
- "Type": "NodeText",
- "Data": "テンプレート"
- },
- {
- "Type": "NodeText",
- "Data": "の内容が "
+ "Data": "​: この変数は現在のドキュメント名を挿入します。たとえば、テンプレートの内容が "
},
{
"Type": "NodeTextMark",
@@ -277,15 +269,7 @@
},
{
"Type": "NodeText",
- "Data": "​ の場合、呼び出し後にレベル "
- },
- {
- "Type": "NodeText",
- "Data": "1"
- },
- {
- "Type": "NodeText",
- "Data": " の見出しとしてドキュメント名が挿入されます"
+ "Data": "​ の場合、呼び出し後にレベル 1 の見出しとしてドキュメント名が挿入されます"
}
]
}
@@ -470,15 +454,7 @@
},
{
"Type": "NodeText",
- "Data": "​: この関数は"
- },
- {
- "Type": "NodeText",
- "Data": "データベース"
- },
- {
- "Type": "NodeText",
- "Data": "をクエリしてブロックのリストを返します"
+ "Data": "​: この関数はデータベースをクエリしてブロックのリストを返します"
}
]
},
@@ -543,15 +519,7 @@
},
{
"Type": "NodeText",
- "Data": "​: この関数はブロックIDに基づいて"
- },
- {
- "Type": "NodeText",
- "Data": "データベース"
- },
- {
- "Type": "NodeText",
- "Data": "を照会するために使用され、戻り値はブロックです"
+ "Data": "​: この関数はブロックIDに基づいてデータベースを照会するために使用され、戻り値はブロックです"
}
]
},
@@ -615,15 +583,7 @@
},
{
"Type": "NodeText",
- "Data": "​: この関数は"
- },
- {
- "Type": "NodeText",
- "Data": "データベース"
- },
- {
- "Type": "NodeText",
- "Data": "をクエリしてスパンのリストを返します"
+ "Data": "​: この関数はデータベースをクエリしてスパンのリストを返します"
}
]
},
@@ -688,15 +648,7 @@
},
{
"Type": "NodeText",
- "Data": "​: この関数は"
- },
- {
- "Type": "NodeText",
- "Data": "データベース"
- },
- {
- "Type": "NodeText",
- "Data": "へのクエリに使用され、戻り値は結果セットです"
+ "Data": "​: この関数はデータベースへのクエリに使用され、戻り値は結果セットです"
}
]
},
@@ -1619,6 +1571,97 @@
]
}
]
+ },
+ {
+ "ID": "20260619110445-064hnmb",
+ "Type": "NodeListItem",
+ "ListData": {
+ "BulletChar": 42,
+ "Marker": "Kg=="
+ },
+ "Properties": {
+ "id": "20260619110445-064hnmb",
+ "updated": "20260619110446"
+ },
+ "Children": [
+ {
+ "ID": "20260619110445-ivdgrj6",
+ "Type": "NodeParagraph",
+ "Properties": {
+ "id": "20260619110445-ivdgrj6",
+ "updated": "20260619110446"
+ },
+ "Children": [
+ {
+ "Type": "NodeText",
+ "Data": "​"
+ },
+ {
+ "Type": "NodeTextMark",
+ "TextMarkType": "code",
+ "TextMarkTextContent": "countif"
+ },
+ {
+ "Type": "NodeText",
+ "Data": "​ は数値リスト内の指定した比較条件を満たす要素数をカウントします。第 1 引数は数値リスト、第 2 引数は比較演算子("
+ },
+ {
+ "Type": "NodeTextMark",
+ "TextMarkType": "code",
+ "TextMarkTextContent": "gt"
+ },
+ {
+ "Type": "NodeText",
+ "Data": "​/"
+ },
+ {
+ "Type": "NodeTextMark",
+ "TextMarkType": "code",
+ "TextMarkTextContent": "lt"
+ },
+ {
+ "Type": "NodeText",
+ "Data": "​/"
+ },
+ {
+ "Type": "NodeTextMark",
+ "TextMarkType": "code",
+ "TextMarkTextContent": "eq"
+ },
+ {
+ "Type": "NodeText",
+ "Data": "​/"
+ },
+ {
+ "Type": "NodeTextMark",
+ "TextMarkType": "code",
+ "TextMarkTextContent": "ge"
+ },
+ {
+ "Type": "NodeText",
+ "Data": "​/"
+ },
+ {
+ "Type": "NodeTextMark",
+ "TextMarkType": "code",
+ "TextMarkTextContent": "le"
+ },
+ {
+ "Type": "NodeText",
+ "Data": "​)、第 3 引数は比較の閾値です。例:"
+ },
+ {
+ "Type": "NodeTextMark",
+ "TextMarkType": "code",
+ "TextMarkTextContent": "countif .values \"gt\" 0"
+ },
+ {
+ "Type": "NodeText",
+ "Data": "​"
+ }
+ ]
+ }
+ ]
}
]
},