Does this need to be part of the unique id of a tiddler that we call title
? Or does it just need to appear at the top of the tiddler when you’re viewing it? Because these two do not have to be the same.
There are good reasons for the restrictions on a few characters in titles; they can really mess with filters.
But if you need only to display these properly, then you can use the ViewTemplateTitleFilter cascade to alter what’s shown. For instance, with tiddlers like this:
title: Level 1
prototcol: Alpha Protocol
More about Level 1
and
title: Level 7
prototcol: Omega Protocol
Something here
we can use that cascade to achieve something like this:
The cascade override usually takes two tiddlers:
title: $:/_/my/config/ViewTemplateTitleFilters/protocol
tags: $:/tags/ViewTemplateTitleFilter
[has[protocol]then[$:/_/my/core/ui/ViewTemplate/title/protocol]]
and
title: $:/_/my/core/ui/ViewTemplate/title/protocol
<h2 class="tc-title" title={{$:/language/SystemTiddler/Tooltip}}>
{{!!title}} <span class="tc-system-title-prefix"> [<$view field="protocol"/>]</span>
</h2>
You don’t need to get all fancy with that <span>
and the gray color for the protocol. That’s just how I tend to use these.
Of course if that has to be part of the actual title, this doesn’t help at all. But in that case, I’d suggest you look hard at your requirements.
You can test this by downloading the following and dragging the resulting file onto any wiki:
ProtocolTitles.json (1014 Bytes)