Changes for page Macros

Last modified by Leon Poon on 2022/06/05 09:12

From version 1.1
edited by Leon Poon
on 2018/12/16 14:34
Change comment: Install extension [org.xwiki.contrib:application-help-center/1.3]
To version 2.1
edited by Leon Poon
on 2019/06/16 14:47
Change comment: Install extension [org.xwiki.contrib:application-help-center/1.5.1]

Summary

Details

Page properties
Title
... ... @@ -1,1 +1,1 @@
1 -Macros
1 +$services.localization.render('help.macros.title')
Content
... ... @@ -13,62 +13,62 @@
13 13  #end
14 14  
15 15  #set ($actionCards = [{
16 - 'title': 'Use Macros',
17 - 'description': 'Macros are reusable pieces of functionality that can be integrated inside pages.',
18 - 'tip': "The <a href=""http://extensions.xwiki.org/xwiki/bin/view/Extension/CKEditor+Integration"" class=""wikiexternallink"">WYSIWYG Editor</a> allows you to insert macros and to customize their parameters when editing pages. Look for the $services.icon.renderHTML('cog') button on the tool bar.",
16 + 'title': $services.localization.render('help.macros.useMacros.title'),
17 + 'description': $services.localization.render('help.macros.useMacros.description'),
18 + 'tip':$services.localization.render('help.macros.useMacros.tip', ["<a href='http://extensions.xwiki.org/xwiki/bin/view/Extension/CKEditor+Integration' class='wikiexternallink'>",'</a>', $services.icon.renderHTML('cog')]),
19 19   'thumbnail': 'Macro',
20 20   'actions': [{
21 - 'label': 'Try it!',
21 + 'label': $services.localization.render('help.try.label'),
22 22   'type': 'success',
23 23   'url': $xwiki.getURL('Sandbox.TestPage1', 'edit', 'editor=wysiwyg')
24 24   }]
25 25  }, {
26 - 'title': 'Browse Macros',
27 - 'description': 'Choose from community contributed macros and install them inside your wiki.',
28 - 'tip': "The <a href=""#if($xwiki.exists('XWiki.XWikiSyntaxMacrosList'))$xwiki.getURL('XWiki.XWikiSyntaxMacrosList')#{else}$xwiki.getURL('XWiki.WikiMacros')#end"">Macro Index</a> lists the macros that are already installed and ready to be used inside your pages.",
26 + 'title': $services.localization.render('help.macros.browseMacros.title'),
27 + 'description': $services.localization.render('help.macros.browseMacros.description'),
28 + 'tip': $services.localization.render('help.macros.browseMacros.tip', ["<a href='#if($xwiki.exists('XWiki.XWikiSyntaxMacrosList'))$xwiki.getURL('XWiki.XWikiSyntaxMacrosList')#{else}$xwiki.getURL('XWiki.WikiMacros')#end'>",'</a>']),
29 29   'thumbnail': 'EM',
30 30   'actions': [{
31 - 'label': 'Browse',
31 + 'label': $services.localization.render('help.browse.label'),
32 32   'url': $browseMacrosURL
33 33   }, {
34 - 'label': 'Learn more',
34 + 'label': $services.localization.render('help.more.label'),
35 35   'url': 'http://platform.xwiki.org/xwiki/bin/view/DevGuide/WikiMacroTutorial'
36 36   }]
37 37  }])
38 38  
39 39  #set ($exampleCards = [{
40 - 'title': 'Box',
41 - 'description': 'Displays a message in a styled box.',
40 + 'title': $services.localization.render('help.macros.box.title'),
41 + 'description': $services.localization.render('help.macros.box.description'),
42 42   'documentation': 'http://extensions.xwiki.org/xwiki/bin/view/Extension/Box+Macro',
43 43   'examples': 'Help.Macros.Box.WebHome',
44 44   'thumbnail': 'Help.Macros.Box.WebHome@box.png'
45 45  }, {
46 - 'title': 'Table of Contents',
47 - 'description': 'Generates a table of contents for the page headings.',
46 + 'title': $services.localization.render('help.macros.toc.title'),
47 + 'description': $services.localization.render('help.macros.toc.description'),
48 48   'documentation': 'http://extensions.xwiki.org/xwiki/bin/view/Extension/TOC+Macro',
49 49   'examples': 'Help.Macros.ToC.WebHome',
50 50   'thumbnail': 'Help.Macros.ToC.WebHome@toc.png'
51 51  }, {
52 - 'title': 'Gallery',
53 - 'description': 'Displays a list of images in a slide-show gallery.',
52 + 'title': $services.localization.render('help.macros.gallery.title'),
53 + 'description': $services.localization.render('help.macros.gallery.description'),
54 54   'documentation': 'http://extensions.xwiki.org/xwiki/bin/view/Extension/Gallery+Macro',
55 55   'examples': 'Help.Macros.Gallery.WebHome',
56 56   'thumbnail': 'Help.Macros.Gallery.WebHome@gallery.png'
57 57  }, {
58 - 'title': 'Chart',
59 - 'description': 'Generates graphical charts from data sources.',
58 + 'title': $services.localization.render('help.macros.chart.title') ,
59 + 'description': $services.localization.render('help.macros.chart.description'),
60 60   'documentation': 'http://extensions.xwiki.org/xwiki/bin/view/Extension/Chart+Macro',
61 61   'examples': 'Help.Macros.Chart.WebHome',
62 62   'thumbnail': 'Help.Macros.Chart.WebHome@chart.png'
63 63  }, {
64 - 'title': 'Page Tree',
65 - 'description': 'Displays the hierarchy of pages.',
64 + 'title': $services.localization.render('help.macros.tree.title') ,
65 + 'description': $services.localization.render('help.macros.tree.description'),
66 66   'documentation': 'http://extensions.xwiki.org/xwiki/bin/view/Extension/Document+Tree+Macro',
67 67   'examples': 'Help.Macros.Tree.WebHome',
68 68   'thumbnail': 'Help.Macros.Tree.WebHome@tree.png'
69 69  }, {
70 - 'title': 'Notifications',
71 - 'description': 'Displays recent activities done on pages by the users.',
70 + 'title': $services.localization.render('help.macros.notifications.title') ,
71 + 'description': $services.localization.render('help.macros.notifications.description'),
72 72   'documentation': 'http://extensions.xwiki.org/xwiki/bin/view/Extension/Notifications%20Application/#HNotificationsMacro',
73 73   'examples': 'Help.Macros.Notifications.WebHome',
74 74   'thumbnail': 'Help.Macros.Notifications.WebHome@notifications.png'
... ... @@ -104,6 +104,6 @@
104 104   </div>
105 105   #end
106 106  </div>
107 -<p><a href="http://extensions.xwiki.org/xwiki/bin/view/Main/#%7Ct=extensions&p=1&l=30&s=doc.creationDate&d=desc&category=macro" class="wikiexternallink">View more macros</a></p>
107 +<p><a href="http://extensions.xwiki.org/xwiki/bin/view/Main/#%7Ct=extensions&p=1&l=30&s=doc.creationDate&d=desc&category=macro" class="wikiexternallink">$services.localization.render('help.macros.more')</a></p>
108 108  {{/html}}
109 109  {{/velocity}}