wiki:InsertElementMacro

Insert HTML Elements

Description

Allows you to insert HTML elements with properties, without having to use a preprocessor.

Usage:

[[InsertElement(element, property, value, content)]]

Where:

  • element Name of an HTML element like div or p.
  • property Name of the HTML property such as class or id.
  • value The value of the property.
  • content The quoted string for the content of the element.

Examples:

[[InsertElement(div, class, quote, "This is a very nice quote.")]]
[[InsertElement(p, id, unique, "This is a unique paragraph, commas in the last argument don't interfere.")]]
[[InsertElement(a, id, uniquea, "You can represent actual quotes by using "entities".")]]
[[InsertElement(pre, id, uniqueb, 'Or you can change the type of "outer quote".')]]

Result:

This is a very nice quote.

This is a unique paragraph, commas in the last argument don't interfere.

You can represent actual quotes by using "entities".
Or you can change the type of "outer quote".

Bugs/Feature Requests

Existing bugs and feature requests for InsertElementMacro are here.

If you have any issues, create a new ticket.

defect

1 / 1

enhancement

1 / 1

Download

Download the zipped source from here.

Source

You can check out InsertElementMacro from here using Subversion, or browse the source with Trac.

Recent Changes

8522 by rjollos on 2010-08-30 07:29:13
Added revision info to macro. Fixes #6572.
2478 by sanmarcos on 2007-07-16 19:30:35
InsertElementMacro:

Added Insert Element

2477 by sanmarcos on 2007-07-16 19:26:55
New hack InsertElementMacro, created by sanmarcos
(more)

Author/Contributors

Author: sanmarcos
Maintainer: Marc E.
Contributors:

Last modified 5 days ago Last modified on Sep 21, 2016, 9:48:55 PM