DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:bookmark

This is an old revision of the document!


Bookmark Plugin

Compatible with DokuWiki

  • 2024-02-06 "Kaos" unknown
  • 2023-04-04 "Jack Jackrum" unknown
  • 2022-07-31 "Igor" unknown
  • 2020-07-29 "Hogfather" yes

plugin Insert a link anchor into the page

Last updated on
2020-07-14
Provides
Syntax

Similar to anchor

Tagged with anchor, bookmark, links

Description

With this plugin you can insert a bookmark to your page. The format is

<BOOKMARK:bookmarkname>

This will insert code

<a name='bookmarkname' id='bookmarkname'></a>

To link to the bookmark from the same page (i.e. to use the bookmark as an anchor link within the page), use this syntax:

[[namespace:page_name#bookmarkname|anchor_text]]

Where anchor_text is the text-link your visitors will see.

Installation

Install with Plugin Manager

Feature request

Optional Class tag

Suggestion: add an option to specify a class for a bookmark, to provide for easy CSS styling of the anchor_text. For example, <BOOKMARK:bookmarkname:classname|anchor_text> to produce <a name='bookmarkname' id='bookmarkname' class='classname'>anchor text</a>.

Use case: <BOOKMARK:myterm:glossary|expanded term name> so that I could style all the glossary terms.

plugin/bookmark.1612888325.txt.gz · Last modified: 2021-02-09 17:32 by davidtango

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki