Skip to content

Commit f26ac8f

Browse files
committed
Update tiddlers
1 parent 24bb85d commit f26ac8f

9 files changed

Lines changed: 115 additions & 29 deletions

tiddlers/Better Performance in Filter Run.tid

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
created: 20180816201359755
22
creator: Mohammad
33
keywords: filter run
4-
modified: 20190216180309462
4+
modified: 20190406122514564
55
modifier: Mohammad
66
responder: Mark S
77
tags: solution
@@ -61,3 +61,9 @@ There is a built-in filter operator `is[system]` for detecting system tiddlers,
6161
`[!is[system]search:title[Demo]]`
6262

6363
Again, we filter out system tiddlers before doing the search so as to reduce the number of tiddlers that we have to search.
64+
65+
66+
!! More discussion
67+
68+
# [[Performance comparision|https://groups.google.com/d/msg/tiddlywiki/FmuBA2SMjxw/-AkxAPCnCAAJ]] between `[is[current]]` and `<currentTiddler>`
69+
# [[A fast list|https://groups.google.com/d/msg/tiddlywiki/XuHiTCI4N60/_g8ZUvGuAwAJ]]

tiddlers/Change the Colors of One Editor Toolbar Button.tid

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
created: 20190314032516038
22
creator: Mohammad
33
keywords: editor toolbar
4-
modified: 20190316114911902
4+
modified: 20190406122514096
55
modifier: Mohammad
66
responder: JD
77
tags: solution
@@ -47,4 +47,15 @@ If you need to change the background color of all toolbar buttons change the las
4747
fill: red;
4848
background-color: yellow;
4949
}
50+
```
51+
52+
!! Extra
53+
you can also add a width to the svg to make it narrower, specially if it used on mobile.
54+
55+
```
56+
.tc-editor-toolbar button .tc-image-button {
57+
padding: 4px 0px;
58+
font-size: 1.45em;
59+
width: 30px;
60+
}
5061
```

tiddlers/Check if Tiddler Newer Than the Other.tid

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
created: 20190314174758260
22
creator: Mohammad
33
keywords: newer greater tiddler
4-
modified: 20190316114914999
4+
modified: 20190406122514053
55
modifier: Mohammad
66
responder: BurningTreeC
77
tags: exmp54 solution
@@ -16,10 +16,10 @@ url: https://groups.google.com/d/msg/tiddlywiki/9QQvkJkLogA/UbIgaSFSBgAJ
1616
\define is-thisTid-newer(TidA, TidB)
1717
<$set name="tidAMod" value={{{ [[$TidA$]get[modified]] }}}>
1818
<$set name="tidBMod" value={{{ [[$TidB$]get[modified]] }}}>
19-
<$list filter="[<tidAMod>] [<tidBMod>] +[nsort[]last[1]remove<tidAMod>]">
19+
<$list filter="[<tidAMod>] [<tidBMod>] +[nsort[]last[1]removesuffix<tidAMod>]">
2020
Yes, $TidA$ is newer
2121
</$list>
22-
<$list filter="[<tidAMod>] [<tidBMod>] +[nsort[]last[1]remove<tidBMod>]">
22+
<$list filter="[<tidAMod>] [<tidBMod>] +[nsort[]last[1]removesuffix<tidBMod>]">
2323
No, $TidA$ is older
2424
</$list>
2525
</$set>

tiddlers/Create Tiddler with Sequence Number.tid

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
11
created: 20190222064439458
22
creator: Mohammad
33
keywords: create tiddler sequence number
4-
modified: 20190316114914237
4+
modified: 20190406122515134
55
modifier: Mohammad
66
responder: Mohammad
77
tags: exmp50 solution
88
title: Create Tiddler with Sequence Number
99
type: text/vnd.tiddlywiki
1010
url: https://groups.google.com/d/msg/tiddlywiki/3_Xacb7H1p0/BN73J04iAQAJ
1111

12+
''Double check, seems does not work!''
13+
1214
Assume you want to create tiddlers all tagged with say `myTag` and have unique title with ordinal number.
1315
So
1416

@@ -78,4 +80,4 @@ Create a new tiddler
7880
</$wikify>
7981
\end
8082
```
81-
See this method in action: [[Example 50: Tiddler Title with Zero Padded Number]].
83+
See this method in action: [[Example 50: Tiddler Title with Zero Padded Number]].

tiddlers/Display Tagged Tiddlers Using ViewTemplate.tid

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
created: 20190208190653532
22
creator: Mohammad
3-
keywords: conditional viewtemplate tagging
4-
modified: 20190216180309747
3+
keywords: conditional viewtemplate tagging template
4+
modified: 20190406122515367
55
modifier: Mohammad
66
responder: Mohammad and Jeremy Ruston
77
tags: $:/_site/tagging tagging solution

tiddlers/Example 54_ Which Tiddler is Newer.tid

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
created: 20190314201834721
22
creator: Mohammad
3-
modified: 20190316114915143
3+
modified: 20190406122515783
44
modifier: Mohammad
5-
tags:
5+
tags: exmp54
66
title: Example 54: Which Tiddler is Newer
77
type: text/vnd.tiddlywiki
88

