Changes between Version 14 and Version 15 of AbbrMacro


Ignore:
Timestamp:
Mar 27, 2017, 6:24:18 PM (4 years ago)
Author:
figaro
Comment:

Moved example to functional description

Legend:

Unmodified
Added
Removed
Modified
  • AbbrMacro

    v14 v15  
    1616
    1717Where `key` is the element content, `title` is required, and the `tag` keyword is optional. The element type (tag) will default to `acronym` if omitted. Why is acronym the default? For several reasons. First, most users are after acronyms (and as far as I know there are no plans for an `initialism` element). Second, Internet Explorer before version 7.0 does not support the `<abbr>` element, so any styling and defined tooltips will be ignored.
     18
     19As an example:
     20
     21'''Macro''':
     22{{{
     23[[Abbr(key=PEP,title=Python Enhancement Proposal)]]
     24}}}
     25
     26'''Displays''':
     27{{{
     28#!html
     29<acronym title="Python Enhancement Proposal">PEP</acronym>
     30}}}
    1831
    1932Many HTML authors mistakenly refer to elements as "tags". For a review of the syntax and nomenclature of WWW markup elements, visit the Wikipedia [http://en.wikipedia.org/wiki/HTML_element Element] article, or this quick synopsis will help. Syntactically, HTML elements are constructed with:
     
    138151}}}
    139152
    140 == Example
    141 
    142 '''Macro''':
    143 {{{
    144 [[Abbr(key=PEP,title=Python Enhancement Proposal)]]
    145 }}}
    146 
    147 '''Displays''':
    148 {{{
    149 #!html
    150 <acronym title="Python Enhancement Proposal">PEP</acronym>
    151 }}}
    152 
    153153== Recent Changes
    154154