Recent Changes - Search:

PmWiki

pmwiki.org

00907

Summary: Request: Add link shortcut markup to core for $Titlespaced and $Description.
Created: 2007-03-24 12:07
Status: Open
Category: CoreCandidate
From: Feral
Assigned:
Priority: 3
Version: 2.2.0-beta40 (not relivent)
OS: Just say if wanted (=

Description: I propose the addition of the following markup to the Core (say stdmarkup.php just under where the |+ markup resides.)

Markup('[[|++', '<[[|',
  "/(?>\\[\\[([^|\\]]+))\\|\\s*\\+\\+\\s*]]/e",
  "Keep(MakeLink(\$pagename, PSS('$1'),
                 PageVar(MakePageName(\$pagename,PSS('$1')), '\$Titlespaced')
                ),'L')");
Markup('[[|*', '<[[|++',
  "/(?>\\[\\[([^|\\]]+))\\|\\s*\\*\\s*]]/e",
  "Keep(MakeLink(\$pagename, PSS('$1'),
                 PageVar(MakePageName(\$pagename,PSS('$1')), '\$Description')
                ),'L')");

This simply adds two link shortcuts as convenience items;

  1. [[link|++]] which displays link's $Titlespaced
  2. [[link|*]] which displays link's $Description

I use both of these Page vars enough to justify special markup for them for my uses. Perhaps they are as popular with others to be worth inclusion in the core?

Edit - History - Print - Recent Changes - Search
Page last modified on March 24, 2007, at 12:08 PM