FrontPage 

San Jose Scout Wiki

Login

FooReplace Help

The FooReplace processor is a sample that demonstrates a few of the mechanisms that are available for a processor to use. The intent is that it can be copied when starting a new processor.

Arguments are in config format syntax, before a line consisting of '----'.
Non-argument content is anything following the ---- line.

Processor arguments are:

  • original = string or regex to replace in block content
  • replacement = string to put in place of the original string
  • source (optional) = item_ref of content to use

If source is specified, then the indicated item (which can be a page, section, block, table cell, etc.) will used, in place of the content of the block.

Example usage:

{{{#!FooReplace
original=Hello
replacement=Hi!
----
This is content that will be shown, with some words
replaced. Hello world!
}} }

Back to page: System_Info

TBWiki engine 1.9.3 by Tim Bird