hello,
apologies if this is the wrong list to post/discuss this (i read through the mailing lists wiki page and this one seems to be the most suitable).
after not finding the functionality (acronym tooltip + glossary link) that i was looking for in mediawiki (including extensions) i would like to add an extension that supports the below:
1. provide a tag to markup an acronym/abbreviation: when moused over, a tooltip will be displayed (using the 'title' html attribute) that provides the expansion of the acronym.
2. additionally, if a glossary page is specified then the text is linked to the relevant section of that page. alternatively, if a page with the acronym as its title is present, the text is linked to that page.
with regards to this idea, i have a set of questions:
1. is this already done/possible?
assuming, not:
2. is it possible to use wiki markup rather than an HTML tag: {{gl|XML}} or some such, rather than <gl>XML</gl> would i do this using templates plus the extension?
3. the acronym list needs to be stored somewhere, either implicitly in the glossary page or externally. one possible location is the MySQL DB. is modifying the DB (for extension dev) frowned upon?
comment:
feature item #2 (glossary/page link) perhaps is better left to regular wiki markup (since it can already be done that way)...
any thoughts or comments appreciated!
--ravi
Am 29.08.2005 um 18:07 schrieb ravi:
- provide a tag to markup an acronym/abbreviation: when moused over, a tooltip will be displayed (using the 'title' html attribute) that provides the expansion of the acronym.
I'd suggest a template {{abbrev|aka|Also know as}} rendering to <abbr title="{{{1}}}">{{{2}}}</abbr>
- additionally, if a glossary page is specified then the text is
linked to the relevant section of that page. alternatively, if a page with the acronym as its title is present, the text is linked to that page.
honestly a much too technical solution for a problem the user can easily fix by typing the unknown word into the search box... do you know in-document linking yet? [[#section xxx]]
ciao, tom
-- http://de.wikipedia.org/wiki/Benutzer:TomK32 http://www.tomk32.de
Template: gl [[{{{2}}}|<abbr title="{{{3}}}">{{{1}}}</abbr>]]
Usage: {{gl|pm|12-hour clock|Post meridiem}}
Thomas Koll wrote:
Am 29.08.2005 um 18:07 schrieb ravi:
- provide a tag to markup an acronym/abbreviation: when moused over, a tooltip will be displayed (using the 'title' html attribute) that provides the expansion of the acronym.
I'd suggest a template {{abbrev|aka|Also know as}} rendering to <abbr title="{{{1}}}">{{{2}}}</abbr>
thanks for the response. i like the above. however, this would require that the author specify the expansion with each mention of the acronym. that would discourage adoption/use... i would prefer that my extension pre-process the page and add the title tags based on a separate list maintained elsewhere (such as in the DB or in a flat file, or in another wiki page).
- additionally, if a glossary page is specified then the text is linked to the relevant section of that page. alternatively, if a page with the acronym as its title is present, the text is linked to that page.
honestly a much too technical solution for a problem the user can easily fix by typing the unknown word into the search box...
true...
do you know in-document linking yet? [[#section xxx]]
i have read about it, yes.
--ravi
Am 29.08.2005 um 18:56 schrieb ravi:
thanks for the response. i like the above. however, this would require that the author specify the expansion with each mention of the acronym. that would discourage adoption/use... i would prefer that my extension pre-process the page and add the title tags based on a separate list maintained elsewhere (such as in the DB or in a flat file, or in another wiki page).
My opinion is that you should use such things carfully, less is more if you want the reader to concentrate on the really important things. Doing such things automatically will always cause a strange reading experience.
ciao, tom -- http://de.wikipedia.org/wiki/Benutzer:TomK32 http://www.tomk32.de
wikitech-l@lists.wikimedia.org