Skip to main content
3.135.209.107

Help: Wiki Macros

A macro inserts dynamic HTML data in any context supporting Wiki Formatting.

Using Macros

Macro calls are enclosed in two square brackets.

Examples

[[Timestamp]]

Display: 2024-11-24 03:55:15

[[Resource(100)]]

Display: (Resource(100) failed)

[[Tag(heattransfer)]]

Display: (heattransfer not found)

To add a footnote to text you use the footnote macro. [[FootNote(Footnotes are automatically linked)]] You use the same macro but with no text to display the accumulated list of footnotes. For example:

[[FootNote]]

Display: To add a footnote to text you use the footnote macro. [1] You use the same macro but with no text to display the accumulated list of footnotes. For example:

  1. ^ Footnotes are automatically linked

Available Macros

[[BR]]
Insert a line break.
[[Span(content, attributes)]]
Wraps text or other elements inside a <span> tag.
[[Image(filename)]]
Embed an image in wiki-formatted text. The first argument is the filename of the image. The remaining arguments are optional and allow configuring the attributes and style of the rendered <img> element:{{{#!html

digits and unit are interpreted as the size (ex. 120, 25%) for the image right, left, top or bottom are interpreted as the alignment for the image nolink means without link to image source key=value style are interpreted as HTML attributes or CSS style indications for the image.Valid keys are: align, border, width, height, alt, title, longdesc, class, id and usemap }}}

[[File(content, attributes)]]
Works similar to the Image macro but, instead, generates a link to a file. The first argument is the filename.
[[Resource(id,alias)]]
This macro will insert a linked title to a resource. It can be passed wither an ID or alias.
[[Tool(id,alias)]]
This macro functions identically to the Resource macro mentioned above.
[[Contributor(id,username,name)]
This macro will generate a link to a contributor’s page with the contributor’s name as the link text. It accepts either the contributor’s ID, username, or name. NOTE: to use a name, it must be identical to their contributor page.
[[Tag(tag)]]
This macro will generate a link to a Tag.
[[TitleIndex(prefix)]]
Inserts an alphabetic list of all wiki pages into the output. Accepts a prefix string as parameter: if provided, only pages with names that start with the prefix are included in the resulting list. If this parameter is omitted, all pages are listed.
[[FootNote(footnote text)]]
Add a footnote, or explicitly display collected footnotes when no args (footnote text) are given.
[[RandomPage]]
Generates a link to a random page.
[[Anchor(anchorname)]]
Inserts an anchor into a page.

Created on , Last modified on

Debug Console

Close6 MBRequestSessionTimelineDatabase29Events15
$_GET
Array( ) Array(

)
$_POST
Array( ) Array(

)
$_COOKIE
Array( ) Array(

)
$_SERVER
Array( TEMP => /var/www/tmp, TMPDIR => /var/www/tmp, TMP => /var/www/tmp, PATH => /usr/lo... Array(
TEMP => /var/www/tmp,
TMPDIR => /var/www/tmp,
TMP => /var/www/tmp,
PATH => /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin,
USER => apache,
HOME => /var/www,
FCGI_ROLE => RESPONDER,
REDIRECT_HTTP_AUTHORIZATION => ,
REDIRECT_UNIQUE_ID => Z0Kjo0Q8-uY4FdjAmzHaLgAAAE4,
REDIRECT_SCRIPT_URL => /wiki/Help:WikiMacros,
REDIRECT_SCRIPT_URI => https://shunko.aws.hubzero.org/wiki/Help:WikiMacros,
REDIRECT_HTTPS => on,
REDIRECT_SSL_TLS_SNI => shunko.aws.hubzero.org,
REDIRECT_STATUS => 200,
HTTP_AUTHORIZATION => ,
UNIQUE_ID => Z0Kjo0Q8-uY4FdjAmzHaLgAAAE4,
SCRIPT_URL => /wiki/Help:WikiMacros,
SCRIPT_URI => https://shunko.aws.hubzero.org/wiki/Help:WikiMacros,
HTTPS => on,
SSL_TLS_SNI => shunko.aws.hubzero.org,
HTTP_ACCEPT => */*,
HTTP_USER_AGENT => Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com),
HTTP_ACCEPT_ENCODING => gzip, br, zstd, deflate,
HTTP_HOST => shunko.aws.hubzero.org,
SERVER_SIGNATURE => ,
SERVER_SOFTWARE => Apache,
SERVER_NAME => shunko.aws.hubzero.org,
SERVER_ADDR => 10.68.128.8,
SERVER_PORT => 443,
REMOTE_ADDR => 3.135.209.107,
DOCUMENT_ROOT => /var/www/shunko,
REQUEST_SCHEME => https,
CONTEXT_PREFIX => ,
CONTEXT_DOCUMENT_ROOT => /var/www/shunko,
SERVER_ADMIN => root@localhost,
SCRIPT_FILENAME => /var/www/shunko/index.php,
REMOTE_PORT => 1280,
REDIRECT_URL => /wiki/Help:WikiMacros,
GATEWAY_INTERFACE => CGI/1.1,
SERVER_PROTOCOL => HTTP/1.1,
REQUEST_METHOD => GET,
QUERY_STRING => ,
REQUEST_URI => /wiki/Help:WikiMacros,
SCRIPT_NAME => /index.php,
PHP_SELF => /index.php,
REQUEST_TIME_FLOAT => 1732420515.5091,
REQUEST_TIME => 1732420515
)
separator .
orderBy id
orderDir asc
1 registerIP
2 access
always
renew
tracker.sid ab67d6ce41a1a1f492b0375bcba14deb
tracker.ssid ab67d6ce41a1a1f492b0375bcba14deb
tracker.rsid ab67d6ce41a1a1f492b0375bcba14deb
  • site 0.045 seconds (+0.045); 3.50 MB (+3.500) - afterInitialise
  • site 0.076 seconds (+0.032); 4.25 MB (+0.750) - afterRoute
  • site 0.127 seconds (+0.051); 6.25 MB (+2.000) - afterDispatch
  • site 0.141 seconds (+0.014); 6.25 MB (0.000) - beforeRenderModule mod_search (Search)
  • site 0.145 seconds (+0.004); 6.25 MB (0.000) - afterRenderModule mod_search (Search)
  • site 0.145 seconds (+0.000); 6.25 MB (0.000) - beforeRenderModule mod_menu (Main Menu)
  • site 0.154 seconds (+0.009); 6.50 MB (+0.250) - afterRenderModule mod_menu (Main Menu)
  • site 0.156 seconds (+0.002); 6.50 MB (0.000) - onAfterRender
  • site 0.160 seconds (+0.004); 6.50 MB (0.000) - sessionStore
6 MB

29 Queries Logged: 0.020606517791748 seconds

  1. SELECT data
      FROM `jos_session`
      WHERE `session_id` = '3c255e97527a9f3cbc879b1663247e60'
  2. DELETE
      FROM `jos_session`
      WHERE `session_id` = '3c255e97527a9f3cbc879b1663247e60'
  3. SELECT data
      FROM `jos_session`
      WHERE `session_id` = 'ab67d6ce41a1a1f492b0375bcba14deb'
  4. SELECT extension_id AS id,element AS "option",params,enabled
      FROM `jos_extensions`
      WHERE `type` = 'component'
      AND `element` = 'com_languages'
  5. SELECT session_id
      FROM `jos_session`
      WHERE `session_id` = 'ab67d6ce41a1a1f492b0375bcba14deb'
      LIMIT 1
  6. INSERT INTO `jos_session` (`session_id`,`client_id`,`time`,`ip`)
      VALUES ('ab67d6ce41a1a1f492b0375bcba14deb','0','1732420515','3.135.209.107')
  7. SELECT extension_id AS id,element AS "option",params,enabled
      FROM `jos_extensions`
      WHERE `type` = 'component'
      AND `element` = 'com_members'
  8. SELECT b.id, b.title
      FROM `jos_usergroups` AS `a`
      LEFT JOIN jos_usergroups AS b
      ON b.lft <= a.lft
      AND b.rgt >= a.rgt
      WHERE `a`.`id` = '1'
  9. SELECT *
      FROM `jos_viewlevels`
  10. SELECT folder AS type,element AS name,protected,params
      FROM `jos_extensions`
      WHERE `enabled` >= '1'
      AND `type` = 'plugin'
      AND `state` >= '0'
      AND `access` IN ('1','1','4')
      ORDER BY `ordering` ASC
  11. SELECT m.id,m.menutype,m.title,m.alias,m.note,m.path AS route,m.link,m.type,m.level,m.language,m.browserNav,m.access,m.params,m.home,m.img,m.template_style_id,m.component_id,m.parent_id,e.element AS component
      FROM `jos_menu` AS `m`
      LEFT JOIN jos_extensions AS e
      ON e.extension_id = m.component_id
      WHERE `m`.`published` = '1'
      AND `m`.`parent_id` > '0'
      AND `m`.`client_id` = '0'
      ORDER BY `m`.`lft` ASC
  12. SELECT extension_id AS id,element AS "option",params,enabled
      FROM `jos_extensions`
      WHERE `type` = 'component'
      AND `element` = 'com_wiki'
  13. SELECT jos_template_styles.id,jos_template_styles.home,jos_template_styles.template,jos_template_styles.params,jos_extensions.protected
      FROM `jos_template_styles`
      INNER JOIN jos_extensions
      ON jos_extensions.element = jos_template_styles.template
      WHERE `jos_template_styles`.`client_id` = '0'
      AND `jos_extensions`.`enabled` = '1'
      AND `jos_extensions`.`type` = 'template'
      AND jos_extensions.`client_id` = `jos_template_styles`.`client_id`
      ORDER BY `home` DESC
  14. SELECT extension_id AS id,element AS "option",params,enabled
      FROM `jos_extensions`
      WHERE `type` = 'component'
      AND `element` = 'com_tags'
  15. SELECT COUNT(jos_wiki_pages.id) AS count
      FROM `jos_wiki_pages`
      WHERE `jos_wiki_pages`.`scope` = 'site'
  16. SELECT *
      FROM `jos_wiki_pages`
      WHERE `jos_wiki_pages`.`state` = '1'
      AND `jos_wiki_pages`.`pagename` = 'Help:WikiMacros'
      AND `jos_wiki_pages`.`scope` = 'site'
      AND `jos_wiki_pages`.`scope_id` = '0'
  17. SELECT *
      FROM `jos_wiki_versions`
      WHERE `jos_wiki_versions`.`id` = '13'
  18. SELECT element
      FROM `jos_extensions`
      WHERE folder='wiki'
      AND type='plugin'
      AND enabled=1
      AND element LIKE 'parser%'
      ORDER BY enabled DESC
      LIMIT 1
  19. SELECT id, title, alias
      FROM `jos_resources`
      WHERE id='100'
  20. SELECT raw_tag
      FROM `jos_tags`
      WHERE tag='heattransfer'
      LIMIT 1
  21. SELECT *
      FROM `jos_wiki_pages`
      WHERE `jos_wiki_pages`.`state` = '1'
      AND `jos_wiki_pages`.`pagename` = 'Help:WikiFormatting'
      AND `jos_wiki_pages`.`scope` = 'site'
      AND `jos_wiki_pages`.`scope_id` = '0'
  22. SELECT *
      FROM `jos_wiki_links`
      WHERE `jos_wiki_links`.`page_id` = '13'
  23. SELECT jos_tags_object.label,jos_tags.*
      FROM `jos_tags`
      INNER JOIN jos_tags_object
      ON jos_tags_object.tagid = jos_tags.id
      WHERE `jos_tags_object`.`tbl` = 'wiki'
      AND `jos_tags_object`.`objectid` = '13'
      AND `jos_tags`.`admin` NOT IN ('1')
      GROUP BY jos_tags_object.label,jos_tags.id
  24. SELECT m.id,m.title,m.module,m.position,m.content,m.showtitle,m.params,mm.menuid,e.protected
      FROM `jos_modules` AS `m`
      LEFT JOIN jos_modules_menu AS mm
      ON mm.moduleid = m.id
      LEFT JOIN jos_extensions AS e
      ON e.element = m.module
      AND e.client_id = m.client_id
      WHERE `m`.`published` = '1'
      AND `e`.`enabled` = '1'
      AND (`m`.`publish_up` IS NULL OR `m`.`publish_up` <= '2024-11-24 03:55:15' )
      AND (`m`.`publish_down` IS NULL OR `m`.`publish_down` >= '2024-11-24 03:55:15' )
      AND `m`.`access` IN ('1','1','4')
      AND `m`.`client_id` = '0'
      AND (`mm`.`menuid` = '86' OR `mm`.`menuid` <= '0' )
      ORDER BY `m`.`position` ASC,`m`.`ordering` ASC
  25. SELECT extension_id AS id,element AS "option",params,enabled
      FROM `jos_extensions`
      WHERE `type` = 'component'
      AND `element` = 'com_users'
  26. SELECT extension_id AS id,element AS "option",params,enabled
      FROM `jos_extensions`
      WHERE `type` = 'component'
      AND `element` = 'com_search'
  27. SELECT extension_id AS id,element AS "option",params,enabled
      FROM `jos_extensions`
      WHERE `type` = 'component'
      AND `element` = 'com_content'
  28. SELECT extension_id AS id,element AS "option",params,enabled
      FROM `jos_extensions`
      WHERE `type` = 'component'
      AND `element` = 'com_categories'
  29. UPDATE `jos_session`
      SET `data` = '__default|a:9:{s:15:\"session.counter\";i:1;s:19:\"session.timer.start\";i:1732420515;s:18:\"session.timer.last\";i:1732420515;s:17:\"session.timer.now\";i:1732420515;s:8:\"registry\";O:23:\"Hubzero\\Config\\Registry\":2:{s:7:\"\0*\0data\";O:8:\"stdClass\":1:{s:1:\"0\";s:7:\"session\";}s:9:\"separator\";s:1:\".\";}s:4:\"user\";C:17:\"Hubzero\\User\\User\":22:{a:1:{s:5:\"guest\";b:1;}}s:11:\"tracker.sid\";s:32:\"ab67d6ce41a1a1f492b0375bcba14deb\";s:12:\"tracker.ssid\";s:32:\"ab67d6ce41a1a1f492b0375bcba14deb\";s:12:\"tracker.rsid\";s:32:\"ab67d6ce41a1a1f492b0375bcba14deb\";}',`time` = '1732420515',`ip` = '3.135.209.107'
      WHERE `session_id` = 'ab67d6ce41a1a1f492b0375bcba14deb'
  • onAfterInitialise Method plgSystemP3p::onAfterInitialise /core/plugins/system/p3p/p3p.php:21
  • onAfterInitialise Method plgSystemRemember::onAfterInitialise /core/plugins/system/remember/remember.php:20
  • onAfterInitialise Method plgSystemHubzero::onAfterInitialise /core/plugins/system/hubzero/hubzero.php:21
  • onAfterInitialise Method plgSystemXFeed::onAfterInitialise /core/plugins/system/xfeed/xfeed.php:21
  • onAfterInitialise Method plgSystemSupergroup::onAfterInitialise /core/plugins/system/supergroup/supergroup.php:113
  • onAfterRoute Method plgSystemJquery::onAfterRoute /core/plugins/system/jquery/jquery.php:21
  • onAfterRoute Method plgSystemSpamjail::onAfterRoute /core/plugins/system/spamjail/spamjail.php:21
  • onAfterRoute Method plgSystemIncomplete::onAfterRoute /core/plugins/system/incomplete/incomplete.php:21
  • onAfterRoute Method plgSystemUnconfirmed::onAfterRoute /core/plugins/system/unconfirmed/unconfirmed.php:21
  • onAfterRoute Method plgSystemUnapproved::onAfterRoute /core/plugins/system/unapproved/unapproved.php:21
  • onAfterRoute Method plgSystemPassword::onAfterRoute /core/plugins/system/password/password.php:21
  • onAfterDispatch Method plgSystemMobile::onAfterDispatch /core/plugins/system/mobile/mobile.php:22
  • onAfterDispatch Method plgSystemDebug::onAfterDispatch /core/plugins/system/debug/debug.php:60
  • onAfterDispatch Method PlgSystemHighlight::onAfterDispatch /core/plugins/system/highlight/highlight.php:25
  • onAfterRender Method plgSystemSef::onAfterRender /core/plugins/system/sef/sef.php:21