24 | | |
| 24 | Optionally, help topics can include a fragment after a {{{#}}}. Example: {{{/ErrorMessages#BadRequest}}}. The fragment refers to a named section in the help content and the help content should either include a HTML element with an id or a name whose value is equal to the fragment. There are two approaches for creating these HTML elements: |
| 25 | 1. declare the id of a wiki heading, i.e. |
| 26 | {{{ |
| 27 | == Error message for bad request == #BadRequest |
| 28 | }}} |
| 29 | 2. include an HTML anchor, i.e. |
| 30 | {{{ |
| 31 | {{{ |
| 32 | #!html |
| 33 | <a name="BadRequest"/> |
| 34 | }}} |
| 35 | }}} |
| 36 | |
| 37 | === Translating help content === |
| 38 | You're encouraged to translate help content into your language. You may start with [wiki:/DevelopersGuide/HelpSystem/HelpTopicsList this list of expected help pages] and either translate already existing pages or fill in new pages with content in other languages. |
| 39 | |
| 40 | '''Do not''' translate the relative help topics, though. The names of relative help topics, including the optional fragments after a {{{#}}} have to be the same in all languages. The german help page for {{{/Help/Action/Upload}}} should be {{{/De:Help/Action/Upload}}}, not {{{/Help/Aktion/Hochladen}}} or even {{{/Hilfe/Aktion/Hochladen}}}. |
| 41 | |
| 42 | === Help content within help pages === |
| 43 | You will notice that JOSMs help browser doesn't display the complete help page available on the wiki. JOSM extracts the core help content from wiki pages and slightly transforms it such that its internal browser can render it. |