| 1 | = InsertElementMacro = |
| 2 | |
| 3 | == Description == |
| 4 | |
| 5 | Allows you to insert HTML elements with properties without having to use a preprocessor. |
| 6 | |
| 7 | == Bugs/Feature Requests == |
| 8 | |
| 9 | Existing bugs and feature requests for InsertElementMacro are |
| 10 | [report:9?COMPONENT=InsertElementMacro here]. |
| 11 | |
| 12 | If you have any issues, create a |
| 13 | [http://trac-hacks.org/newticket?component=InsertElementMacro&owner=sanmarcos new ticket]. |
| 14 | |
| 15 | == Download == |
| 16 | |
| 17 | Download the zipped source from [download:insertelementmacro here]. |
| 18 | |
| 19 | == Source == |
| 20 | |
| 21 | You can check out InsertElementMacro from [http://trac-hacks.org/svn/insertelementmacro here] using Subversion, or [source:insertelementmacro browse the source] with Trac. |
| 22 | |
| 23 | == Example == |
| 24 | |
| 25 | Usage: |
| 26 | {{{ |
| 27 | [[InsertElement(element, property, value, content)]] |
| 28 | }}} |
| 29 | Where: |
| 30 | |
| 31 | * element Name of an HTML element like div or p |
| 32 | * property Name of the HTML property such as class or id |
| 33 | * value The value of the property |
| 34 | * content The quoted string for the content of the element |
| 35 | |
| 36 | Examples: |
| 37 | {{{ |
| 38 | [[InsertElement(div, class, quote, "This is a very nice quote")]] |
| 39 | [[InsertElement(p, id, unique, "This is a unique paragraph, commas in the last argument don't interfere")]] |
| 40 | [[InsertElement(a, id, uniquea, "You can represent actual quotes by using "entities"")]] |
| 41 | [[InsertElement(pre, id, uniqueb, 'Or you can change the type of "outer quote"')]] |
| 42 | }}} |
| 43 | Result: |
| 44 | {{{ |
| 45 | <div class="quote">This is a very nice quote</div> |
| 46 | <p id="unique">This is a unique paragraph, commas in the last argument don't interfere</p> |
| 47 | <a id="uniquea>You can represent actual quotes by using &quot;entities&quot;</a> |
| 48 | <pre id="uniqueb">Or you can change the type of "outer quote"</pre> |
| 49 | }}} |
| 50 | |
| 51 | == Recent Changes == |
| 52 | |
| 53 | [[ChangeLog(insertelementmacro, 3)]] |
| 54 | |
| 55 | == Author/Contributors == |
| 56 | |
| 57 | '''Author:''' [wiki:sanmarcos] [[BR]] |
| 58 | '''Contributors:''' |