I've since added a second kind of Wikipedia link to handle the two ways I use them.
Two template tiddlers in the attached file. Usage example: [image: Screenshot 2023-07-05 11.29.54 PM.png] On Monday, January 30, 2023 at 6:42:28 PM UTC-4 Charlie Veniot wrote: > I was going to create a post about this and totally forgot that I had > already done that. > > Here is the "tWm" template tiddler, which I've modified just a little bit > to show a tooltip: > > Drag attached to tiddlywiki.com . > > For any Wikipedia article, you just want the part of the url that has the > article name, so for > > ```https://en.wikipedia.org/wiki/Primitive_data_type``` > <https://en.wikipedia.org/wiki/Primitive_data_type>, you'll setup the > transclusion as ```{{Primitive_data_type||tWm}}``` > > On Monday, January 3, 2022 at 7:17:34 PM UTC-4 Charlie Veniot wrote: > >> *(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<currentTiddler>] >> }}} style="text-decoration:none;font-family:Times New Roman" >> target="_blank">W</a>^^ >> >> Same kind of thing could be done with a macro if you prefer macros. >> >> -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/68472337-8627-4f4a-a822-3c1598125860n%40googlegroups.com.
WikipediaLinksTiddlerTemplates.json
Description: application/json

