Template:Highlighted anchor
Jump to navigation
Jump to search
This template uses TemplateStyles: |
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:
This is the visible text of the anchor and this is the highlighted part of it
See also
- {{Visible anchor}}
- {{Anchor}}
- {{Anchored list}}
- {{Shortcut}}
- Help:Link § Section linking (anchors) (Shortcut: WP:ANCHOR)