- 自动监控文件更新,从 yaml frontmatter 中提取
institute信息用于创建笔记 - 为
Quickadd集成提供全局 API - 检索信息后显示或自动创建笔记
- 支持自定义机构笔记模板
- 安装插件
- 在您的 vault 中创建模板文件(例如:
templates/institution.md) - 在模板文件中使用上述变量
- 在插件设置中设置模板路径
- 插件将在创建新的机构笔记时使用您的模板
或者使用默认命令/工具栏图标来搜索机构并创建笔记。
您可以在机构笔记模板中使用以下模板变量:
| 变量 | 描述 | 示例 |
|---|---|---|
| {{ppb.institute.name}} | 机构全称 | 哈佛大学 |
| {{ppb.institute.abbr}} | 机构缩写 | HU |
| {{ppb.institute.aliases}} | 替代名称列表 | - Harvard - Harvard College |
| {{ppb.institute.website}} | 机构网站 URL | https://harvard.edu |
| {{ppb.institute.lat}}, {{ppb.institute.lon}} | 地理坐标 | 42.3744, -71.1169 |
| {{ppb.institute.logo}} | 机构 logo URL | https://example.com/logo.png |
| {{ppb.institute.tags}} | 标签列表 | - university |
- 在您的 vault 中创建模板文件(例如:
templates/institution.md) - 在模板文件中使用上述变量
- 在插件设置中设置模板路径
- 插件将在创建新的机构笔记时使用您的模板
示例模板:
---
abbr: {{ppb.institute.abbr}}
aliases:
{{ppb.institute.aliases}}
website: {{ppb.institute.website}}
location: [{{ppb.institute.lat}}, {{ppb.institute.lon}}]
logo: {{ppb.institute.logo}}
name: {{ppb.institute.name}}
tags:
{{ppb.institute.tags}}
---
# {{ppb.institute.name}}
## 概览
[Website]({{ppb.institute.website}})
```mapview
{"name":"Default","mapZoom":8,"centerLat":{{ppb.institute.lat}},"centerLng":{{ppb.institute.lon}},"query":"","chosenMapSource":0}
```
## 相关学者
```dataview
TABLE file.link AS "姓名", title AS "职称", website AS "网站", email AS "邮箱"
FROM #scholar
WHERE contains(institute, this.name)
SORT paper_date DESC
```