고급 위키 문법 예제
위키 문법은 대부분의 경우 단순하며 유용합니다. 하지만, 어떤 경우, 위키 문법이 거추장스러워 보일 때가 있으며 (x)HTML 을 사용해야만 하는 것처럼 보일 때가 있습니다. 이 페이지에서는 티키의 위키 문법을 사용하여 가장 많은 결과물을 얻어낼 수 있도록 팁 & 트릭을 공유하고자 합니다.
{maketoc}
깨지지 않는 공간 (스페이스) 만드는 법
In (x)HTML there's or   for it but how to make it on a wiki page ? It's easy using ~hs~ which is a shortcut for "hard-space":
This is especially useful when you want to~hs~write a~hs~nicely formatted sentence with some date at~hs~the~hs~end of~hs~a~hs~line which will not break into parts after wrapping when resizing the~hs~viewport: 13th~hs~of~hs~December,~hs~2007.
generates:
This is especially useful when you want to write a nicely formatted sentence with some date at the end of a line which will not break into parts after wrapping when resizing the viewport: 13th of December, 2007.
How to get multiple lines in a table cell
||r1c1|r1c2%%% Here is my first line %%% Here is my second line %%% Here is my third line r2c1|r2c2||
generates:
r1c1 | r1c2%%% Here is my first line Here is my second line Here is my third line |
---|---|
r2c1 | r2c2 |
How to make an ordered or unordered (bullet) list in a table cell?
Doesn't look possible with current syntax...
r1c1 | r1c2%%% #item1 #item2 #item3 |
---|---|
r2c1 | r2c2 |
r1c1 | r1c2%%% * item1 * item2 * item3 |
---|---|
r2c1 | r2c2 |
r1c1 | r1c2%%%* item1 |
---|---|
* item2 |
|
* item3 | |
r2c1 | r2c2 |
Using HTML Plugin
So here is a workaround using the HTML wiki plugin:
||r1c1|r1c2{HTML()}<ol><li>item1</li><li>item2</li><li>item3</li></ol>{HTML} r2c1|r2c2||
r1c1 | r1c2
|
---|---|
r2c1 | r2c2 |
Using Dynamic Variables syntax
If you cannot use HTML plugin (which requires admin validation), you can try your luck with Dynamic Variables:
||r1c1|r1c2 %ol(% %li(%item1 %)li% %li(%item2 %)li% %)ol% r2c1|r2c2||
r1c1 | r1c2 |
---|---|
r2c1 | r2c2 |
The trick is after you save the wiki page that you need to click every NaV
to edit the dynamic variables you just created and substitute first occurence of %)li%
with , then `%li(%` with `27. ` and finally `%)ol%` with
and %ol(%
with ``. After the values are saved, anyone can re-use that new "custom syntax" then.
## Creating advanced tables
Would be nice to not have to resort to HTML when doing tables where you want to span columns or rows. Adding colspan/rowspan options and possibly also allowing individual cell alignment (vert and horiz) would be great. Even if this was relegated to something like FANCYTABLES, I'd be happy with it.
### SPLIT plugin work-around
Would have to edit the plugin and/or CSS if you want a border, though.
<div class='table-responsive'><div><table class='table'><tr><td width="100">
r1c1
r1c2
- item1
- item2
- item3
r2c1
r2c2