You can ignore my last suggestion. I have come up with a better one for you.
First, download and import this macro to your TiddlyWiki: $__macros_title-link.js.json (994 Bytes).
Then refresh your TiddlyWiki.
After importing the macro, simply use this code:
<<link "Egya Dara">>
This will work with whatever tiddler title you put in there as long as the tiddler has the field called titleName
, otherwise it will output just the tiddler title in a link.
The source code of that file looks like this:
/*\
title: $:/macros/title-link.js
type: application/javascript
\*/
(function() {
/*jslint node: true, browser: true */
/*global $tw: false */
"use strict";
exports.name = "link";
exports.params = [{
name: "link"
},
];
/*
Run the macro. Make sure it accepts the parameters you have defined above.
*/
exports.run = function(link) {
try {
return "<$link to='"+link+"'><$list filter='[["+link+"]has:field[titleName]]' variable='tiddler-title'><$view tiddler=<<tiddler-title>> field='titleName'/> </$list><$view tiddler='"+link+"' field='title'/></$link>";
} catch (err) {
console.error(err.stack)
return "(ERROR: " + err.message + ") ";
}
};
})();
If you are going to copy/paste that, make sure you have type
set to application/javascript
and a field called module-type
and set that to macro
. Name the macro tiddler whatever you want.