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