Toggle navigation
Log-in
Home
Page Index
User Index
Application Index
Global
Wiki Index
Help
Macros
Wiki source code of
Macros
Last modified by eaminov on 2017/06/14 01:04
Manage
Copy
Actions
Export
Print preview
View Source
Viewers
Children
Content
Comments
Attachments (4)
History
Information
×
Export
Office Formats
Export as PDF
Other Formats
Select the pages to export:
select all
/
none
Export as HTML
Show line numbers
{{include reference="Help.Code.VelocityMacros" /}} {{velocity output="false"}} #if ($hasAdmin) #set ($section = 'XWiki.Extensions') #if (!$xwiki.exists($section)) ## Support for pre-9.2RC1 Administration Application #set ($section = 'XWiki.AddExtensions') #end #set ($browseMacrosURL = $xwiki.getURL('XWiki.XWikiPreferences', 'admin', "section=${section}&search=macro&repo=")) #else #set ($browseMacrosURL = 'http://extensions.xwiki.org/xwiki/bin/view/Extension/#%7Ct=extensions&p=1&l=30&s=doc.creationDate&d=desc&category=macro') #end #set ($actionCards = [{ 'title': 'Use Macros', 'description': 'Macros are reusable pieces of functionality that can be integrated inside pages.', '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.", 'thumbnail': 'Macro', 'actions': [{ 'label': 'Try it!', 'type': 'success', 'url': $xwiki.getURL('Sandbox.TestPage1', 'edit', 'editor=wysiwyg') }] }, { 'title': 'Browse Macros', 'description': 'Choose from community contributed macros and install them inside your wiki.', 'tip': "The <a href=""$xwiki.getURL('XWiki.WikiMacros')"">Macro Index</a> lists the macros that are already installed and ready to be used inside your pages.", 'thumbnail': 'EM', 'actions': [{ 'label': 'Browse', 'url': $browseMacrosURL }, { 'label': 'Learn more', 'url': 'http://platform.xwiki.org/xwiki/bin/view/DevGuide/WikiMacroTutorial' }] }]) #set ($exampleCards = [{ 'title': 'Box', 'description': 'Displays a message in a styled box.', 'documentation': 'http://extensions.xwiki.org/xwiki/bin/view/Extension/Box+Macro', 'examples': 'Help.Macros.Box.WebHome', 'thumbnail': 'Help.Macros.Box.WebHome@box.png' }, { 'title': 'Table of Contents', 'description': 'Generates a table of contents for the page headings.', 'documentation': 'http://extensions.xwiki.org/xwiki/bin/view/Extension/TOC+Macro', 'examples': 'Help.Macros.ToC.WebHome', 'thumbnail': 'Help.Macros.ToC.WebHome@toc.png' }, { 'title': 'Gallery', 'description': 'Displays a list of images in a slide-show gallery.', 'documentation': 'http://extensions.xwiki.org/xwiki/bin/view/Extension/Gallery+Macro', 'examples': 'Help.Macros.Gallery.WebHome', 'thumbnail': 'Help.Macros.Gallery.WebHome@gallery.png' }, { 'title': 'Chart', 'description': 'Generates graphical charts from data sources.', 'documentation': 'http://extensions.xwiki.org/xwiki/bin/view/Extension/Chart+Macro', 'examples': 'Help.Macros.Chart.WebHome', 'thumbnail': 'Help.Macros.Chart.WebHome@chart.png' }, { 'title': 'Page Tree', 'description': 'Displays the hierarchy of pages.', 'documentation': 'http://extensions.xwiki.org/xwiki/bin/view/Extension/Document+Tree+Macro', 'examples': 'Help.Macros.Tree.WebHome', 'thumbnail': 'Help.Macros.Tree.WebHome@tree.png' }, { 'title': 'Activity', 'description': 'Displays recent activities done on pages by the users.', 'documentation': 'http://extensions.xwiki.org/xwiki/bin/view/Extension/Activity+Macro', 'examples': 'Help.Macros.Activity.WebHome', 'thumbnail': 'Help.Macros.Activity.WebHome@activity.png' }]) {{/velocity}} {{velocity}} {{html clean="false"}} <div class="row"> #foreach ($card in $actionCards) ## See http://getbootstrap.com/css/#grid-responsive-resets . #if ($foreach.index > 0 && $foreach.index % 2 == 0) <div class="clearfix visible-sm-block visible-md-block visible-lg-block"></div> #end <div class="col-xs-12 col-sm-6"> #helpActionCard($card) </div> #end </div> <h3 id="HExamples">Examples</h3> <p>Need help or confused with some of our macros? Check out their documentation and find out more about their functionality.</p> <div class="row"> #foreach ($card in $exampleCards) ## See http://getbootstrap.com/css/#grid-responsive-resets . #if ($foreach.index > 0 && $foreach.index % 2 == 0) <div class="clearfix visible-sm-block "></div> #end #if ($foreach.index > 0 && $foreach.index % 3 == 0) <div class="clearfix visible-md-block visible-lg-block"></div> #end <div class="col-xs-12 col-sm-6 col-md-4"> #helpExampleCard($card) </div> #end </div> <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> {{/html}} {{/velocity}}
Applications
Blog
Dashboard
Help
More applications
Navigation