고급 위키 문법 예제 | |
위키 문법은 대부분의 경우 단순하며 유용합니다. 하지만, 어떤 경우, 위키 문법이 거추장스러워 보일 때가 있으며 (x)HTML 을 사용해야만 하는 것처럼 보일 때가 있습니다. 이 페이지에서는 티키의 위키 문법을 사용하여 가장 많은 결과물을 얻어낼 수 있도록 팁 & 트릭을 공유하고자 합니다. |
깨지지 않는 공간 (스페이스) 만드는 법 | |
Copy to clipboard
|
How to get multiple lines in a table cell | ||||
Copy to clipboard
|
How to make an ordered or unordered (bullet) list in a table cell? | ||||||||||||||||
|
Using HTML Plugin | ||||
So here is a workaround using the HTML wiki plugin: Copy to clipboard
|
Using Dynamic Variables syntax | ||||
If you cannot use HTML plugin (which requires admin validation), you can try your luck with Dynamic Variables: Copy to clipboard
NaV to edit the dynamic variables you just created and substitute first occurence of %)li% with , then %li(% with and finally %)ol% with and %ol(% with . After the values are saved, anyone can re-use that new "custom syntax" then.
Warning Be careful what you put in the content of the dynamic variable which you edit. Only some characters are supported. Alphabet, numbers and HTML tags are fine, but it doesn't support double quotes for example so HTML attributes will not work and there is no GUI to edit the dynamic variables later (afaik, at the time of writing this) when they become tags and thus un-clickable elements ! |
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.
|
Numbered lists which continue after some line breaks | |
Copy to clipboard
generates:
|
Using + for item continuation | |
An alternative is to use + to continue numbering: Copy to clipboard
generates:
|
Using = with underline | |
=== is the syntax for underline. This doesn't work: Copy to clipboard
Copy to clipboard
workaround number 2 Copy to clipboard
|
Allowing Formatting characters to span paragraphs | |
When you use :: or '' or similar formatting tags, at leat in 1.9 (haven't tried in 1.10) they don't get recognized. Instead you see the beginning characters, then the paragraph, then the paragraph space, then the continuation of the next paragraph ending with the closing characters. ''This doesn't
::Irritating when you want to center
every line with ::
kerrnel22 learns
something new every day! Thanks ricks!
|
Use %%% to break lines within formatting | |
For example: This does Not so irritating when you want to center
text across multiple lines without bracketing every line with ::
|
Wrap code Sections to Fit the Window | |
Not sure if this is something browser-specific or Tiki-specific (I think it's both), but when you put really long lines inside CODE blocks they tend to run off the right side of the page and completely mess up the pagescape. It would be nice, based on the size of the window (and therefore the size of the middle content box) to wrap the CODE text at the right margin of the middle box. Having said that, when using CODE blocks on a printer-friendly page, they don't get wrapped there, even when you send it to the printer. I think that's a browser issue. But we should be able to address the wiki page issue? Solution is easy: use
|
How to display URL param in a page or the page name or the user name | |
You need to activate the feature 'Wiki Argument Variables' on Admin > Editing and Plugins panel for Tiki >= 5. For Tiki version 4.x, you need to manually set the preference in the database as feature_wiki_argvariable.
2 special cases that are defined whatever is in the URL
Related
|