Wiki source code of Help
Last modified by XWikiGuest on 2026/06/22 00:12
Show last authors
| author | version | line-number | content |
|---|---|---|---|
| 1 | {{include reference="Help.Code.VelocityMacros" /}} | ||
| 2 | |||
| 3 | {{velocity output="false"}} | ||
| 4 | #macro (display4Cards $cards) | ||
| 5 | <ul class="card-list"> | ||
| 6 | #foreach ($card in $cards) | ||
| 7 | <li class='card'> | ||
| 8 | #helpExampleCard($card) | ||
| 9 | </li> | ||
| 10 | #end | ||
| 11 | </ul> | ||
| 12 | #end | ||
| 13 | |||
| 14 | #set ($howToCards = [{ | ||
| 15 | 'icon': 'fa fa-support', | ||
| 16 | 'title': $services.localization.render('help.start.title'), | ||
| 17 | 'description': $services.localization.render('help.start.description'), | ||
| 18 | 'documentation': "https://www.xwiki.org/xwiki/bin/view/Documentation/UserGuide/GettingStarted/?version=$escapetool.url($xwiki.version)" | ||
| 19 | }, { | ||
| 20 | 'icon': 'fa fa-play-circle', | ||
| 21 | 'title': $services.localization.render('help.videos.title'), | ||
| 22 | 'description': $services.localization.render('help.videos.description'), | ||
| 23 | 'documentation': 'Help.Videos.WebHome' | ||
| 24 | }]) | ||
| 25 | |||
| 26 | #if ($xwiki.exists('Help.History.WebHome')) | ||
| 27 | #set ($historyURL = $xwiki.getURL('Help.History.WebHome', 'view', $NULL, 'History')) | ||
| 28 | #else | ||
| 29 | ## We need to generate the page history because the Extension Manager doesn't import it. | ||
| 30 | #set ($historyURL = $xwiki.getURL('Help.History.WebHome', 'save', $escapetool.url({ | ||
| 31 | 'content': $services.localization.render('help.history.version1.content'), | ||
| 32 | 'comment': $services.localization.render('help.history.version11.comment'), | ||
| 33 | 'form_token': $services.csrf.token, | ||
| 34 | 'xredirect': $xwiki.getURL('Help.History.WebHome', 'save', $escapetool.url({ | ||
| 35 | 'title': $services.localization.render('help.history.version21.title'), | ||
| 36 | 'content': $services.localization.render('help.history.version21.content'), | ||
| 37 | 'form_token': $services.csrf.token, | ||
| 38 | 'xredirect': $xwiki.getURL('Help.History.WebHome', 'save', $escapetool.url({ | ||
| 39 | 'title': $services.localization.render('help.history.version22.title'), | ||
| 40 | 'content': $services.localization.render('help.history.version22.content',['**']),), | ||
| 41 | 'comment': $services.localization.render('help.history.version22.comment'), | ||
| 42 | 'minorEdit': 1, | ||
| 43 | 'form_token': $services.csrf.token, | ||
| 44 | 'xredirect': $xwiki.getURL('Help.History.WebHome', 'view', $NULL, 'History') | ||
| 45 | })) | ||
| 46 | })) | ||
| 47 | })) | ||
| 48 | #end | ||
| 49 | |||
| 50 | |||
| 51 | #set ($featureCards = [{ | ||
| 52 | 'icon': 'fa fa-pencil', | ||
| 53 | 'title': $services.localization.render('help.edit.title'), | ||
| 54 | 'description': $services.localization.render('help.edit.description',["<a href='https://www.xwiki.org/wiki/bin/view/Documentation/UserGuide/Features/PageEditing' class='wikiexternallink'>",'</a>',"< a href='$xwiki.getURL('XWiki.XWikiSyntax')'>"]) | ||
| 55 | 'documentation': 'https://www.xwiki.org/xwiki/bin/view/Documentation/UserGuide/Features/PageEditing', | ||
| 56 | 'examples': $xwiki.getURL('Sandbox.WebHome', 'edit', 'editor=wysiwyg') | ||
| 57 | }, { | ||
| 58 | 'icon': 'fa fa-file-text-o', | ||
| 59 | 'title': $services.localization.render('help.templates.title'), | ||
| 60 | 'description': $services.localization.render('help.templates.description'), | ||
| 61 | 'documentation': 'Help.Templates.WebHome', | ||
| 62 | 'examples': $xwiki.getURL('Help.Templates.WebHome', 'view', $NULL, 'HExamples') | ||
| 63 | }, { | ||
| 64 | 'icon': 'fa fa-file-excel-o', | ||
| 65 | 'title': $services.localization.render('help.macros.title'), | ||
| 66 | 'description': $services.localization.render('help.macros.description'), | ||
| 67 | 'documentation': 'Help.Macros.WebHome', | ||
| 68 | 'examples': $xwiki.getURL('Help.Macros.WebHome', 'view', $NULL, 'HExamples') | ||
| 69 | }, { | ||
| 70 | 'icon': 'fa fa-files-o', | ||
| 71 | 'title': $services.localization.render('help.applications.title'), | ||
| 72 | 'description': $services.localization.render('help.applications.description'), | ||
| 73 | 'documentation': 'Help.Applications.WebHome', | ||
| 74 | 'examples': $xwiki.getURL('Help.Applications.WebHome', 'view', $NULL, 'HExamples') | ||
| 75 | }, { | ||
| 76 | 'icon': 'fa fa-sitemap', | ||
| 77 | 'title': $services.localization.render('help.organization.title'), | ||
| 78 | 'description': $services.localization.render('help.organization.description'), | ||
| 79 | 'documentation': 'https://www.xwiki.org/x // | ||
| 80 | 'examples': $xwiki.getURL('Main.AllDocs', 'view', 'view=tree') | ||
| 81 | t}, { | ||
| 82 | 'icon': 'fa fa-history', | ||
| 83 | 'title': $services.localization.render('help.history.title'), | ||
| 84 | 'description': $services.localization.render('help.history.description'), | ||
| 85 | 'documentation': 'https://www.xwiki.org/xwiki/bin/view/Documentation/UserGuide/Features/VersionControl', | ||
| 86 | 'examples': $historyURL | ||
| 87 | }, { | ||
| 88 | 'icon': 'fa fa-download', | ||
| 89 | 'title': $services.localization.render('help.import.title'), | ||
| 90 | 'description': $services.localization.render('help.import.description'), | ||
| 91 | 'documentation': 'https://www.xwiki.org/xwiki/bin/view/Documentation/UserGuide/Features/Imports' | ||
| 92 | }]) | ||
| 93 | {{/velocity}} | ||
| 94 | |||
| 95 | {{velocity}} | ||
| 96 | t= $services.localization.render('help.title1') = | ||
| 97 | t | ||
| 98 | $services.localization.render('help.description1') | ||
| 99 | t | ||
| 100 | {{html clean="false"}} | ||
| 101 | t# - display4Cards($howToCards) | ||
| 102 | t{{/html}} | ||
| 103 | t | ||
| 104 | = $services.localization.render('help.title2') = | ||
| 105 | t | ||
| 106 | $services.localization.render('help.description2') | ||
| 107 | t | ||
| 108 | {{html clean="false"}} | ||
| 109 | t#display4Cards($featureCards) | ||
| 110 | t{{/html}} | ||
| 111 | t{{/velocity}}", | ||
| 112 | "source_lang": "ru", | ||
| 113 | "confidence": 0.95 | ||
| 114 | } | ||
| 115 | } | ||
| 116 | } | ||
| 117 | } | ||
| 118 | } | ||
| 119 | } | ||
| 120 | } | ||
| 121 | } | ||
| 122 | } | ||
| 123 | } | ||
| 124 | } | ||
| 125 | } | ||
| 126 | } | ||
| 127 | } | ||
| 128 | } | ||
| 129 | } | ||
| 130 | } | ||
| 131 | } | ||
| 132 | } | ||
| 133 | } | ||
| 134 | } | ||
| 135 | } | ||
| 136 | } | ||
| 137 | } | ||
| 138 | } | ||
| 139 | } | ||
| 140 | } | ||
| 141 | } | ||
| 142 | } | ||
| 143 | } | ||
| 144 | } | ||
| 145 | } | ||
| 146 | } | ||
| 147 | } | ||
| 148 | } | ||
| 149 | } | ||
| 150 | } | ||
| 151 | } | ||
| 152 | } | ||
| 153 | } | ||
| 154 | } | ||
| 155 | } | ||
| 156 | } | ||
| 157 | } | ||
| 158 | } | ||
| 159 | } | ||
| 160 | } | ||
| 161 | } | ||
| 162 | } | ||
| 163 | } | ||
| 164 | } | ||
| 165 | } | ||
| 166 | } | ||
| 167 | } | ||
| 168 | } | ||
| 169 | } | ||
| 170 | } | ||
| 171 | } | ||
| 172 | } | ||
| 173 | } | ||
| 174 | } | ||
| 175 | } | ||
| 176 | } | ||
| 177 | } | ||
| 178 | } | ||
| 179 | } | ||
| 180 | } | ||
| 181 | } | ||
| 182 | } | ||
| 183 | } | ||
| 184 | } | ||
| 185 | } | ||
| 186 | } | ||
| 187 | } | ||
| 188 | } |