From d09d32bc153e10d512b603f680288e63dcc28e87 Mon Sep 17 00:00:00 2001 From: Jeremy Ruston Date: Sun, 6 Jul 2025 14:15:26 +0100 Subject: [PATCH] Add footer and link for dragging to other wikis --- core/language/en-GB/ControlPanel.multids | 5 +++-- core/ui/WikiInformation.tid | 9 +++++++++ 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/core/language/en-GB/ControlPanel.multids b/core/language/en-GB/ControlPanel.multids index cc7af6892..819ad8b18 100644 --- a/core/language/en-GB/ControlPanel.multids +++ b/core/language/en-GB/ControlPanel.multids @@ -219,8 +219,6 @@ Stylesheets/Caption: Stylesheets Stylesheets/Expand/Caption: Expand All Stylesheets/Hint: This is the rendered CSS of the current stylesheet tiddlers tagged with <> Stylesheets/Restore/Caption: Restore -WikiInformation/Caption: Wiki Information -WikiInformation/Hint: This page summarises important information about this ~TiddlyWiki. It is designed to enable users to quickly share relevant aspects of the configuration of their ~TiddlyWiki with others, for example when seeking help in one of the forums. No private or personal information is included, and nothing is shared without you explicitly copying and pasting the information into a forum post or email TestCases/Caption: Test Cases TestCases/Hint: Test cases are self contained examples for testing and learning TestCases/All/Caption: All Test Cases @@ -254,3 +252,6 @@ ViewTemplateSubtitle/Caption: View Template Subtitle ViewTemplateSubtitle/Hint: This rule cascade is used by the default view template to dynamically choose the template for displaying the subtitle of a tiddler. ViewTemplateTags/Caption: View Template Tags ViewTemplateTags/Hint: This rule cascade is used by the default view template to dynamically choose the template for displaying the tags area of a tiddler. +WikiInformation/Caption: Wiki Information +WikiInformation/Hint: This page summarises important information about this ~TiddlyWiki. It is designed to enable users to quickly share relevant aspects of the configuration of their ~TiddlyWiki with others, for example when seeking help in one of the forums. No private or personal information is included, and nothing is shared without you explicitly copying and pasting the information into a forum post or email +WikiInformation/Drag/Caption: Drag this link to copy this tool to another wiki \ No newline at end of file diff --git a/core/ui/WikiInformation.tid b/core/ui/WikiInformation.tid index d3e27f167..74e2ce664 100644 --- a/core/ui/WikiInformation.tid +++ b/core/ui/WikiInformation.tid @@ -13,6 +13,10 @@ A custom implementation of the lingo macro that works even if this tiddler has b This page summarises important information about this ~TiddlyWiki. It is designed to enable users to quickly share relevant aspects of the configuration of their ~TiddlyWiki with others, for example when seeking help in one of the forums. No private or personal information is included, and nothing is shared without you explicitly copying and pasting the information into a forum post or email \end intrinsic-lingo-Hint +\procedure intrinsic-lingo-Drag/Caption() +Drag this link to copy this tool to another wiki +\end intrinsic-lingo-Drag/Caption + \procedure lingo(title,mode:"inline") <%if [addprefix<lingo-base>is[shadow]] %> <$transclude $tiddler={{{ [<title>addprefix<lingo-base>] }}} $mode=<<mode>>/> @@ -89,6 +93,7 @@ This page summarises important information about this ~TiddlyWiki. It is designe $variable="capture-wiki-info" tempWikiInfo=<<tempWikiInfo>> /> + <$action-setfield $tiddler=<<tempWikiInfo>> text={{{ [<tempWikiInfo>get[text]addsuffix<template-footer>] }}}/> </$let> \end display-wiki-info-modal @@ -99,6 +104,10 @@ This page summarises important information about this ~TiddlyWiki. It is designe <<display-wiki-info-modal>> Click to generate wiki information report </$button> + +<$link to=<<thisTiddler>>> +<<lingo title:"Drag/Caption" mode:"inline">> +</$link> \end story-content \procedure modal-content()