Hi!
I'm still in the process of creating my checklists and found another
question I cannot solve on my own.
I have a tiddler which contains work instructions consisting of several
steps. Each step has a checkbox to be selected when the step is done. As
all of these steps are very similar, I created a tiddler which I reuse. So
my steps ook similar to this:
<<tiddler "checkInfo" with: "get_software"
"extract software delivery"
"Extract new software delivery and get as well previous delivery of
the software.
\nBoth version will be compared in the following steps and checked
for differences."
"It's useful to set symbolic links called //new// and //old//
to the release folders."
>><<tiddler "checkInfo" with: "versioninfo"
"VERSIONINFO.txt"
"check that VERSIONINFO.TXT matches release version information"
"{{{\ncat new/VERSIONINFO.TXT\n}\}\}"
>>
This will look similar to this:
[ ] *extract software delivery*
Extract new software delivery and get as well previous delivery of the
software.
Both version will be compared in the following steps and checked for
differences. [Hint]
The tiddler:checkInfo is this:
;<<checkbox $1>> $2
: <<wikify "" $3>> <<wikify "" {{
var h="$4";
h == "$"+"4" ? "" : "+++[Hint]"+h+"==="
}}>><<editSection "##$1 Issues" "Issues?" "List all issues with $2">>
: <<wikify "%0" {{
var t=store.getTiddlerText( tiddler.title+"##$1 Issues");
t == null ? '' : "{{{\n"+t+"\n}\}\}";
}}>>
This all works quite well. But now I'm wondering...
The work instructions are for different software products. So some steps do
not apply to all products. In one of my tiddlers ("Release Information") I
have a field ("component") which contains the name of the product.
So is it possible to change my "checkInfo" tiddler somehow so that it
outputs nothing if the "component" is not a specific one?
Maybe so that the tiddler can be called like this?
<<tiddler "checkInfo_IF" with: "component@Release Information == 'Certain
Product'"
"versioninfo"
"VERSIONINFO.txt"
"check that VERSIONINFO.TXT matches release version information"
"{{{\ncat new/VERSIONINFO.TXT\n}\}\}"
>>
--
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 post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/tiddlywiki?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.