DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:bookmark

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.

Allow space and dash in bookmarkname

Suggestion: by allowing the space and dash characters in a bookmarkname, we can then refer to them in a natural way without having to use an alias. For example, [[#Open step]] could refer to <BOOKMARK:open step>. Where currently we would have to write [[#openstep|Open step]] to refer to <BOOKMARK:openstep>.

plugin/bookmark.txt · Last modified: 2021-03-14 22:50 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