| 494 | |
| 495 | == Comments == |
| 496 | |
| 497 | Normal XML/HTML comment syntax can be used in templates: |
| 498 | |
| 499 | {{{ |
| 500 | #!xml |
| 501 | <!-- this is a comment --> |
| 502 | }}} |
| 503 | |
| 504 | However, such comments get passed through the processing pipeline and are by default included in the final output. If that's not desired, prefix the comment text with an exclamation mark: |
| 505 | |
| 506 | {{{ |
| 507 | #!xml |
| 508 | <!-- !this is a comment too, but one that will be stripped from the output --> |
| 509 | }}} |
| 510 | |
| 511 | Note that it does not matter whether there's whitespace before or after the exclamation mark, so the above could also be written as follows: |
| 512 | |
| 513 | {{{ |
| 514 | #!xml |
| 515 | <!--! this is a comment too, but one that will be stripped from the output --> |
| 516 | }}} |
| 517 | |