From 2f7715fd081d98fc6c9b8eab8e8b98e74618339c Mon Sep 17 00:00:00 2001 From: pmario Date: Sun, 10 Mar 2024 15:39:01 +0100 Subject: [PATCH 1/2] deprecated the if-macro, since it is not needed anymore. Use <% if %> instead --- editions/tw5.com/tiddlers/system/if-macro.js | 5 +++++ editions/tw5.com/tiddlers/system/if-macro.js.meta | 6 ++++++ 2 files changed, 11 insertions(+) create mode 100644 editions/tw5.com/tiddlers/system/if-macro.js.meta diff --git a/editions/tw5.com/tiddlers/system/if-macro.js b/editions/tw5.com/tiddlers/system/if-macro.js index 6c902ed65..c1a3ade17 100644 --- a/editions/tw5.com/tiddlers/system/if-macro.js +++ b/editions/tw5.com/tiddlers/system/if-macro.js @@ -1,7 +1,12 @@ /*\ title: $:/editions/tw5.com/if-macro.js type: application/javascript +tags: $:/deprecated module-type: macro + +DEPRECATED -- Since TW v5.3.x this documentation macro is not needed anymore +Use: https://tiddlywiki.com/#Conditional%20Shortcut%20Syntax instead + \*/ (function(){ diff --git a/editions/tw5.com/tiddlers/system/if-macro.js.meta b/editions/tw5.com/tiddlers/system/if-macro.js.meta new file mode 100644 index 000000000..012377042 --- /dev/null +++ b/editions/tw5.com/tiddlers/system/if-macro.js.meta @@ -0,0 +1,6 @@ +created: 20240310123422910 +modified: 20240310123427872 +module-type: macro +tags: $:/deprecated +title: $:/editions/tw5.com/if-macro.js +type: application/javascript \ No newline at end of file From 0cc2a52b56ca4c76ee443aaf39fc95fa98e50569 Mon Sep 17 00:00:00 2001 From: pmario Date: Sun, 10 Mar 2024 16:29:50 +0100 Subject: [PATCH 2/2] remove .if-macro from docs edtion --- editions/tw5.com/tiddlers/system/if-macro.js | 31 ------------------- .../tw5.com/tiddlers/system/if-macro.js.meta | 6 ---- 2 files changed, 37 deletions(-) delete mode 100644 editions/tw5.com/tiddlers/system/if-macro.js delete mode 100644 editions/tw5.com/tiddlers/system/if-macro.js.meta diff --git a/editions/tw5.com/tiddlers/system/if-macro.js b/editions/tw5.com/tiddlers/system/if-macro.js deleted file mode 100644 index c1a3ade17..000000000 --- a/editions/tw5.com/tiddlers/system/if-macro.js +++ /dev/null @@ -1,31 +0,0 @@ -/*\ -title: $:/editions/tw5.com/if-macro.js -type: application/javascript -tags: $:/deprecated -module-type: macro - -DEPRECATED -- Since TW v5.3.x this documentation macro is not needed anymore -Use: https://tiddlywiki.com/#Conditional%20Shortcut%20Syntax instead - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -exports.name = ".if"; - -exports.params = [ - { name: "cond" }, - { name: "then" }, - { name: "else" } -]; - -exports.run = function(cond, then, elze) { - then = then || ""; - elze = elze || ""; - return cond ? then : elze; -}; - -})(); diff --git a/editions/tw5.com/tiddlers/system/if-macro.js.meta b/editions/tw5.com/tiddlers/system/if-macro.js.meta deleted file mode 100644 index 012377042..000000000 --- a/editions/tw5.com/tiddlers/system/if-macro.js.meta +++ /dev/null @@ -1,6 +0,0 @@ -created: 20240310123422910 -modified: 20240310123427872 -module-type: macro -tags: $:/deprecated -title: $:/editions/tw5.com/if-macro.js -type: application/javascript \ No newline at end of file