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

Creado en , Última modificación

Debug Console

Close14 MBRequestSessionTimelineDatabase40Events18
$_GET
Array( version => 1 ) Array(
version => 1
)
$_POST
Array( ) Array(

)
$_COOKIE
Array( cookie => 43a25f71035b89b5, 81f30cf708470b974874c8a96a6bcdb2 => 512a5601fd7511db095387... Array(
cookie => 43a25f71035b89b5,
81f30cf708470b974874c8a96a6bcdb2 => 512a5601fd7511db095387364e851d54,
8512ae7d57b1396273f76fe6ed341a23 => en-GB,
d482552ea4a74f85af0bb3d73890dabc => 5 E 45E43105E E 2444543 7406F5D 11B 37E B4A 3 05F41134B514059 4 951135F765817 3 B5C1243 B5612 F16 3 B 2 A1B C 957 253 E 4 351 153 1 0555C 154 0 D55 8 751 4 4515D C 954 5 D1B 3165952 2164044 C 016 A17 25056 31A53 1 2 3 7 6 4545F5C 7 5 8 85C 7535F D 7 A 05652 0545C D52 0 C C44 B4358 6 A16164A515412 24A 256515C1A 1 3 5 451 2 1555E 753 C 957545252 B 5 75D E B 6 45C 1 D54 753 C16 94A
)
$_SERVER
Array( REDIRECT_HTTPS => on, REDIRECT_SCRIPT_URL => /es/wiki/Help:Processors, REDIRECT_SCRI... Array(
REDIRECT_HTTPS => on,
REDIRECT_SCRIPT_URL => /es/wiki/Help:Processors,
REDIRECT_SCRIPT_URI => http://hsscommons.rs-dev.uvic.ca/es/wiki/Help:Processors,
REDIRECT_STATUS => 200,
HTTPS => on,
SCRIPT_URL => /es/wiki/Help:Processors,
SCRIPT_URI => http://hsscommons.rs-dev.uvic.ca/es/wiki/Help:Processors,
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=512a5601fd7511db095387364e851d54; 8512ae7d57b1396273f76fe6ed341a23=en-GB; d482552ea4a74f85af0bb3d73890dabc=%205%20E%2045E43105E%20E%202444543%207406F5D%2011B%2037E%20B4A%203%2005F41134B514059%204%20951135F765817%203%20B5C1243%20B5612%20F16%203%20B%202%20A1B%20C%20957%20253%20E%204%20351%20153%201%200555C%20154%200%20D55%208%20751%204%204515D%20C%20954%205%20D1B%203165952%202164044%20C%20016%20A17%2025056%2031A53%201%202%203%207%206%204545F5C%207%205%208%2085C%207535F%20D%207%20A%2005652%200545C%20D52%200%20C%20C44%20B4358%206%20A16164A515412%2024A%20256515C1A%201%203%205%20451%202%201555E%20753%20C%20957545252%20B%205%2075D%20E%20B%206%2045C%201%20D54%20753%20C16%2094A,
HTTP_X_FORWARDED_FOR => 3.21.106.239,
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.21.106.239,
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 => 54774,
REDIRECT_URL => /es/wiki/Help:Processors,
REDIRECT_QUERY_STRING => version=1,
GATEWAY_INTERFACE => CGI/1.1,
SERVER_PROTOCOL => HTTP/1.1,
REQUEST_METHOD => GET,
QUERY_STRING => version=1,
REQUEST_URI => /es/wiki/Help:Processors?version=1,
SCRIPT_NAME => /index.php,
PHP_SELF => /index.php,
REQUEST_TIME_FLOAT => 1745170217.8566,
REQUEST_TIME => 1745170217
)
session.client.forwarded 3.21.106.239
separator .
orderBy id
orderDir asc
always
0 registerDate
1 registerIP
2 access
renew
tracker.sid 512a5601fd7511db095387364e851d54
tracker.ssid 512a5601fd7511db095387364e851d54
tracker.rsid 512a5601fd7511db095387364e851d54
session.token e56021cf08127fe9a0687ae697d0fdbd
  • site 0.085 seconds (+0.085); 10.00 MB (+10.000) - afterInitialise
  • site 0.116 seconds (+0.032); 10.00 MB (0.000) - afterRoute
  • site 0.225 seconds (+0.109); 12.00 MB (+2.000) - afterDispatch
  • site 0.240 seconds (+0.015); 12.00 MB (0.000) - beforeRenderModule mod_languages (Language Switcher)
  • site 0.247 seconds (+0.008); 12.00 MB (0.000) - afterRenderModule mod_languages (Language Switcher)
  • site 0.248 seconds (+0.001); 12.00 MB (0.000) - beforeRenderModule mod_custom (Hub Footer (Spanish))
  • site 0.249 seconds (+0.000); 12.00 MB (0.000) - afterRenderModule mod_custom (Hub Footer (Spanish))
  • site 0.249 seconds (+0.000); 12.00 MB (0.000) - beforeRenderModule mod_googleanalytics (Google Analytics)
  • site 0.249 seconds (+0.000); 12.00 MB (0.000) - afterRenderModule mod_googleanalytics (Google Analytics)
  • site 0.249 seconds (+0.000); 12.00 MB (0.000) - beforeRenderModule mod_wrapper (Wrapper)
  • site 0.249 seconds (+0.000); 12.00 MB (0.000) - afterRenderModule mod_wrapper (Wrapper)
  • site 0.249 seconds (+0.000); 12.00 MB (0.000) - beforeRenderModule mod_breadcrumbs (Breadcrumbs)
  • site 0.250 seconds (+0.001); 12.00 MB (0.000) - afterRenderModule mod_breadcrumbs (Breadcrumbs)
  • site 0.250 seconds (+0.000); 12.00 MB (0.000) - beforeRenderModule mod_collect (Collect)
  • site 0.250 seconds (+0.001); 12.00 MB (0.000) - afterRenderModule mod_collect (Collect)
  • site 0.250 seconds (+0.000); 12.00 MB (0.000) - beforeRenderModule mod_menu (Main Menu)
  • site 0.275 seconds (+0.025); 14.00 MB (+2.000) - afterRenderModule mod_menu (Main Menu)
  • site 0.275 seconds (+0.000); 14.00 MB (0.000) - beforeRenderModule mod_languages (Language Switcher)
  • site 0.276 seconds (+0.001); 14.00 MB (0.000) - afterRenderModule mod_languages (Language Switcher)
  • site 0.277 seconds (+0.001); 14.00 MB (0.000) - onAfterRender
  • site 0.280 seconds (+0.003); 14.00 MB (0.000) - sessionStore
14 MB

40 Queries Logged: 0.14667272567749 seconds

  1. SELECT data
      FROM `jos_session`
      WHERE `session_id` = '512a5601fd7511db095387364e851d54'
  2. SELECT extension_id AS id,element AS "option",params,enabled
      FROM `jos_extensions`
      WHERE `type` = 'component'
      AND `element` = 'com_languages'
  3. SELECT extension_id AS id,element AS "option",params,enabled
      FROM `jos_extensions`
      WHERE `type` = 'component'
      AND `element` = 'com_members'
  4. 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'
  5. SELECT *
      FROM `jos_viewlevels`
  6. 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
  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:Processors'
      AND `jos_wiki_pages`.`scope` = 'site'
      AND `jos_wiki_pages`.`scope_id` = ''
  15. SELECT *
      FROM `jos_wiki_versions`
      WHERE `jos_wiki_versions`.`page_id` = '13'
      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 *
      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` = ''
  18. 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` = ''
  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_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` = ''
  21. SELECT *
      FROM `jos_wiki_links`
      WHERE `jos_wiki_links`.`page_id` = '13'
  22. 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
  23. SELECT extension_id AS id,element AS "option",params,enabled
      FROM `jos_extensions`
      WHERE `type` = 'component'
      AND `element` = 'com_search'
  24. SELECT extension_id AS id,element AS "option",params,enabled
      FROM `jos_extensions`
      WHERE `type` = 'component'
      AND `element` = 'com_users'
  25. SELECT extension_id AS id,element AS "option",params,enabled
      FROM `jos_extensions`
      WHERE `type` = 'component'
      AND `element` = 'com_register'
  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` <= '2025-04-20 17:30:18' )
      AND (`m`.`publish_down` IS NULL OR `m`.`publish_down` >= '2025-04-20 17:30:18' )
      AND `m`.`access` IN ('1','1','4')
      AND `m`.`client_id` = ''
      AND (`mm`.`menuid` = '86' OR `mm`.`menuid` <= '' )
      AND `m`.`language` IN ('es','*')
      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_menus'
  28. SELECT extension_id AS id,element AS "option",params,enabled
      FROM `jos_extensions`
      WHERE `type` = 'component'
      AND `element` = 'com_content'
  29. SELECT extension_id AS id,element AS "option",params,enabled
      FROM `jos_extensions`
      WHERE `type` = 'component'
      AND `element` = 'com_categories'
  30. SELECT extension_id AS id,element AS "option",params,enabled
      FROM `jos_extensions`
      WHERE `type` = 'component'
      AND `element` = 'com_publications'
  31. SELECT extension_id AS id,element AS "option",params,enabled
      FROM `jos_extensions`
      WHERE `type` = 'component'
      AND `element` = 'com_collections'
  32. SELECT extension_id AS id,element AS "option",params,enabled
      FROM `jos_extensions`
      WHERE `type` = 'component'
      AND `element` = 'com_events'
  33. SELECT extension_id AS id,element AS "option",params,enabled
      FROM `jos_extensions`
      WHERE `type` = 'component'
      AND `element` = 'com_blog'
  34. SELECT extension_id AS id,element AS "option",params,enabled
      FROM `jos_extensions`
      WHERE `type` = 'component'
      AND `element` = 'com_groups'
  35. SELECT extension_id AS id,element AS "option",params,enabled
      FROM `jos_extensions`
      WHERE `type` = 'component'
      AND `element` = 'com_projects'
  36. SELECT extension_id AS id,element AS "option",params,enabled
      FROM `jos_extensions`
      WHERE `type` = 'component'
      AND `element` = 'com_forum'
  37. SELECT extension_id AS id,element AS "option",params,enabled
      FROM `jos_extensions`
      WHERE `type` = 'component'
      AND `element` = 'com_answers'
  38. SELECT extension_id AS id,element AS "option",params,enabled
      FROM `jos_extensions`
      WHERE `type` = 'component'
      AND `element` = 'com_support'
  39. SELECT extension_id AS id,element AS "option",params,enabled
      FROM `jos_extensions`
      WHERE `type` = 'component'
      AND `element` = 'com_kb'
  40. UPDATE `jos_session`
      SET `data` = '__default|a:11:{s:15:\"session.counter\";i:132;s:19:\"session.timer.start\";i:1745170154;s:18:\"session.timer.last\";i:1745170217;s:17:\"session.timer.now\";i:1745170217;s:24:\"session.client.forwarded\";s:12:\"3.21.106.239\";s:8:\"registry\";O:23:\"Hubzero\\Config\\Registry\":2:{s:7:\"\0*\0data\";O:8:\"stdClass\":3:{s:1:\"0\";s:7:\"session\";s:10:\"Components\";O:8:\"stdClass\":2:{s:7:\"Members\";O:8:\"stdClass\":1:{s:6:\"Models\";O:8:\"stdClass\":1:{s:7:\"Profile\";O:8:\"stdClass\":4:{s:5:\"Field\";O:8:\"stdClass\":2:{s:7:\"orderby\";s:8:\"ordering\";s:8:\"orderdir\";s:3:\"asc\";}s:6:\"Option\";O:8:\"stdClass\":2:{s:7:\"orderby\";s:8:\"ordering\";s:8:\"orderdir\";s:3:\"asc\";}s:7:\"orderby\";s:8:\"ordering\";s:8:\"orderdir\";s:3:\"asc\";}}}s:4:\"Blog\";O:8:\"stdClass\":1:{s:6:\"Models\";O:8:\"stdClass\":1:{s:7:\"Comment\";O:8:\"stdClass\":2:{s:7:\"orderby\";s:7:\"created\";s:8:\"orderdir\";s:3:\"asc\";}}}}s:4:\"Post\";O:8:\"stdClass\":2:{s:5:\"start\";d:0;s:5:\"
      limit\";i:20;}}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:\"512a5601fd7511db095387364e851d54\";s:12:\"tracker.ssid\";s:32:\"512a5601fd7511db095387364e851d54\";s:12:\"tracker.rsid\";s:32:\"512a5601fd7511db095387364e851d54\";s:13:\"session.token\";s:32:\"e56021cf08127fe9a0687ae697d0fdbd\";}',`time` = '1745170218',`ip` = '10.233.94.22'
      WHERE `session_id` = '512a5601fd7511db095387364e851d54'
  • 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