Article A Default Type
This page contains some content for testing the Glossary Module.
It should demonstrate the following:
- Glossary terms that appear in the content should be highlighted.
- Clicking on them should show the definition.
- Matching should operate on whole words, not parts of words.
- A word can not be highlighted twice in an overlapping way.
- Matching is case-insensitive.
- Replacements happen in some elements and not in others in a useful way. For example, not within links.
window.glossary_maximum_replacements_per_term_per_scope can be set to a high number such as 1000 to test the cases above well. It can be set to 1 to test that the same term is not highlighted too often on a page.
A selection of different elements:
1 MB NORMAL
2 MB BOLD
3 MB ITALIC
4 MB STRIKETRHOUGH
6 MB HEADER 3
7 MB HEADER 4
8 MB BLOCKQUOTE
9 MB CODE
10 Mb LEFT ALIGN
11 mB CENTER ALIGN
12 mb RIGHT ALIGN
13 MB JUSTIFY
- 14 MB BULLET LIST
- 15 MB LINK
- 16 MB NUMBERED LIST
- 17 MB LINK
♠
19 KB CELL | 20 MB CELL | 21 MB CELL |
22 KB LINK IN CELL | 23 MB LINK IN CELL |
24 TEXT WITHIN CODE WITHIN AN ANCHOR KB MB
Some text that test various cases such as terms that overlap, substrings that should not match, word boundaries, upper and lower case, multiple words)
Get the latest European news from BBC News in Europe: headlines, features and analysis from BBC correspondents across the European Union. The Council of Europe did not build the Trans Europe Express in Europe.
Europe and europe and EUROPE
This article is for testing that glossary terms are highlighted only once in the main page content, and once per accordion/expanding article.
A selection of different elements:
1 MB NORMAL
2 MB BOLD
3 MB ITALIC
Get the latest European news from BBC News in Europe: headlines, features and analysis from BBC correspondents across the European Union. The Council of Europe did not build the Trans Europe Express in Europe.
Europe and europe and EUROPE
This article is for testing that glossary terms are highlighted only once in the main page content, and once per accordion/expanding article.
A selection of different elements:
1 MB NORMAL
2 MB BOLD
3 MB ITALIC
Get the latest European news from BBC News in Europe: headlines, features and analysis from BBC correspondents across the European Union. The Council of Europe did not build the Trans Europe Express in Europe.
Europe and europe and EUROPE
Article D Default Type
This article has a copy of some earlier content. If window.glossary_maximum_replacements_per_term_per_scope is set to 1, then all of the terms that are present here should have been highlighted earlier in the document, therefore they should not be highlighted here.
A selection of different elements:
1 MB NORMAL
2 MB BOLD
3 MB ITALIC
Get the latest European news from BBC News in Europe: headlines, features and analysis from BBC correspondents across the European Union. The Council of Europe did not build the Trans Europe Express in Europe.
Europe and europe and EUROPE