Changes for page Mission Director Guide
Last modified by Klaus Meyer on 2025/03/31 16:39
From version 32963.1
edited by Daniel Turner
on 2023/08/24 10:05
on 2023/08/24 10:05
Change comment:
There is no comment for this version
To version 32964.1
edited by Daniel Turner
on 2023/08/24 10:08
on 2023/08/24 10:08
Change comment:
There is no comment for this version
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -417,8 +417,6 @@ 417 417 Since octal numbers are hardly ever used (usually unknowingly), the parser is will produce a warning if an octal number is encountered." 418 418 {{/info}} 419 419 420 - 421 - 422 422 You can write string literals by putting the string in single quotes: 423 423 424 424 * {{code language="xml"}}'Hello world'{{/code}} ... ... @@ -509,7 +509,7 @@ 509 509 \\{{code language="xml"}}typeof 'Hello world'{{/code}}| 510 510 {{code language="xml"}}datatype.null{{/code}} 511 511 \\{{code language="xml"}}datatype.integer{{/code}} 512 -\\{{code language="xml"}}datatype.string{{/code}}|Yields the [[data type of the following sub-expression>> MediaWiki.NULL]]510 +\\{{code language="xml"}}datatype.string{{/code}}|Yields the [[data type of the following sub-expression>>||anchor="typeof" style="outline-width: 0px !important; user-select: auto !important;"]] 513 513 |sin|unary| 514 514 {{code language="xml"}}sin(30deg){{/code}} 515 515 \\{{code language="xml"}}sin(pi){{/code}}| ... ... @@ -554,7 +554,7 @@ 554 554 ge 555 555 \\>=|binary| 556 556 {{code language="xml"}}1 ge 3{{/code}} 557 -\\{{code language="xml"}}1 <= 3{{/code}}|{{code language="xml"}}false{{/code}}|Greater than or equal to555 +\\{{code language="xml"}}1 >= 3{{/code}}|{{code language="xml"}}false{{/code}}|Greater than or equal to 558 558 |((( 559 559 560 560 )))|binary|{{code language="xml"}}1 + 1 == 2.0{{/code}}|{{code language="xml"}}true{{/code}}|Equal to ... ... @@ -625,11 +625,8 @@ 625 625 * Unlike != and ==, the comparison operators <, <=, >, >= are only supported **for numeric values**, **difficulty levels**, and **attention levels**. Comparing other non-numeric values will result in an error and an undefined result. 626 626 * <, <=, >, >= cannot be used in XML directly, so lt, le, gt, ge are provided as alternatives. In some cases you won't have to use them, though - using [[range checks>>MediaWiki.NULL]] with additional XML attributes can be more readable. 627 627 628 -(% id="categorybroken_macroanchorstrings-and-formatting" %) ==Strings and formatting==626 +== (% id="categorybroken_macroanchorstrings-and-formatting" %)Strings and formatting(%%) == 629 629 630 - 631 -{{{==}}} 632 - 633 633 You can concatenate string literals using the + operator, but there is also a printf-like formatting syntax, which is easier to use than concatenating lots of small pieces: 634 634 635 635 * {{code language="xml"}}'The %1 %2 %3 jumps over the %5 %4'.['quick', 'brown', 'fox', 'dog', 'lazy']{{/code}} ... ... @@ -849,7 +849,7 @@ 849 849 \\faction.argongovernment|Factions 850 850 ))) 851 851 852 -{{id name="typeof" 847 +{{id name="typeof"/}} 853 853 854 854 {{info}} 855 855 With the ''typeof'' operator you can get the datatype of any expression and compare it with what you expect, for example: