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: 2025-04-30 08:50:25

[[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

Close16 MBRequestSessionTimelineDatabase39Events18
$_GET
Array( version => 1 ) Array(
version => 1
)
$_POST
Array( ) Array(

)
$_COOKIE
Array( cookie => 43a25f71035b89b5, 81f30cf708470b974874c8a96a6bcdb2 => af63f7cb92e3f91b177865... Array(
cookie => 43a25f71035b89b5,
81f30cf708470b974874c8a96a6bcdb2 => af63f7cb92e3f91b177865668d46d549,
8512ae7d57b1396273f76fe6ed341a23 => fr-FR,
d482552ea4a74f85af0bb3d73890dabc => 5 E 45E43105E E 2444543 7406F5D 11B 37E B4A 3 05F41134B514059 4 951135F765817 3 B5C1243 B5612 F16 3 B 2 A1B585E5350 0 F5750 E57 1 7575D 9 155 E F5E 6 554 4 85051 F5C 5 4 01B 3165952 2164044 C 016 A17 25056 31A 756 65154 757 7 0 A55 35F 0 9 75251 F C 4 25352 C5550 E 751 D 144 B4358 6 A16164A515412 24A 256515C1A5554 156 2 352 6 151 1 A5E5F 15253 5 7 C53 C E 6 85D D E 15652 116 94A
)
$_SERVER
Array( REDIRECT_HTTPS => on, REDIRECT_SCRIPT_URL => /fr/wiki/Help:WikiMacros, REDIRECT_SCRI... Array(
REDIRECT_HTTPS => on,
REDIRECT_SCRIPT_URL => /fr/wiki/Help:WikiMacros,
REDIRECT_SCRIPT_URI => http://hsscommons.rs-dev.uvic.ca/fr/wiki/Help:WikiMacros,
REDIRECT_STATUS => 200,
HTTPS => on,
SCRIPT_URL => /fr/wiki/Help:WikiMacros,
SCRIPT_URI => http://hsscommons.rs-dev.uvic.ca/fr/wiki/Help:WikiMacros,
HTTP_HOST => hsscommons.rs-dev.uvic.ca,
HTTP_USER_AGENT => Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com),
HTTP_ACCEPT => */*,
HTTP_ACCEPT_ENCODING => gzip, br, zstd, deflate,
HTTP_COOKIE => cookie=43a25f71035b89b5; 81f30cf708470b974874c8a96a6bcdb2=af63f7cb92e3f91b177865668d46d549; 8512ae7d57b1396273f76fe6ed341a23=fr-FR; d482552ea4a74f85af0bb3d73890dabc=%205%20E%2045E43105E%20E%202444543%207406F5D%2011B%2037E%20B4A%203%2005F41134B514059%204%20951135F765817%203%20B5C1243%20B5612%20F16%203%20B%202%20A1B585E5350%200%20F5750%20E57%201%207575D%209%20155%20E%20F5E%206%20554%204%2085051%20F5C%205%204%2001B%203165952%202164044%20C%20016%20A17%2025056%2031A%20756%2065154%20757%207%200%20A55%2035F%200%209%2075251%20F%20C%204%2025352%20C5550%20E%20751%20D%20144%20B4358%206%20A16164A515412%2024A%20256515C1A5554%20156%202%20352%206%20151%201%20A5E5F%2015253%205%207%20C53%20C%20E%206%2085D%20D%20E%2015652%20116%2094A,
HTTP_X_FORWARDED_FOR => 3.16.160.142,
HTTP_X_FORWARDED_HOST => hsscommons.rs-dev.uvic.ca,
HTTP_X_FORWARDED_PORT => 443,
HTTP_X_FORWARDED_PROTO => https,
HTTP_X_FORWARDED_SERVER => traefik-b8d8564f8-2whv9,
HTTP_X_REAL_IP => 3.16.160.142,
PATH => /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin,
SERVER_SIGNATURE => ,
SERVER_SOFTWARE => Apache/2.4.62 (Debian),
SERVER_NAME => hsscommons.rs-dev.uvic.ca,
SERVER_ADDR => 10.233.98.122,
SERVER_PORT => 80,
REMOTE_ADDR => 10.233.94.22,
DOCUMENT_ROOT => /var/www/html,
REQUEST_SCHEME => http,
CONTEXT_PREFIX => ,
CONTEXT_DOCUMENT_ROOT => /var/www/html,
SERVER_ADMIN => webmaster@localhost,
SCRIPT_FILENAME => /var/www/html/index.php,
REMOTE_PORT => 37436,
REDIRECT_URL => /fr/wiki/Help:WikiMacros,
REDIRECT_QUERY_STRING => version=1,
GATEWAY_INTERFACE => CGI/1.1,
SERVER_PROTOCOL => HTTP/1.1,
REQUEST_METHOD => GET,
QUERY_STRING => version=1,
REQUEST_URI => /fr/wiki/Help:WikiMacros?version=1,
SCRIPT_NAME => /index.php,
PHP_SELF => /index.php,
REQUEST_TIME_FLOAT => 1746003024.9054,
REQUEST_TIME => 1746003024
)
session.client.forwarded 3.16.160.142
separator .
orderBy id
orderDir asc
always
0 registerDate
1 registerIP
2 access
renew
tracker.sid af63f7cb92e3f91b177865668d46d549
tracker.ssid af63f7cb92e3f91b177865668d46d549
tracker.rsid af63f7cb92e3f91b177865668d46d549
  • site 0.079 seconds (+0.079); 16.00 MB (+16.000) - afterInitialise
  • site 0.104 seconds (+0.025); 16.00 MB (0.000) - afterRoute
  • site 0.179 seconds (+0.075); 16.00 MB (0.000) - afterDispatch
  • site 0.196 seconds (+0.017); 16.00 MB (0.000) - beforeRenderModule mod_languages (Language Switcher)
  • site 0.223 seconds (+0.026); 16.00 MB (0.000) - afterRenderModule mod_languages (Language Switcher)
  • site 0.224 seconds (+0.001); 16.00 MB (0.000) - beforeRenderModule mod_googleanalytics (Google Analytics)
  • site 0.224 seconds (+0.001); 16.00 MB (0.000) - afterRenderModule mod_googleanalytics (Google Analytics)
  • site 0.224 seconds (+0.000); 16.00 MB (0.000) - beforeRenderModule mod_custom (Hub Footer (French))
  • site 0.225 seconds (+0.001); 16.00 MB (0.000) - afterRenderModule mod_custom (Hub Footer (French))
  • site 0.225 seconds (+0.000); 16.00 MB (0.000) - beforeRenderModule mod_wrapper (Wrapper)
  • site 0.225 seconds (+0.000); 16.00 MB (0.000) - afterRenderModule mod_wrapper (Wrapper)
  • site 0.225 seconds (+0.000); 16.00 MB (0.000) - beforeRenderModule mod_breadcrumbs (Breadcrumbs)
  • site 0.226 seconds (+0.001); 16.00 MB (0.000) - afterRenderModule mod_breadcrumbs (Breadcrumbs)
  • site 0.226 seconds (+0.000); 16.00 MB (0.000) - beforeRenderModule mod_collect (Collect)
  • site 0.227 seconds (+0.001); 16.00 MB (0.000) - afterRenderModule mod_collect (Collect)
  • site 0.227 seconds (+0.000); 16.00 MB (0.000) - beforeRenderModule mod_menu (Main Menu)
  • site 0.247 seconds (+0.020); 16.00 MB (0.000) - afterRenderModule mod_menu (Main Menu)
  • site 0.247 seconds (+0.000); 16.00 MB (0.000) - beforeRenderModule mod_languages (Language Switcher)
  • site 0.248 seconds (+0.001); 16.00 MB (0.000) - afterRenderModule mod_languages (Language Switcher)
  • site 0.248 seconds (+0.001); 16.00 MB (0.000) - onAfterRender
  • site 0.255 seconds (+0.007); 16.00 MB (0.000) - sessionStore
16 MB

39 Queries Logged: 0.14923405647278 seconds

  1. SELECT data
      FROM `jos_session`
      WHERE `session_id` = 'af63f7cb92e3f91b177865668d46d549'
  2. SELECT extension_id AS id,element AS "option",params,enabled
      FROM `jos_extensions`
      WHERE `type` = 'component'
      AND `element` = 'com_members'
  3. 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'
  4. SELECT *
      FROM `jos_viewlevels`
  5. SELECT folder AS type,element AS name,protected,params
      FROM `jos_extensions`
      WHERE `enabled` >= '1'
      AND `type` = 'plugin'
      AND `state` >= ''
      AND `access` IN ('1','1','4')
      ORDER BY `ordering` ASC
  6. SELECT extension_id AS id,element AS "option",params,enabled
      FROM `jos_extensions`
      WHERE `type` = 'component'
      AND `element` = 'com_languages'
  7. SELECT *
      FROM `jos_languages`
      WHERE `published` = '1'
      ORDER BY `ordering` ASC
  8. SELECT language,id
      FROM `jos_menu`
      WHERE `home` = '1'
      AND `published` = '1'
      AND `client_id` = ''
  9. 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` > ''
      AND `m`.`client_id` = ''
      ORDER BY `m`.`lft` ASC
  10. SELECT extension_id AS id,element AS "option",params,enabled
      FROM `jos_extensions`
      WHERE `type` = 'component'
      AND `element` = 'com_wiki'
  11. 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` = ''
      AND `jos_extensions`.`enabled` = '1'
      AND `jos_extensions`.`type` = 'template'
      AND jos_extensions.`client_id` = `jos_template_styles`.`client_id`
      ORDER BY `home` DESC
  12. SELECT extension_id AS id,element AS "option",params,enabled
      FROM `jos_extensions`
      WHERE `type` = 'component'
      AND `element` = 'com_tags'
  13. SELECT COUNT(jos_wiki_pages.id) AS count
      FROM `jos_wiki_pages`
      WHERE `jos_wiki_pages`.`scope` = 'site'
  14. 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` = ''
  15. SELECT *
      FROM `jos_wiki_versions`
      WHERE `jos_wiki_versions`.`page_id` = '12'
      AND `jos_wiki_versions`.`version` = '1'
  16. SELECT element
      FROM `jos_extensions`
      WHERE folder='wiki'
      AND type='plugin'
      AND enabled=1
      AND element LIKE 'parser%'
      ORDER BY enabled DESC
      LIMIT 1
  17. SELECT id, title, alias
      FROM `jos_resources`
      WHERE id='100'
  18. SELECT raw_tag
      FROM `jos_tags`
      WHERE tag='heattransfer'
      LIMIT 1
  19. 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` = ''
  20. SELECT *
      FROM `jos_wiki_links`
      WHERE `jos_wiki_links`.`page_id` = '12'
  21. 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` = '12'
      AND `jos_tags`.`admin` NOT IN ('1')
      GROUP BY jos_tags_object.label,jos_tags.id
  22. SELECT extension_id AS id,element AS "option",params,enabled
      FROM `jos_extensions`
      WHERE `type` = 'component'
      AND `element` = 'com_search'
  23. SELECT extension_id AS id,element AS "option",params,enabled
      FROM `jos_extensions`
      WHERE `type` = 'component'
      AND `element` = 'com_users'
  24. SELECT extension_id AS id,element AS "option",params,enabled
      FROM `jos_extensions`
      WHERE `type` = 'component'
      AND `element` = 'com_register'
  25. 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` <= '2025-04-30 08:50:25' )
      AND (`m`.`publish_down` IS NULL OR `m`.`publish_down` >= '2025-04-30 08:50:25' )
      AND `m`.`access` IN ('1','1','4')
      AND `m`.`client_id` = ''
      AND (`mm`.`menuid` = '86' OR `mm`.`menuid` <= '' )
      AND `m`.`language` IN ('fr-FR','*')
      ORDER BY `m`.`position` ASC,`m`.`ordering` ASC
  26. SELECT extension_id AS id,element AS "option",params,enabled
      FROM `jos_extensions`
      WHERE `type` = 'component'
      AND `element` = 'com_menus'
  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. SELECT extension_id AS id,element AS "option",params,enabled
      FROM `jos_extensions`
      WHERE `type` = 'component'
      AND `element` = 'com_publications'
  30. SELECT extension_id AS id,element AS "option",params,enabled
      FROM `jos_extensions`
      WHERE `type` = 'component'
      AND `element` = 'com_collections'
  31. SELECT extension_id AS id,element AS "option",params,enabled
      FROM `jos_extensions`
      WHERE `type` = 'component'
      AND `element` = 'com_events'
  32. SELECT extension_id AS id,element AS "option",params,enabled
      FROM `jos_extensions`
      WHERE `type` = 'component'
      AND `element` = 'com_blog'
  33. SELECT extension_id AS id,element AS "option",params,enabled
      FROM `jos_extensions`
      WHERE `type` = 'component'
      AND `element` = 'com_groups'
  34. SELECT extension_id AS id,element AS "option",params,enabled
      FROM `jos_extensions`
      WHERE `type` = 'component'
      AND `element` = 'com_projects'
  35. SELECT extension_id AS id,element AS "option",params,enabled
      FROM `jos_extensions`
      WHERE `type` = 'component'
      AND `element` = 'com_forum'
  36. SELECT extension_id AS id,element AS "option",params,enabled
      FROM `jos_extensions`
      WHERE `type` = 'component'
      AND `element` = 'com_answers'
  37. SELECT extension_id AS id,element AS "option",params,enabled
      FROM `jos_extensions`
      WHERE `type` = 'component'
      AND `element` = 'com_support'
  38. SELECT extension_id AS id,element AS "option",params,enabled
      FROM `jos_extensions`
      WHERE `type` = 'component'
      AND `element` = 'com_kb'
  39. UPDATE `jos_session`
      SET `data` = '__default|a:10:{s:15:\"session.counter\";i:3;s:19:\"session.timer.start\";i:1746003024;s:18:\"session.timer.last\";i:1746003024;s:17:\"session.timer.now\";i:1746003024;s:24:\"session.client.forwarded\";s:12:\"3.16.160.142\";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\";O:17:\"Hubzero\\User\\User\":1:{s:5:\"guest\";b:1;}s:11:\"tracker.sid\";s:32:\"af63f7cb92e3f91b177865668d46d549\";s:12:\"tracker.ssid\";s:32:\"af63f7cb92e3f91b177865668d46d549\";s:12:\"tracker.rsid\";s:32:\"af63f7cb92e3f91b177865668d46d549\";}',`time` = '1746003025',`ip` = '10.233.94.22'
      WHERE `session_id` = 'af63f7cb92e3f91b177865668d46d549'
  • onAfterInitialise Method plgSystemLanguageFilter::onAfterInitialise /app/plugins/system/languagefilter/languagefilter.php:186
  • 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
  • onAfterInitialise Method plgSystemReferrerpolicy::onAfterInitialise /core/plugins/system/referrerpolicy/referrerpolicy.php:21
  • 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 /app/plugins/system/password/password.php:21
  • onAfterDispatch Method plgSystemMobile::onAfterDispatch /core/plugins/system/mobile/mobile.php:22
  • onAfterDispatch Method plgSystemLanguageFilter::onAfterDispatch /app/plugins/system/languagefilter/languagefilter.php:554
  • 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