首页 > 解决方案 > tiddlywiki 中的简单数据结构

问题描述

我想使用 TW 来跟踪故事中某些角色的家谱。

我希望每个角色提琴手都有几个标准字段:父亲、母亲、出生日期、性别、配偶、孩子

我试图弄清楚如何拥有某种形式,当我创建一个新的角色提琴手时它会自动创建字段。

我找到了一些相关的教程,但它们非常过时,最后它们让我更加困惑。

非常感谢任何帮助。

标签: tiddlywiki5

解决方案


制作一个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]">>

推荐阅读