Fullscreen
[Show/Hide Left Column]
[Show/Hide Right Column]

Examples of advanced wiki syntax usage
3d browser Print

Advanced Wiki Syntax Examples

Wiki syntax is simple and useful in most cases. However, there are some times where wiki syntax gets in the way or it seems you need to use (x)HTML. This page is to share tips & tricks with you about making the most out of the Tiki's wiki syntax.

Table of contents



How to make a non-breakable space


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:
r1c1r1c2
Here is my first line
Here is my second line
Here is my third line
r2c1r2c2



How to make a bullet list in a table cell?


Doesn't look possible with current syntax...
r1c1r1c2
#item1
#item2
#item3
r2c1r2c2


r1c1r1c2
* item1
* item2
* item3
r2c1r2c2


r1c1r1c2
* item1
* item2
* item3
r2c1r2c2


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||
generates:
r1c1r1c2
  1. item1
  2. item2
  3. item3
r2c1r2c2


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.
r1c1
r1c2
  1. item1
  2. item2
  3. item3
r2c1
r2c2


Numbered lists which continue after some line breaks



# ((tw:Top-10 files))
# ((tw:Participate|Top-10 ways to help))
# ((tw:Top-10 news|Top-10 ways to get news))
# ((tw:Top-10 stats)) about Tiki
# ((tw:Top-10 differences|Top-10 ways in which Tiki is very different from other projects))
# ((tw:WhyUseTiki|Top-10 reasons to choose Tiki))
# ((tw:Top-10 criticisms))%%% %%% Also,%%% %%%
# ((tw:TikiBackronym|Top-10 potential meanings for T-i-k-i))
# ((tw:Top-10 Words))

generates:
  1. Top-10 files
  2. Participate
  3. Top-10 news
  4. Top-10 stats about Tiki
  5. Top-10 differences
  6. WhyUseTiki
  7. Top-10 criticisms

    Also,

  8. TikiBackronym
  9. Top-10 Words

Using + for item continuation

An alternative is to use + to continue numbering:

# Item 
# Item 
# Item 
+ Also,
# Item 
# Item

generates:
  1. Item
  2. Item
  3. Item
    Also,
  4. Item
  5. Item

Using = with underline

=== is the syntax for underline.

This doesn't work:

=== 1+1 = 3 ===


workaround number 1

=== 1+1 ~61~ 3 ===


generates:
1+1 = 3

workaround number 2

{TAG(tag=u)}1+1 = 3{TAG}


generates:
1+1 = 3

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
work properly.''
But this does.

::Irritating when you want to center
text across multiple lines without bracketing::
every line with ::


kerrnel22 learns
something new every day!
Thanks ricks!



Use %%% to break lines within formatting

For example:

This does
work properly.


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 wrap=1 parameter in CODE plugin


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 home → Editing and Plugins 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
  • {{page}} will display the name of the current page
  • {{user}} will display the user name


Related

Contributors to this page: marclaporte4507 points  , chibaguy801 points  , sylvie3000 points  , lindon1699 points  , luci1342 points  , ricks994217 points  and kerrnel22134 points  .
Page last modified on Sunday 21 February, 2010 21:18:43 UTC by marclaporte4507 points .

To register

To have an account at this site, please register at Tikiwiki.org (external link), and then use that user name and password to log in here.

Find by Page Name

Exact match

Keywords

The following is a list of keywords that should serve as hubs for navigation within the Tiki documentation and should correspond to development keywords (bug reports and feature requests):

Accessibility (WAI – 508)
Action log 2.x
Alert 3.x
Articles & Submissions
Backlinks
Banners
Blog
Bookmark
Browser Compatibility
Cache
Calendar
Category
Chat
Clean URLs
Comments
Communication Center
Compression (gzip)
Contacts Address book
Contact us
Content template
Contribution 2.x
Cookie
Copyright
Custom Home (and Groups Home Page)
Date and Time
Debugger Console
Directory (of hyperlinks)
Documentation link from Tiki to doc.tikiwiki.org (Help System)
DogFood
Dynamic Content
Dynamic Variable
External Authentication
FAQ
Featured links
File Gallery
Forum
Friendship Network (Community)
Gmap Google maps
Groups
Hotword
HTML Page
i18n (Multilingual, l10n, Babelfish)
Image Gallery
Import-Export
Install
Integrator
Interaction
Inter-User Messages
InterTiki
Karma
Live Support
Login
Look and Feel
Lost edit protection
Mail-in
Map with Mapserver
Menu
Meta Tags
Mobile Tiki and Voice Tiki
Mods
Module
MultiTiki
MyTiki
Newsletter
Notepad
Payment
Performance Speed / Load
Permissions
Platform independence (Linux-Apache, Windows/IIS, Mac, BSD)
Polls
Profile Manager
Quicktags
Quiz
Rating
Feeds
Score
Search engine optimization
Search
Security
Semantic links 3.x
Shadowbox
Shoutbox
Slideshow
Smarty Template
Smiley
Spam protection (Anti-bot CATPCHA)
Spellcheck
Spreadsheet
Stats
Surveys
System log
Tags 2.x
Task
Tell a Friend + Social Bookmarking 2.x
TikiTests 2.x
Theme
Trackers
TRIM
User Administration including registration and banning
User Files
User Menu
Watch
WebHelp
Webmail
Webservices
Wiki 3D
Wiki History, page rename, etc
Wiki Page Staging and Approval 2.x
Wiki Plugins extends basic syntax
Wiki Syntax
Wiki structure (book and table of content)
WYSIWYCA
WYSIWYG 2.x
XMLRPC