Wiki source code of Macros
Last modified by XWikiGuest on 2026/06/21 22:55
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.2RC1 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 | #end | ||
| 14 | |||
| 15 | #set ($actionCards = [{ | ||
| 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='https://extensions.xwiki.org/xwiki/bin/view/Extension/CKEditor+Integration' class='wikiexternall ink'>",'</a>', $services.icon.renderHTML('cog')]), | ||
| 19 | 'thumbnail': 'Macro', | ||
| 20 | 'actions': [{ | ||
| 21 | 'label': $services.localization.render('help.try.label'), | ||
| 22 | 'type': 'success', | ||
| 23 | 'url': $xwiki.getURL('Sandbox.TestPage1', 'edit', 'editor=wysiwyg') | ||
| 24 | }] | ||
| 25 | }, { | ||
| 26 | 'title': $services.localization.render('help.macros.browseMacros.title'),\n 'description': $services.localization.render('help.macros.browseMacros.description'), | ||
| 27 | 'tip': $services.localization.render('help.macros.browseMacros.tip', ["< -",'</a>']), | ||
| 28 | 'thumbnail': 'EM', | ||
| 29 | 'actions': [{ | ||
| 30 | 'label': $services.localization.render('help.browse.label'), | ||
| 31 | 'url': $browseMacrosURL | ||
| 32 | }, { | ||
| 33 | 'label': $services.localization.render('help.more.label'), | ||
| 34 | 'url': 'https://www.xwiki.org/xwiki/bin/view/Documentation/DevGuide/Tutorials/WritingMacros/W/WikiMacroTutorial/' | ||
| 35 | }] | ||
| 36 | }]) | ||
| 37 | |||
| 38 | {{/velocity}} | ||
| 39 | |||
| 40 | {{velocity}} | ||
| 41 | {{html clean="false"}} | ||
| 42 | <ul class="card-list two-cols"> | ||
| 43 | #foreach ($card in $actionCards) | ||
| 44 | <li class="card"> | ||
| 45 | #helpActionCard($card) | ||
| 46 | </li> | ||
| 47 | #end | ||
| 48 | </ul> | ||
| 49 | <h3 id="HExamples">ఉదాహరణలు</h3> | ||
| 50 | <p>మా మాక్రోలలో కొన్నింటితో సహాయం అవసరమా లేదా గందరగోళంలో ఉన్నారా? వాటి డాక్యుమెంటేషన్ తనిఖీ చేసి, వాటి పనితీరు గురించి మరింత తెలుసుకోండి.</p> | ||
| 51 | <ul class="card-list three-cols"> | ||
| 52 | #foreach ($card in $exampleCards) | ||
| 53 | <li class="card"> | ||
| 54 | #helpExampleCard($card) | ||
| 55 | </li> | ||
| 56 | #end | ||
| 57 | </ul> | ||
| 58 | <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> | ||
| 59 | {{/html}} | ||
| 60 | {{/velocity}} |