wiki:InsertElementMacro

Version 3 (modified by anonymous, 15 years ago) (diff)

--

Insert HTML Elements

Description

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

Bugs/Feature Requests

Existing bugs and feature requests for InsertElementMacro are here.

If you have any issues, create a new ticket.

Download

Download the zipped source from [download:insertelementmacro here].

Source

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

Example

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:

   <div class="quote">This is a very nice quote</div>
   <p id="unique">This is a unique paragraph, commas in the last argument don't interfere</p>
   <a id="uniquea>You can represent actual quotes by using &quot;entities&quot;</a>
   <pre id="uniqueb">Or you can change the type of "outer quote"</pre>

Recent Changes

16973 by rjollos on 2017-11-18 10:01:37
Add metadata
8522 by rjollos on 2010-08-30 05:29:13
Added revision info to macro. Fixes #6572.
2478 by sanmarcos on 2007-07-16 17:30:35
InsertElementMacro:

Added Insert Element

(more)

Author/Contributors

Author: sanmarcos