Edgewall Software

Ticket #867 (closed enhancement: duplicate)

Opened 4 years ago

Last modified 2 years ago

[wiki:Pagename]-style links should not require a title

Reported by: anonymous Owned by: cboos
Priority: normal Milestone:
Component: wiki system Version: devel
Severity: normal Keywords:
Cc:

Description

Hi there

I have code formatted this text on purpose.

Sometimes people use [wiki:Entry EntryURL] in square brackets along with an entry name and URL to have a link to a Wiki entry when Trac doesn't automatically pick up the new entry and link it.

There must be a way of specifying just [wiki:Something] and have it link to that entry, without specifying the URL.

wiki:Something also works (without []) but it shows the `wiki:' prefix.

Attachments

Change History

Changed 4 years ago by anonymous

Actually maybe I should state that not all Wiki entries are automatically converted into links. Maybe this is a bug, maybe not. I don't know. I have an entry called `OpenfilerFAQ' in my Trac environment which is not converted on a referring page although the entry exists.

Changed 4 years ago by A Different Anonymous

  • summary changed from wiki: entry should accept no link names to [wiki:Pagename]-style links should not require a title

I think this ticket describes the same enhancement I would like and have changed the summary to be a bit more clear.

Writing [wiki:Somepage] should create the link Somepage?. This would be useful for cases where Trac is not properly interpretting a wiki link because of surrounding text or because the wiki link isn't in camel case. For example, I would like to be able to write:

Output can be found at the path InstallRoot?/output/txt

but Trac doesn't recognize InstallRoot? is a wiki link when seen in that context.

This works but looks odd: [InstallRoot]/output/txt

This works but looks odd: [InstallRoot?]/output/txt

Typing [wiki:InstallRoot]/output/txt doesn't work

Typing InstallRoot?/output/txt doesn't work

So instead you must type [wiki:InstallRoot InstallRoot]/output/txt

So instead you must type InstallRoot?/output/txt

The current required repeating of the name as a title seems overly verbose, and being able to write either [ProperWikiName] or [wiki:ProperWikiName] and get a link would be useful quite often. You might consider applying the same idea to URLs as well, for things like:

Your homepage will be available at http://www.example.com/~yourname

but that seems like something that would be needed very often.

anonymous: OpenfilerFAQ isn't a proper wiki name, so yes, you need to write it as [wiki:OpenfilerFAQ OpenfilerFAQ] (see CamelCase). OpenFilerFaq? and OpenfilerFaq? would both work as alternatives (but unlike some wikis, OpenFilerFAQ or OpenfilerFAQpage won't work). Most wikis seem to use the general rule that there must be at least two uppercase letters which are each followed by lowercase letters, but Trac seems to use a more strict rule of requiring at least two uppercase letters and each and every uppercase letter must be followed by lowercase letters.

Changed 4 years ago by A Different Anonymous

Sorry, I meant to say splitting URLs apart seems like something that would not be needed very often.

Changed 3 years ago by cboos

  • owner changed from jonas to cboos
  • status changed from new to assigned

I'll try to implement this one in the InterTrac branch first.

Changed 3 years ago by cmlenz

cboos, please try to keep your branches focussed... putting various different changes in them will make merging a lot less likely, because peer review becomes a pain. Is there a reason this change couldn't be made in trunk?

Changed 3 years ago by cboos

  • status changed from assigned to closed
  • resolution set to duplicate

Well, as the InterTrac branch already contains several changes on the wiki engine, I wanted to build on those.

Anyway, actually I did made that change on the trunk already (r1907). I'm getting old :)

Duplicate of #1755

Add/Change #867 ([wiki:Pagename]-style links should not require a title)

Author



Change Properties
<Author field>
Action
as closed
Next status will be 'reopened'
to The owner will change from cboos. Next status will be 'closed'
 
Note: See TracTickets for help on using tickets.