From 31c9998c627c476c6fc6cf4384fec699d86bab08 Mon Sep 17 00:00:00 2001 From: Tobias Beer Date: Wed, 31 Dec 2014 12:38:15 +0100 Subject: [PATCH 1/5] fixes example and improves readability --- .../tw5.com/tiddlers/widgets/TiddlerWidget.tid | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/editions/tw5.com/tiddlers/widgets/TiddlerWidget.tid b/editions/tw5.com/tiddlers/widgets/TiddlerWidget.tid index d52c9d425..31ee624cb 100644 --- a/editions/tw5.com/tiddlers/widgets/TiddlerWidget.tid +++ b/editions/tw5.com/tiddlers/widgets/TiddlerWidget.tid @@ -19,10 +19,15 @@ The TiddlerWidget sets the CurrentTiddler that applies for processing its conten The tiddler widget assigns several useful CSS classes to variables that it creates: -* ''missingTiddlerClass'': ''"tc-tiddler-exists"'' or ''"tc-tiddler-missing"'' depending upon whether the target tiddler exists -* ''shadowTiddlerClass'': ''"tc-tiddler-shadow"'' if the tiddler is a shadow tiddler -* ''systemTiddlerClass'': ''"tc-tiddler-system"'' if the tiddler is a system tiddler -* ''tiddlerTagClasses'': A space separated list of CSS classes named ''"tc-tagged-{tagname}"''. For example ''"tc-tagged-introduction"''. Note that tag names are UrlEncoded which means that the tag ''$:/tags/Macro'' appears as the CSS class ''"tc-tagged-%24%3A%2Ftags%2FMacro"'' +; missingTiddlerClass +: `tc-tiddler-exists` or... +: `tc-tiddler-missing` depending on whether the tiddler exists +;shadowTiddlerClass +:`tc-tiddler-shadow` if the tiddler is a shadow tiddler +;systemTiddlerClass +:`tc-tiddler-system` if the tiddler is a system tiddler +;tiddlerTagClasses +:a space separated list of CSS classes named `tc-tagged-{tagname}`,
e.g. `tc-tagged-introduction`

