tiddlywiki5 - tiddlywiki 中的简单数据结构
问题描述
我想使用 TW 来跟踪故事中某些角色的家谱。
我希望每个角色提琴手都有几个标准字段:父亲、母亲、出生日期、性别、配偶、孩子
我试图弄清楚如何拥有某种形式,当我创建一个新的角色提琴手时它会自动创建字段。
我找到了一些相关的教程,但它们非常过时,最后它们让我更加困惑。
非常感谢任何帮助。
解决方案
制作一个characterTiddler,添加你说的那些字段并添加characterTags 保存为$:/_newCharacter。
然后让一个用于创建新角色的 tiddler 添加一个使用 characterTiddler 作为模板的按钮。
在 Character Dashboard 类型的正文中:
//This will make a button that creates your tiddler//
<$button message="tm-new-tiddler" param="$:/_newCharacter">
New character
</$button>
//This is make a list of all tiddlers with the characterTags//
<<list-links "[!is[system]tag[characterTags]">>
推荐阅读
- c++ - 错误:std:: 超出范围。超出范围的问题在哪里?
- sql - 更新查询 - 前一行 x 和当前行 y 的总和
- android - 如何使 editText.setText 与 setFilters 一起使用
- python-3.x - ACK 数据包伪造问题:“此帧是(疑似)重传”
- microsoft-graph-api - 使用 subscribedSkus graph API 的所有许可证列表中缺少许可证
- vue.js - 推送更改的数量会覆盖整个数组
- css - ApexCharts 系列上的可变模式
- flutter - Flutter:如何知道触发事件的widget的key?
- android-studio - Android studio 深色而不是白色
- sql - Trino 实现了类似 regexp_split_to_table() 的函数?