Lines changed: 80 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,101 @@
1-
created: 20181115150106640
1+
created: 20180502213625201
22
creator: Mohammad
3-
modified: 20190216180317095
3+
keywords: typed-list ordered
4+
modified: 20190406122519289
45
modifier: Mohammad
6+
tags: tutorial
57
title: Paragraphs in Numbered Lists
68
type: text/vnd.tiddlywiki
79

810
Entries in the list are delimited with a linebreak, making it impossible to include linebreaks within a list entry. There are a couple of workarounds.
911

12+
* ''Paragraph Transclusion''
13+
<<<
1014
First, you can transclude paragraph content from another tiddler. For example:
1115

1216
```
1317
* First entry
1418
* <$transclude tiddler="MyTiddler" mode="block"/>
1519
* Third entry
1620
```
17-
Secondly, you can use an HTML "div" element to contain the multiline content. For example:
21+
<<<
1822

19-
<<wikitext-example-without-html
20-
src:"""
21-
# Step 1
22-
# Step 2
23-
# Step 3<div>
23+
* ''Use three double qoutes''
24+
<<<
25+
```
26+
# One
27+
# """ Hi Mohammad
28+
Are you Okay
29+
"""
30+
# Best
31+
# Better
32+
```
33+
34+
# One
35+
# """ Hi Mohammad
36+
Are you Okay
37+
"""
38+
# Best
39+
# Better
40+
<<<
41+
42+
* ''Use div tag''
43+
<<<
44+
Note that the double linebreak preceding this paragraph is significant.
45+
46+
```
47+
48+
# One
49+
# <div>
2450

25-
Here is the first of several paragraphs. Note that the double linebreak preceding this paragraph is significant.
51+
Hi Mohammad. Are you Okay?
2652

27-
And here is the second of several paragraphs.
53+
> This is a qoute
54+
This is an image
55+
[img width=96 [pig.png]]
2856
</div>
29-
# Step 4
30-
# Step 5
31-
# Step 6
32-
""">>
57+
# Best
58+
# Better
59+
60+
```
61+
62+
# One
63+
# <div>
64+
65+
Hi Mohammad. Are you Okay?
66+
67+
> This is a qoute
68+
This is an image
69+
[img width=96 [pig.png]]
70+
</div>
71+
# Best
72+
# Better
73+
74+
<<<
75+
76+
!! Other example
77+
78+
* To do today
79+
*# Eat
80+
* To get someone else to do
81+
*# This
82+
*# That
83+
*## And the other
84+
* Next level
85+
*# One
86+
*# Two
87+
88+
!!! With CSS class
89+
*.liBlue List One
90+
*.liBrown List Two (use data Tiddler)
91+
*.liGreen List Three
92+
93+
<style>
94+
.liBlue {color:blue}
95+
.liBrown {color:{{myPallete##Brown}} }
96+
.liGreen {color:green};
97+
</style>
98+
3399

34100
; More information
35101
: [[Lists in wikitext|https://tiddlywiki.com/#Lists%20in%20WikiText]]

tiddlers/Template to Show Tagged Tiddlers as a Footer.tid

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
created: 20190226105927482
22
creator: Mohammad
33
keywords: template
4-
modified: 20190316114920857
4+
modified: 20190406122520657
55
modifier: Mohammad
66
responder: Magnus, Mohammad
77
tags: template solution
@@ -22,7 +22,7 @@ To show a list of all tiddlers tagged say with `Content` as footer in all those
2222
</$list>
2323
```
2424

25-
Now every tiddler has been tagged with `Contents` will show in its footer a nice list of all tiddlers, they have `Conetnt` tag.
25+
Now every tiddler has been tagged with `Content` will show in its footer a nice list of all tiddlers, they have `Conetnt` tag.
2626

2727
If tiddlers have caption, their caption will show instead of title.
2828

tiddlers/tutorial.tid

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
created: 20190211080636911
22
creator: Mohammad
3-
list: [[Button Tutorial]] [[Filter Tutorial]] [[Macro Tutorial]] [[Multiline paragraph in list]] myTab [[Nested Lists Tutorial]] [[Setup TW5 on TiddlySpot]] [[TiddlyWiki Tips and Tricks]] [[Work with Lists]] [[Work with Lists - 01]] [[Work with Lists - 03]] [[Work with Lists - 04]] [[Work with Lists - 05]] [[Work with Lists - 06]] [[Work with Lists - 07]] [[Work with Lists - 08]] [[Work with Lists - 10]] [[Work with Lists - 11]] [[Work with Lists - 12]] [[Work with Lists - 13]]
4-
modified: 20190224163836475
3+
list: [[Button Tutorial]] [[Filter Tutorial]] [[Macro Tutorial]] [[Paragraphs in Numbered Lists]] myTab [[Nested Lists Tutorial]] [[Setup TW5 on TiddlySpot]] [[TiddlyWiki Tips and Tricks]] [[Work with Lists]] [[Work with Lists - 01]] [[Work with Lists - 03]] [[Work with Lists - 04]] [[Work with Lists - 05]] [[Work with Lists - 06]] [[Work with Lists - 07]] [[Work with Lists - 08]] [[Work with Lists - 10]] [[Work with Lists - 11]] [[Work with Lists - 12]] [[Work with Lists - 13]]
4+
modified: 20190406122521211
55
modifier: Mohammad
6+
tags:
67
title: tutorial
78
type: text/vnd.tiddlywiki
89

0 commit comments

Comments
 (0)