Changes between Version 12 and Version 13 of AbbrMacro
- Timestamp:
- Nov 13, 2015, 8:11:41 AM (8 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
AbbrMacro
v12 v13 5 5 == Description 6 6 7 AbbrMacro returns an <abbr> or <acronym> element with a title attribute.7 This macro returns an <abbr> or <acronym> element with a title attribute. 8 8 9 If you've used InlineMacro to create abbreviations or acronyms in your [WikiFormatting formatted] wiki pages, you probably quickly realized how tedious it can be. Th e !AbbrMacro packageis designed to alleviate this issue.9 If you've used InlineMacro to create abbreviations or acronyms in your [WikiFormatting formatted] wiki pages, you probably quickly realized how tedious it can be. This macro is designed to alleviate this issue. 10 10 11 11 It accepts keyword syntax only: 12 12 13 13 {{{ 14 [[Abbr(key=XYZ, title=Xenon Yeti Zulu,<tag=abbr|acronym>)]]14 [[Abbr(key=XYZ, title=Xenon Yeti Zulu, <tag=abbr|acronym>)]] 15 15 }}} 16 16 17 Where `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 . It won't do any harm to use them with IE 6 and below, but these browsers do not allow you to style the element with CSS and they don't display the title attribute as a tooltip.17 Where `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 18 19 Many 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:19 Many 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: 20 20 * A `start tag` marking the beginning of an element. 21 21 * Any number of valid `attributes` (and their associated values in quotes). … … 30 30 31 31 There has been a long and sometimes heated discussion on the `<abbr>` and `<acronym>` elements around the Web. A good article at Juicy Studios was written by my friend Pamela Berman: [http://juicystudio.com/article/abbreviations-acronyms.php Abbreviations are a Breeze]. 32 33 See also: TracTerminologyPlugin, AcronymsPlugin 32 34 33 35 === Dictionary File