Templates

Templates as  wikipedia's templates are implemented in GXwiki.

Basically a template is a page that display the content of the page that use it in a formatted way.

A template starts with 'template:' on it name.

Example

A very common use of templates is to display address. In this case the address is used.

Address
Street 18 de Julio 16 P4
City Montevideo
Country Uruguay

 

Sintax

Invoking a template in a page:

{{{template:template name | parameter1 | ... }}}

In the template itself, parameters are defined as %1, %2, ... and each parameter is separated with a pipeline. If the template has complex value is preferable to use double-pipeline (||) to separate parameters, for example:

{{{Template:template name | parameter1 with an [[some wiki link|internal link]] || second parameter}}}

Builtin Templates

See Builtin Templates