Help: Processors

Processors are WikiMacros designed to provide alternative markup formats for the Wiki engine. Processors can be thought of as macro functions to process user-edited text.

Wiki processors can be used in any Wiki text throughout the wiki, for various different purposes, like:

  • syntax highlighting or for rendering text verbatim,
  • rendering Wiki markup inside a context, like inside <div> blocks or <span> or within <td> or <th> table cells,
  • using an alternative markup syntax, like raw HTML

Using Processors

To use a processor on a block of text, first delimit the lines using a Wiki code block:

{{{
The lines
that should be processed...
}}}

On the line just below the the curly braces add #! followed by the processor name

{{{
#!processorname
The lines
that should be processed...
}}}

This is the “shebang” notation, familiar to most UNIX users.

Besides their content, some Wiki processors can also accept parameters, which are then given as key=value pairs after the processor name, on the same line. If value has to contain space, as it’s often the case for the style parameter, a quoted string can be used (key=“value with space”).

As some processors are meant to process Wiki markup, it’s quite possible to nest processor blocks. You may want to indent the content of nested blocks for increased clarity, this extra indentation will be ignored when processing the content.

Available Processors

#!default Present the text verbatim in a preformatted text block. This is the same as specifying no processor name (and no #!)
#!comment Do not process the text in this section (i.e. contents exist only in the plain text – not in the rendered page).
Admonitions
#!wiki type Admonitions are used to make some text stand out or to point out something which doesn’t fit in the normal flow of the text. For more details see the Admonitions help page.

type can be caution, warning, important, note, or tip.
HTML related
#!html Insert custom HTML in a wiki page. For more details see the Wiki HTML help page.
#!htmlcomment Insert an HTML comment in a wiki page.
Code Highlighting Support
#!c
#!cpp (C++)
#!python
#!perl
#!ruby
#!php
#!asp
#!java
#!js (Javascript)
#!sql
#!xml
#!sh (Bourne/Bash shell)
The wiki includes processors to provide inline syntax highlighting for source code in various languages.

Example:

{{{
#!php
$yes = true;
if ($yes)
{
    echo 'Yes!';
}
}}}

Displays:

$yes = true;
if ($yes)
{
    echo 'Yes!';
}

See also: Wiki Formatting, Wiki HTML, Admonitions

Created on , Last modified on

Debug Console

