Support/Kitsune/KB/WikiSyntax: Difference between revisions

no edit summary
(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}


The markup between {for} and {/for} will be hidden if either of these conditions is met:
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} mentions at least one OS, but it isn't the one the user is running (or has manually selected).
 
* The {for} mentions at least one browser version, but it isn't the one the user is running (or has manually selected).
{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 no longer necessary at the top of each article.
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 ===
Confirmed users
574

edits