Support/Kitsune/KB/WikiSyntax: Difference between revisions

Jump to navigation Jump to search
m
flow
m (grammar)
m (flow)
Line 56: Line 56:


=== "not" operator ===
=== "not" operator ===
Since the Knowledgebase will see the addition of new OSes and browser versions from time to time, we introduce a future-proof way of saying, for example, "any OS other than these". This is the role of the {for not} syntax.
Since the Knowledgebase will see the addition of new OSes and browser versions from time to time, we introduce a future-proof way of saying, for example, "any OS but these". This is the role of the {for not} syntax.


  Press the {for mac}Apple{/for}{for not mac}Control{/for} key.
  Press the {for not mac}Control{/for}{for mac}Apple{/for} key.


The addition of the word "not" causes the {for} contents to show when they would otherwise have hidden and vice versa. The above message would thus read "Control" on any system not running Mac OS.
The addition of the word "not" causes the {for} contents to show when they would otherwise have hidden and vice versa. The above message would thus read "Control" on any system not running Mac OS.


"not" can even be used with combinations of items:
"not" can also be used with combinations of items:


  {for not mac,win}You aren't using a Mac or Windows.{/for}
  {for not mac,win}You aren't using a Mac or Windows.{/for}
Confirmed users
574

edits

Navigation menu