Close20 MBRequestSessionTimelineDatabase35Events15
$_GET
Array( ) Array(

)
$_POST
Array( ) Array(

)
$_COOKIE
Array( ) Array(

)
$_SERVER
Array( NO_PROXY => .s2.internal, https_proxy => http://10.8.63.5:3128, http_proxy => http:/... Array(
NO_PROXY => .s2.internal,
https_proxy => http://10.8.63.5:3128,
http_proxy => http://10.8.63.5:3128,
LD_LIBRARY_PATH => /usr/local/lib:/usr/lib64/:/opt/rh/rh-python36/root/usr/lib64/:/opt/remi/php56/root/usr/lib64,
PATH => /sbin:/usr/sbin:/bin:/usr/bin,
USER => apache,
HOME => /var/www,
FCGI_ROLE => RESPONDER,
REDIRECT_HTTP_AUTHORIZATION => ,
REDIRECT_SCRIPT_URL => /wiki/Help:Processors,
REDIRECT_SCRIPT_URI => https://datacenterhub.org/wiki/Help:Processors,
REDIRECT_HTTPS => on,
REDIRECT_SSL_TLS_SNI => datacenterhub.org,
REDIRECT_STATUS => 200,
HTTP_AUTHORIZATION => ,
SCRIPT_URL => /wiki/Help:Processors,
SCRIPT_URI => https://datacenterhub.org/wiki/Help:Processors,
HTTPS => on,
SSL_TLS_SNI => datacenterhub.org,
HTTP_USER_AGENT => CCBot/2.0 (https://commoncrawl.org/faq/),
HTTP_ACCEPT => text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8,
HTTP_ACCEPT_LANGUAGE => en-US,en;q=0.5,
HTTP_IF_MODIFIED_SINCE => Sat, 25 Jan 2020 20:19:11 GMT,
HTTP_ACCEPT_ENCODING => br,gzip,
HTTP_HOST => datacenterhub.org,
HTTP_CONNECTION => Keep-Alive,
SERVER_SIGNATURE => ,
SERVER_SOFTWARE => Apache,
SERVER_NAME => datacenterhub.org,
SERVER_ADDR => 10.111.11.100,
SERVER_PORT => 443,
REMOTE_ADDR => 3.228.11.9,
DOCUMENT_ROOT => /var/www/datacenterhub,
SERVER_ADMIN => root@localhost,
SCRIPT_FILENAME => /var/www/datacenterhub/index.php,
REMOTE_PORT => 36890,
REDIRECT_URL => /wiki/Help:Processors,
GATEWAY_INTERFACE => CGI/1.1,
SERVER_PROTOCOL => HTTP/1.1,
REQUEST_METHOD => GET,
QUERY_STRING => ,
REQUEST_URI => /wiki/Help:Processors,
SCRIPT_NAME => /index.php,
PHP_SELF => /index.php,
REQUEST_TIME_FLOAT => 1596951287.5466,
REQUEST_TIME => 1596951287,
argv => Array(

)
,
argc => 0
)
separator .
orderBy id
orderDir asc
1 registerIP
2 access
always
renew
tracker.sid e1ac9c0ab1ff89e087f4ba4b21bdeddd
tracker.ssid e1ac9c0ab1ff89e087f4ba4b21bdeddd
tracker.rsid e1ac9c0ab1ff89e087f4ba4b21bdeddd
  • site 0.046 seconds (+0.046); 12.25 MB (+12.250) - afterInitialise
  • site 0.066 seconds (+0.020); 13.50 MB (+1.250) - afterRoute
  • site 0.154 seconds (+0.088); 18.75 MB (+5.250) - afterDispatch
  • site 0.163 seconds (+0.008); 18.75 MB (0.000) - beforeRenderModule mod_custom (Footer: info and navigation)
  • site 0.164 seconds (+0.002); 18.75 MB (0.000) - afterRenderModule mod_custom (Footer: info and navigation)
  • site 0.165 seconds (+0.000); 18.75 MB (0.000) - beforeRenderModule mod_menu (Main Menu)
  • site 0.182 seconds (+0.018); 19.25 MB (+0.500) - afterRenderModule mod_menu (Main Menu)
  • site 0.186 seconds (+0.004); 19.25 MB (0.000) - onAfterRender
  • site 0.189 seconds (+0.002); 19.50 MB (+0.250) - sessionStore
20 MB

35 Queries Logged: 0.0083446502685547 seconds

  1. SELECT data
      FROM `jos_session`
      WHERE `session_id` = '524733558e0665fd2cb5986b33fd7daa'
  2. DELETE
      FROM `jos_session`
      WHERE `session_id` = '524733558e0665fd2cb5986b33fd7daa'
  3. SELECT data
      FROM `jos_session`
      WHERE `session_id` = 'e1ac9c0ab1ff89e087f4ba4b21bdeddd'
  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` = 'e1ac9c0ab1ff89e087f4ba4b21bdeddd'
      LIMIT 1
  6. INSERT INTO `jos_session` (`session_id`,`client_id`,`time`,`ip`)
      VALUES ('e1ac9c0ab1ff89e087f4ba4b21bdeddd','0','1596951287','3.228.11.9')
  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
      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:Processors'
      AND `jos_wiki_pages`.`scope` = 'site'
      AND `jos_wiki_pages`.`scope_id` = '0'
  17. SELECT *
      FROM `jos_wiki_versions`
      WHERE `jos_wiki_versions`.`id` = '6'
  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 *
      FROM `jos_wiki_pages`
      WHERE `jos_wiki_pages`.`state` = '1'
      AND `jos_wiki_pages`.`pagename` = 'Help:Admonitions'
      AND `jos_wiki_pages`.`scope` = 'site'
      AND `jos_wiki_pages`.`scope_id` = '0'
  20. SELECT *
      FROM `jos_wiki_pages`
      WHERE `jos_wiki_pages`.`state` = '1'
      AND `jos_wiki_pages`.`pagename` = 'Help:WikiHtml'
      AND `jos_wiki_pages`.`scope` = 'site'
      AND `jos_wiki_pages`.`scope_id` = '0'
  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_pages`
      WHERE `jos_wiki_pages`.`state` = '1'
      AND `jos_wiki_pages`.`pagename` = 'WikiMacros'
      AND `jos_wiki_pages`.`scope` = 'site'
      AND `jos_wiki_pages`.`scope_id` = '0'
  23. SELECT *
      FROM `jos_wiki_links`
      WHERE `jos_wiki_links`.`page_id` = '6'
  24. 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` = '6'
      AND `jos_tags`.`admin` NOT IN ('1')
      GROUP BY jos_tags_object.label,jos_tags.id
  25. SELECT extension_id AS id,element AS "option",params,enabled
      FROM `jos_extensions`
      WHERE `type` = 'component'
      AND `element` = 'com_users'
  26. 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` <= '2020-08-09 05:34:47' )
      AND (`m`.`publish_down` IS NULL OR `m`.`publish_down` >= '2020-08-09 05:34:47' )
      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
  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_resources'
  30. SELECT extension_id AS id,element AS "option",params,enabled
      FROM `jos_extensions`
      WHERE `type` = 'component'
      AND `element` = 'com_usage'
  31. SELECT extension_id AS id,element AS "option",params,enabled
      FROM `jos_extensions`
      WHERE `type` = 'component'
      AND `element` = 'com_groups'
  32. SELECT extension_id AS id,element AS "option",params,enabled
      FROM `jos_extensions`
      WHERE `type` = 'component'
      AND `element` = 'com_feedback'
  33. SELECT extension_id AS id,element AS "option",params,enabled
      FROM `jos_extensions`
      WHERE `type` = 'component'
      AND `element` = 'com_support'
  34. SELECT extension_id AS id,element AS "option",params,enabled
      FROM `jos_extensions`
      WHERE `type` = 'component'
      AND `element` = 'com_wishlist'
  35. UPDATE `jos_session`
      SET `data` = '__default|a:9:{s:15:\"session.counter\";i:1;s:19:\"session.timer.start\";i:1596951287;s:18:\"session.timer.last\";i:1596951287;s:17:\"session.timer.now\";i:1596951287;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:\"e1ac9c0ab1ff89e087f4ba4b21bdeddd\";s:12:\"tracker.ssid\";s:32:\"e1ac9c0ab1ff89e087f4ba4b21bdeddd\";s:12:\"tracker.rsid\";s:32:\"e1ac9c0ab1ff89e087f4ba4b21bdeddd\";}',`time` = '1596951287',`ip` = '3.228.11.9'
      WHERE `session_id` = 'e1ac9c0ab1ff89e087f4ba4b21bdeddd'