''Note:'' tag names are UrlEncoded which means that the tag [[$:/tags/Macro]] appears as the CSS class `tc-tagged-%24%3A%2Ftags%2FMacro` You can use these variables like this: @@ -30,6 +35,7 @@ You can use these variables like this: <$tiddler tiddler="MyOtherTiddler">
>> <$transclude/> +
``` From 652ca2a8074f742009aa3e565efa48052d6c22ce Mon Sep 17 00:00:00 2001 From: Jermolene Date: Fri, 2 Jan 2015 16:00:00 +0000 Subject: [PATCH 2/5] Add Jim Lehmer's site to resources --- .../tiddlers/community/resources/DullRoar.tid | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 editions/tw5.com/tiddlers/community/resources/DullRoar.tid diff --git a/editions/tw5.com/tiddlers/community/resources/DullRoar.tid b/editions/tw5.com/tiddlers/community/resources/DullRoar.tid new file mode 100644 index 000000000..b881b7e2c --- /dev/null +++ b/editions/tw5.com/tiddlers/community/resources/DullRoar.tid @@ -0,0 +1,14 @@ +created: 20150102155658750 +modified: 20150102155658750 +tags: Resources +title: "Dull Roar" by Jim Lehmer +type: text/vnd.tiddlywiki +url: http://dullroar.com/tiddlywiki5.html + +A collection of hints and tips from Jim Lehmer, published as a static blog generated by TiddlyWiki. + +{{!!url}} + +<<< +There is a decent write-up on generating static pages using Tiddlywiki on the main TW site. However, there are a few nuances not mentioned on that page, so here are a few of my notes on how I generate the pages for this site. +<<< From 785e1c77896c65e3a6e3c6723a7cfe1eeb59e0d9 Mon Sep 17 00:00:00 2001 From: Jermolene Date: Fri, 2 Jan 2015 17:11:37 +0000 Subject: [PATCH 3/5] Tweaks to tiddler widget docs --- editions/tw5.com/tiddlers/widgets/TiddlerWidget.tid | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/editions/tw5.com/tiddlers/widgets/TiddlerWidget.tid b/editions/tw5.com/tiddlers/widgets/TiddlerWidget.tid index 31ee624cb..19a9c94e8 100644 --- a/editions/tw5.com/tiddlers/widgets/TiddlerWidget.tid +++ b/editions/tw5.com/tiddlers/widgets/TiddlerWidget.tid @@ -1,5 +1,5 @@ created: 20130824154300000 -modified: 20140802114152456 +modified: 20150102155658750 tags: Widgets title: TiddlerWidget type: text/vnd.tiddlywiki @@ -23,11 +23,11 @@ The tiddler widget assigns several useful CSS classes to variables that it creat : `tc-tiddler-exists` or... : `tc-tiddler-missing` depending on whether the tiddler exists ;shadowTiddlerClass -:`tc-tiddler-shadow` if the tiddler is a shadow tiddler +: `tc-tiddler-shadow` if the tiddler is a shadow tiddler ;systemTiddlerClass -:`tc-tiddler-system` if the tiddler is a system tiddler +:` tc-tiddler-system` if the tiddler is a system tiddler ;tiddlerTagClasses -:a space separated list of CSS classes named `tc-tagged-{tagname}`,
e.g. `tc-tagged-introduction`

''Note:'' tag names are UrlEncoded which means that the tag [[$:/tags/Macro]] appears as the CSS class `tc-tagged-%24%3A%2Ftags%2FMacro` +: a space separated list of CSS classes named `tc-tagged-{tagname}`,
e.g. `tc-tagged-introduction`

''Note:'' tag names are URI encoded which means that the tag [[$:/tags/Macro]] appears as the CSS class `tc-tagged-%24%3A%2Ftags%2FMacro`. See [[How to apply custom styles by tag]] for more details You can use these variables like this: From 809a59920af25cbf574afdce49b9d9fa371ee66c Mon Sep 17 00:00:00 2001 From: Jim Lehmer Date: Fri, 2 Jan 2015 11:25:54 -0600 Subject: [PATCH 4/5] Fix bug where a .tid extension was being added twice if tiddler name longer than 200 characters. --- plugins/tiddlywiki/filesystem/filesystemadaptor.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/tiddlywiki/filesystem/filesystemadaptor.js b/plugins/tiddlywiki/filesystem/filesystemadaptor.js index eaa713737..b3e4d8af7 100644 --- a/plugins/tiddlywiki/filesystem/filesystemadaptor.js +++ b/plugins/tiddlywiki/filesystem/filesystemadaptor.js @@ -95,7 +95,7 @@ FileSystemAdaptor.prototype.generateTiddlerFilename = function(title,extension,e var baseFilename = title.replace(/<|>|\:|\"|\/|\\|\||\?|\*|\^|\s/g,"_"); // Truncate the filename if it is too long if(baseFilename.length > 200) { - baseFilename = baseFilename.substr(0,200) + extension; + baseFilename = baseFilename.substr(0,200); } // Start with the base filename plus the extension var filename = transliterate(baseFilename) + extension, From 3f5e46011fa9845dbdb1de0b827b756d630c8c95 Mon Sep 17 00:00:00 2001 From: Jermolene Date: Fri, 2 Jan 2015 17:42:04 +0000 Subject: [PATCH 5/5] Remove inaccurate docs --- editions/tw5.com/tiddlers/concepts/ColourPalettes.tid | 2 -- 1 file changed, 2 deletions(-) diff --git a/editions/tw5.com/tiddlers/concepts/ColourPalettes.tid b/editions/tw5.com/tiddlers/concepts/ColourPalettes.tid index 4e08b2d21..e1b246386 100644 --- a/editions/tw5.com/tiddlers/concepts/ColourPalettes.tid +++ b/editions/tw5.com/tiddlers/concepts/ColourPalettes.tid @@ -28,5 +28,3 @@ Palette tiddlers should have the following fields: |tags |`$:/tags/Palette` | |description |Displayed in the palette browser | |text |`name: value` colour definitions | - -By convention, each [[theme|Themes]] provides a default colour palette in the tiddler [[$:/config/DefaultPalette]]. Thus, setting the tiddler [[$:/theme]] to the string `$:/config/DefaultPalette` will revert to the palette packaged with the current theme (as long as it hasn't been redefined, since it is a shadow tiddler).