Alternative Stylesheet for Acronym: Difference between revisions

From LemonWiki共筆
Jump to navigation Jump to search
No edit summary
Line 35: Line 35:
=== add link to the wikipedia page ===
=== add link to the wikipedia page ===


<span title="Internet Control Message Protocol" class="acronym">ICMP ([http://zh.wikipedia.org/wiki/ICMP ?])</span>
<span title="Internet Control Message Protocol" class="acronym" style="cursor: help;border-bottom: 1px dashed #000;">ICMP</span>([http://zh.wikipedia.org/wiki/ICMP ?])





Revision as of 09:24, 13 May 2013

Problem:

<abbr>(abbreviation, 縮寫)</abbr> and <acronym>(首字母縮略字) </acronym>

tags/markup was not work at old version of Mediawiki (v.1.6.9 bug) but abbr tag works in version 1.16.0)

  • <ACRONYM title="High Technology">Hi-Tech</ACRONYM>
  • WWW
MediaWiki v.1.6.9



Solution

Alternative Stylesheet

  • Hi-Tech
 <span title="High Technology" class="acronym">Hi-Tech</span>

 abbr, acronym, span.abbr, span.acronym {
  cursor: help;
  border-bottom: 1px dashed #000;
}


Other approach: add link to the wiki node/page

PKM (?)

<span title="Personal Knowledge Management" class="acronym" style="cursor: help;border-bottom: 1px dashed #000;">[[PKM]] (?)</span>


add link to the wikipedia page

ICMP(?)


further reading