18 Query Types Logged, Sorted by Occurrences.

SELECT Tables:
  1. 13 × SELECT extension_id AS id,element AS "option",params,enabled
      FROM `jos_extensions`
  2. 5 × SELECT *
      FROM `jos_wiki_pages`
  3. 2 × SELECT data
      FROM `jos_session`
  4. 1 × SELECT *
      FROM `jos_wiki_versions`
  5. 1 × SELECT element
      FROM `jos_extensions`
  6. 1 × SELECT jos_tags_object.label,jos_tags.*
      FROM `jos_tags`
      INNER JOIN jos_tags_object
      ON jos_tags_object.tagid = jos_tags.id
  7. 1 × 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
  8. 1 × SELECT *
      FROM `jos_wiki_links`
  9. 1 × 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
  10. 1 × SELECT b.id
      FROM `jos_usergroups` AS `a`
      LEFT JOIN jos_usergroups AS b
      ON b.lft <= a.lft
      AND b.rgt >= a.rgt
  11. 1 × SELECT session_id
      FROM `jos_session`
  12. 1 × SELECT *
      FROM `jos_viewlevels
  13. 1 × SELECT folder AS type,element AS name,protected,params
      FROM `jos_extensions`
  14. 1 × 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
  15. 1 × SELECT COUNT(jos_wiki_pages.id) AS count
      FROM `jos_wiki_pages`
OTHER Tables:
  1. 1 × UPDATE `jos_session`
      SET `data` = '__default|a:9:{s:15:\"session.counter\";i:1;s:19:\"session.timer.start\";i:1596951287;s:18:\"session.timer.last\";i:1596951287;s:17:\"session.timer.now\";i:1596951287;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:\"e1ac9c0ab1ff89e087f4ba4b21bdeddd\";s:12:\"tracker.ssid\";s:32:\"e1ac9c0ab1ff89e087f4ba4b21bdeddd\";s:12:\"tracker.rsid\";s:32:\"e1ac9c0ab1ff89e087f4ba4b21bdeddd\";}',`time` = '1596951287',`ip` = '3.228.11.9'
  2. 1 × INSERT INTO `jos_session` (`session_id`,`client_id`,`time`,`ip`)
      VALUES ('e1ac9c0ab1ff89e087f4ba4b21bdeddd','0','1596951287','3.228.11.9'
  3. 1 × DELETE
      FROM `jos_session`
  • 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 plgSystemPassword::onAfterRoute /core/plugins/system/password/password.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
  • 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