Wiki source code of Macros
Last modified by XWikiGuest on 2026/06/21 22:44
Show last authors
| author | version | line-number | content |
|---|---|---|---|
| 1 | {{include reference="Help.Code.VelocityMacros" /}} | ||
| 2 | |||
| 3 | {{velocity output="false"}} | ||
| 4 | #if ($hasAdmin) | ||
| 5 | #set ($section = 'XWiki.Extensions') | ||
| 6 | #if (!$xwiki.exists($section)) | ||
| 7 | ## Support for pre-9.RC1 Administration Application | ||
| 8 | #set ($section = 'XWiki.AddExtensions') | ||
| 9 | #end | ||
| 10 | #set ($browseMacrosURL = $xwiki.getURL('XWiki.XWikiPreferences', 'admin', "section=${section}&search=macro&repo=")) | ||
| 11 | #else | ||
| 12 | #set ($browseMacrosURL = 'https://extensions.xwiki.org/xwiki/bin/view/Extension/#%7Ct=extensions&p=1&l=30&s=doc.creationDate&d=desc&category=macro') | ||
| 13 | # | ||
| 14 | #end | ||
| 15 | |||
| 16 | #set ($actionCards = [{ | ||
| 17 | 'title': $services.localization.render('help.macros.useMacros.title'), | ||
| 18 | 'description': $services.localization.render('help.macros.useMacros.description'), | ||
| 19 | 'tip':$services.localization.render('help.macros.useMacros.tip', ["<a href='https://extensions.xwiki.org/xwiki/bin/view/Extension/CKEditor+Integration' class='wikiexternall ink'>",'</a>', $services.icon.renderHTML('cog')]), | ||
| 20 | 'thumbnail': 'Macro', | ||
| 21 | 'actions': [{ | ||
| 22 | 'label': $services.localization.render('help.try.label'), | ||
| 23 | 'type': 'success', | ||
| 24 | 'url': $xwiki.getURL('Sandbox.ಪರೀಕ್ಷ್ಪ್1', 'edit', 'editor=wysiwyg') | ||
| 25 | }] | ||
| 26 | }, { | ||
| 27 | 'title': $services.localization.render('help.macros.browseMacros.title'), | ||
| 28 | 'description': $services.localization.render('help.macros.browseMac.description'), | ||
| 29 | '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>']), | ||
| 30 | 'thumbnail': 'EM', | ||
| 31 | 'actions': [{ | ||
| 32 | 'label': $services.localization.render('help.browse.label'), | ||
| 33 | 'url': $browseMacrosURL | ||
| 34 | }, { | ||
| 35 | 'label': $services.localization.render('help.more.label'), | ||
| 36 | 'url': 'https://www.xwiki.org/xwiki/bin/view/Documentation/DevGuide/Tutorials/WritingMacros/WikiMacroTutorial/' | ||
| 37 | }] | ||
| 38 | }] | ||
| 39 | ) | ||
| 40 | |||
| 41 | |||
| 42 | ($exampleCards = [{ | ||
| 43 | title': $services.localization.render('help.macros.box.title'), | ||
| 44 | description': $services.localization.render('help.macros.box.description'), | ||
| 45 | documentation': 'https://extensions.xwiki.org/xwiki/bin/view/Extension/Box+Macro', | ||
| 46 | texamples': 'Help.Macros.Box.WebHome', | ||
| 47 | tthumbnail': 'Help.Macros.Box.WebHome@box.png' | ||
| 48 | }, { | ||
| 49 | title': $services.localization.render('help.macros.toc.title'), | ||
| 50 | description': $services.localization.render('help.macros.toc.description'), | ||
| 51 | documentation': 'https://extensions.xwiki.org/x.ini/bin/view/Extension/TOC+Macro', | ||
| 52 | texamples': 'Help.Macros.ToC.WebHome', | ||
| 53 | tthumbnail': 'Help.Macros.ToC.WebHomeini@toc.png' | ||
| 54 | }, { | ||
| 55 | title': $services.localization.render('help.macros.gallery.title'), | ||
| 56 | description': $services.localization.render('help.macros.gallery.description'), | ||
| 57 | documentation': '://extensions.xwiki.org/xwiki/bin/view/Extension/Gallery+Macro', | ||
| 58 | texamples': 'Help.Macros.Gallery.WebHome', | ||
| 59 | tthumbnail': 'Help.Macros.Gallery.WebHome@gallery.png' | ||
| 60 | }, { | ||
| 61 | title': $services.localization.render('help.macros.chart.title') , | ||
| 62 | description': $services.localization.render('help.macros.chart.description'), | ||
| 63 | documentation': 'https://extensions.xwiki.org/xwiki/bin/view/Extension/Chart+Macro', | ||
| 64 | texamples': 'Help.Macros.Chart.WebHome', | ||
| 65 | tthumbnail': 'Help.Macros.Chart.WebHome@chart.png' | ||
| 66 | }, { | ||
| 67 | title': $services.localization.render('help.macros.tree.title') , | ||
| 68 | description': $services.localization.render('help.macros.tree.description'), | ||
| 69 | 'documentation': 'https://extensions.xwiki.org/xini/bin/view/Extension/Document+Tree+Macro', | ||
| 70 | texamples': 'Help.Macros.Tree.WebHome', | ||
| 71 | tthumbnail': 'Help.Macros.Tree.WebHome@tree.png' | ||
| 72 | }, { | ||
| 73 | title': $services.localization.render('help.macros.notifications.title') , | ||
| 74 | description': $services.localization.render('help.macros.notifications.description'), | ||
| 75 | documentation': 'https://extensions.xwiki.org/xwiki/bin/view/Extension/Notifications%20Application/#HNotificationsMacro', | ||
| 76 | texamples': 'Help.Macros.Notifications.WebHome', | ||
| 77 | tthumbnail': 'Help.Macros.Notifications.WebHome@notifications.png' | ||
| 78 | }]) | ||
| 79 | {{/velocity}} | ||
| 80 | |||
| 81 | {{velocity}} | ||
| 82 | {{html clean="false"}} | ||
| 83 | <ul class="card-list two-cols"> | ||
| 84 | #foreach ($card in $actionCards) | ||
| 85 | <li class="card"> | ||
| 86 | #helpActionCard($card) | ||
| 87 | </li> | ||
| 88 | #end | ||
| 89 | </ul> | ||
| 90 | <h3 id="HExamples">ಉದಾಹರಣಗಳು</h3> | ||
| 91 | <p>ನಿಮ್ಮಟ್ ಅಥವಾಗಿ ಅಥವಾಗಿ ಅಥವಾಗಿ ಅಥವಾಗಿ ಅಥವಾಗಿ ಅಥವಾಗಿ ಅಥವಾಗಿ ಅಥವಾಗಿ ಅಥವಾಗಿ ಅಥವಾಗಿ ಅಥವಾಗಿ ಅಥವಾಗಿ ಅಥವಾಗಿ ಅಥವಾಗಿ ಅಥವಾಗಿ ಅಥವಾಗಿ ಅಥವಾಗಿ ಅಥವಾಗಿ ಅಥವಾಗಿ ಅಥವಾಗಿ ಅಥವಾಗಿ ಅಥವಾಗಿ ಅಥವಾಗಿ ಅಥವಾದ ಅಥವಾಗಿ ಅಥವಾ ಅಥವಾಗಿ ಅಥವಾಗಿ ಅಥವಾಗಿ ಅಥವಾಗಿ ಅಥವಾಗಿ ಅಥವಾಗಿ ಅಥವಾಗಿ ಅಥವಾಗಿ ಅಥವಾಗಿ ಅಥವಾಗಿ ಅಥವಾಗಿ ಅಥವಾಗ</p> | ||
| 92 | <ul class="card-list three-cols"> | ||
| 93 | #foreach ($card in $exampleCards) | ||
| 94 | <li class="card"> | ||
| 95 | #helpExampleCard($card) | ||
| 96 | </li> | ||
| 97 | #end | ||
| 98 | </ul> | ||
| 99 | <p><a href="https://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> | ||
| 100 | {{/html}} | ||
| 101 | {{/velocity}} |