PITS /
00907: Request: Add link shortcut markup to core for $Titlespaced and $Description.
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;
[[link|++]]
which displays link's $Titlespaced[[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?