[tw5] A way of creating Wikipedia article links

(Because I find myself referring to many articles in a TiddlyWiki instance.)

Transclusion goodness:

{{Primitive_data_type||tWm}}

So passing the (Wikipedia, mobile) article part of the URL to the tiddler template “tWm”.

There is no tiddler named “Primitive_data_type”. This is just a way to give “tWm” some text.

The “tWm” tiddler text:

^^<a href={{{ [[https://en.m.wikipedia.org/wiki/]addsuffix] }}} style=“text-decoration:none;font-family:Times New Roman” target="_blank">W^^

Same kind of thing could be done with a macro if you prefer macros.

1 Like