Confirmed users
574
edits
(Created page with "How to use wiki syntax in the SUMO 2.3 Knowledgebase == {for}, the new SHOWFOR == Both {SHOWFOR} and {DIV(class=win,type=span)} have been replaced by the {for} directive. ===...") |
No edit summary |
||
Line 9: | Line 9: | ||
{for mac,fx35}Hello{/for} | {for mac,fx35}Hello{/for} | ||
A more complex condition with an "or", {SHOWFOR(os=mac+win,browser=firefox3.5+firefox4)} (not actually possible in the old system), is spelled... | |||
* The {for} | |||
* The {for} | {for mac, win, fx35, fx4}You are running a Mac or Windows and using Firefox 3.5 or 4.{/for} | ||
Formally, the markup between {for} and {/for} will be ''hidden'' if either of these conditions is met: | |||
* The {for} lists at least one OS, but it isn't the one the user is running (or has manually selected). | |||
* The {for} lists at least one browser version, but it isn't the one the user is running (or has manually selected). | |||
Otherwise, the contents of the {for}...{/for} is shown. | Otherwise, the contents of the {for}...{/for} is shown. | ||
{SHOWFOR(spans=on)/} is | Spaces after the commas are optional. | ||
No {SHOWFOR(spans=on)/} or equivalent is necessary anymore; the {for} syntax is always enabled. | |||
=== Inline and block-level contexts === | === Inline and block-level contexts === |