Description
The "Free Parent Link" Syntax
does no longer work as it used to in 1.1. And more interestingly, the "Free Sibling Link" does not work as well.
Steps to reproduce
go to e.g. http://moinmaster.wikiwikiweb.de/HelpOnEditing/SubPages and check the last link
Example
* [:../:free parent link] * [:../SubPages:free sibling link]
Renders as:
Details
This Wiki or Moin Master.
Workaround
Discussion
This syntax was experimental and was never official documented syntax. The official syntax for free links is
* ["free link"] * ["../sibling link"] * ["../"]
If it worked in 1.1, we should try to make it work again in 1.3. In 1.4 we should redesign the syntax, specifically the link syntax which is a big mess. -- NirSoffer 2005-02-17 21:21:09
- It was very official: it was in the main documentation.
No it was not, it was and still is in HelpMiscellaneous/ExperimentalFeatures. Note the comment on that page:
This page describes features that are not completed yet or need pratical testing before they're added to the standard feature set. They might disappear or be changed subtantially! It seems that this feature just disappeared :).
Yeah, unsupported but official :-p
Note that someone added this link type to HelpOnLinking in rev 15 on 2004-10-19 15:03:49: http://moinmoin.wikiwikiweb.de/HelpOnLinking?action=diff&rev2=15&rev1=14
- I think we should remove this from the official page, as this syntax is ugly and we (most developers) want to remove it anyway. Sorry, but I may have created a misunderstanding here by using the description "free sibling link", I meant "extended link syntax for siblings". So what I was looking for was:
* [:../:text for the link] * [:../SubPages:text for the link]
which should go to Pages ../ and ../SubPages while displaying "text for the link". The proposed
* ["../sibling link"]
would, written as* ["../SubPages text for the link"]
look for a page SubPages_text_for_the_link which is not what I want. I would have expected a syntax like
* [wiki:../SubPages text for the link] or * [wiki:Self:../SubPages text for the link]
but this did not work, so I was happy to find :../: parent in the official help and discovered that [:../SubPages:text for the link] did what I wanted in 1.1. I admit that this was somewhat undocumented. Sorry for the confusion. -- RobertSeeger 2005-02-18 11:23:12
Why do we have two ways for free links?
* ["free link"] * [:free link] * [:free link:text for free link]
We can do it by extending [" "] syntax.
* ["free link"] * ["free link" text for free link]
No, that doesn't work, then you can't link to a page containing a quote like"this. -- JohannesBerg 2005-03-07 10:40:53
- Pages with quotation marks suffer from a design issue in the search engine as well - you cannot easily search for them.
Then how about to treat [" "] and [: :] in a similar way?
* [:free link:] (instead of [:free link]) * [:free link: text for free link]
We can place any meta character (maybe configurable) here. for example, [' '], [! !], ...
I think this is a bug. Fixing subpage linking requires the Self: formatter of text_html.interwikilink to recognize the subpage marker ('/'). Fixing this is quite easy, just add the check and add the page_name to the url. fix-subpage-Self.diff
-- OliverGraf 2005-03-07 13:29:31
Fixing parent links ('../') is equally easy. It needs to be checked, too. But I must commit that we really need to rewrite this in 1.4. But for 1.3 this should be fixed. fix-subpage-Self2.diff
-- OliverGraf 2005-03-07 13:39:33
This patch even allow links like: [wiki:Self:../SubPage Link Name] -- OliverGraf 2005-03-07 13:59:12
Neat, thanks. I hope this goes into the official branch. -- JohannesBerg 2005-03-07 14:09:41
Great, thanks, this fixes my original problem. I was even able to apply the basic idea of the patch to my old 1.1. implementation in a couple of minutes (here it has to be put in wiki.py, if anybody needs details, drop me a line), so I got rid of the flimsy "officially unofficial" syntax at all. -- RobertSeeger 2005-03-07 15:55:38
Plan
- Priority: Medium
Assigned to: OliverGraf
- Status: fixed in moin--main--1.3--patch-653