Git Product home page Git Product logo

dw-plugin-extlink's Introduction

Extend Link Syntax plugin

Extend DokuWiki Link syntax to

  • allow formatting the title text of the link
  • specify a frame where the linked page/media to be opened, eg. in a same tab, new tab or popup window

Syntax Usage/Example

Formatting the link text###

Put !> after [[ or {{ to enable extended link syntax. Then you may use bold or itlic formatting for the link text. In case of the interwiki, just put "! " โ€“ one white space required after ! โ€“ for interwiki links that already have > after the interwiki shortcut name. Any formatting syntax, such as typography plugin, will be applicable for the link text. You may also use image as a link title.

[[!>ns:page|**internal** link title]]                internal page
[[!>http://example.com|**external** link title]]     external url
[[! doku>plugin:extlink|**interwiki** title]]        interwiki
{{!>:ns:example.pdf|**media** title}}                media file

Specify how the linked page will be opened

In order to specify a frame where the linked page/media to be opened, put a framename after ! without space. The framename corresponds to the target attribute of the link (<a> tag of xhtml). This means you can override the default target config settings for different link types.

[[!_blank >ns:page|**internal** link title]]         open in a new tab (or window)
[[!_self >ns:page|**internal** link title]]          open in same tab
[[!framename >ns:page|**internal** link title]]      open in the named frame
[[!! w640 h400 >ns:page|**internal** link title]]    open in a popup window (W600xH400) 

Prepare named iframe in your page

This plugin includes iframe syntax conponent that embed inline frames in your wiki page. The named frame is available as the target of the extended link syntax where the linked page to be shown.

{{iframe name="framename" w720px h600px >ns:iframe:default}}

DropDown

Trigger Link:
        [[dropdown>#pid .class|text]]
        [[dropdown>!#pid|text]]   ...dropdown disabled
        [[dropdown>#pid|{{image|title of image}} and text]]

Dropdown Content:
         <dropdown-panel #pid .class> ... </dropdown-panel>

Markdown inline-style links in DokuWiki

     [link name](url "title")      [example](http://example.com "Example domain")
     [link name](url)
     [link name]("title")

Licensed under the GNU Public License (GPL) version 2

(c) 2015-2016 Satoshi Sahara <[email protected]>

dw-plugin-extlink's People

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.