如何製作雙欄(double column)的內容?

17 views
Skip to first unread message

iveney

unread,
Jan 21, 2009, 8:21:28 AM1/21/09
to TiddlyWiki 華語支援論壇
我想做這么一個頁面,使得左邊一欄放一副照片,右邊的一欄放上幾段介紹。如下:

|
| ... |
|
| ... |
|
| ... |
| (img,只有一張) | (介紹) |
|
| ... |
|
| ... |
|
| ... |
|
| ... |

希望在介紹裡面,能用上各種wikiword
比如#, !, *等等。

我試了一下拿tiddly的table來實現,發覺wikiword在裡面失效了。
使用html代碼來實現更是用不了wikiword……

who can help me?

Message has been deleted

BramChen

unread,
Jan 21, 2009, 12:40:11 PM1/21/09
to TiddlyWiki 華語支援論壇
一般而言, wiki word 是指字首為大寫,且超過兩個大寫,且包含小寫字母的「英文字」,
例如:WikiWord、WIkiword。

所以,你指的應該是 wiki 標記語法(wiki markups)。

!、#、*、:、; 等標記,都須於每個橫列的起始位置,才會有 wiki 標記的作用。
因此,在你的案例中,介紹圖片的內容須放在別的 tiddler 裡,再以 <<tiddler>> 巨集顯示。例如:

tiddler MyPhoto 的內容:
|[img[ImageTitle|/pathto/imagefile.ext]]|<<tiddler MyPhotoInfo>>|

tiddler MyPhotoInfo 則可使用上述標記:
!Section 1
#AAA
#BBB
!Section 2
* aaa
* bbb
....

其中除 ! 之外,其餘可於同一 tiddler 中,使用 slice 的方式,例如:

tiddler MyPhoto 的內容:

|[img[ImageTitle|/pathto/imagefile]]|<<tiddler [[MyPhoto##SectionX]]
>>|
/%
!SectionX
* X
# AAA
# BBB
* Y
# aaa
# bbb
!end
%/

善用 <<tiddler>> 巨集,
除了可以讓許多「不能」變成「可能」之外,
更可「結構化」編排複雜的內容,
以及藉由傳遞不同的參數,「動態」顯示內容。

http://ptw.sf.net/TiddlyWiki123.zh-Hant.html 有一些 <<tiddler>> 的應用實例可供參
考。

> 使用html代碼來實現更是用不了wikiword......
>
> who can help me?

BramChen

unread,
Jan 21, 2009, 12:44:12 PM1/21/09
to TiddlyWiki 華語支援論壇
前述第二個範例被 google 斷行了,應該是:
|[img[ImageTitle|imagefile]]|<<tiddler [[MyPhoto##SectionX]]>>|

> http://ptw.sf.net/TiddlyWiki123.zh-Hant.html有一些 <<tiddler>> 的應用實例可供參

iveney

unread,
Jan 22, 2009, 12:34:06 AM1/22/09
to TiddlyWiki 華語支援論壇
感激不尽!
多谢纠正我的理解错误.
我马上试试 :)

BramChen

unread,
Jan 23, 2009, 10:49:01 AM1/23/09
to Tiddly...@googlegroups.com
不客氣。

2009/1/22 iveney <ive...@gmail.com>:

--
Bram Chen
Website: http://ptw.sf.net/

Reply all
Reply to author
Forward
0 new messages