Template:Highlighted anchor/doc

From MOASSpedia
Jump to navigation Jump to search

Usage

Details are to be written, but basically when you add {{highlighted anchor|some text}} inside the visible part of {{visible anchor}} or inside any potential target (i.e a DOM element that has the :target css modifier) then when the target is reached (using a link with a fragment that is identical to its id) the text "some text" will be highlighted with a bluish grey background.

In the source code, for example, we have

[[#testlink|Click on me to see the effect]]

{{visible anchor
|testlink
|text=This is the visible text of the anchor and {{highlighted anchor|this is the highlighted part of it}}
}}

This is rendered as follows:

Click on me to see the effect

This is the visible text of the anchor and this is the highlighted part of it

See also