This was deferred in the interest of find a better syntax. Has anyone
had any thoughts? I find myself needing this very often... and since
it is usually in the case of links to plugin documentation a plugin
wont do as I cannot count on the user having it installed.
Cheers,
Saq
--
TiddlyThemes.com ( http://tiddlythemes.com ) : a gallery of TiddlyWiki themes.
TiddlySnip ( http://tiddlysnip.com ) : a firefox extension that turns
TiddlyWiki into a scrapbook!
LewcidTW ( http://tw.lewcid.org ) : a repository of extensions for TiddlyWiki
Saq just saved me from creating a new thread for this (note to self:
always check Trac before writing up a supposedly new suggestion... ).
I don't quite see what's wrong with the proposed syntax:
[[label|tiddler|URL]]
The only drawback is that a label/description would be required - which
is really not a big deal IMHO.
To avoid this, maybe the label parameter could simply be left blank:
[[|tiddler|URL]]
This would automatically use "tiddler" for the label (which might be a
good idea anyway).
-- F.
I think Udo's approach does have some advantages, and is quite
elegantly TiddlyWiki-ish. The trouble with the proposed linking syntax
is that it has to be used everytime there's a reference to the tiddler
that is potentially missing. That means that if there were a lot of
references, updating them would be painful.
> I don't quite see what's wrong with the proposed syntax:
> [[label|tiddler|URL]]
After all this time, I'm not sure either, and my gnomic comment on the
ticket doesn't help! I think my reservations were actually with the
approach as a whole.
Cheers
Jeremy
> The only drawback is that a label/description would be required - which
> is really not a big deal IMHO.
>
> To avoid this, maybe the label parameter could simply be left blank:
> [[|tiddler|URL]]
> This would automatically use "tiddler" for the label (which might be a
> good idea anyway).
>
>
> -- F.
>
> >
>
--
Jeremy Ruston
mailto:jer...@osmosoft.com
http://www.tiddlywiki.com
Possibly, but it's also somewhat complicated, and it clogs the list of
shadow tiddlers if used extensively.
Also, that workaround is unsuitable for regular users.
> The trouble with the proposed linking syntax
> is that it has to be used everytime there's a reference to the tiddler
> that is potentially missing. That means that if there were a lot of
> references, updating them would be painful.
That's a good point - though I'm not sure whether it's a deal breaker;
after all, regular tiddler links are not updated either when the
respective tiddler is renamed.
The way I see it, we'd rather have this feature implemented with that
tiny flaw than not having it at all...
... except if it would lead to bloat or decreased performance, but the
respective patch/changeset looks quite harmless.
-- F.
I must be missing why regular users would want to do this. As I
recall, the original motivation for the change was to make it easier
for plugin writers to distribute documentation in a separate tiddler
such that the links to the documentation still worked even if the user
deleted the documentation tiddler.
Udo's workaround allows him to ship an optional tiddler with the full
documentation. In situations where it's not available, the user will
instead see a shadow tiddler with a brief note and a link to the
online version of the full documentation.
As I say, I like Udo's workaround because it doesn't introduce any new
complexities into TiddlyWiki, but just elegantly reuses an existing
mechanism.
The proposed mechanism looks to me like something that could be
provided as a plugin, either by extending the existing link formatter
or adding a new formatter. (See Eric's AttachFilePlugin at TiddlyTools
for a related plugin that permits images to be embedded with fallback
to local or online external files).
Cheers
Jeremy
>
> > The trouble with the proposed linking syntax
> > is that it has to be used everytime there's a reference to the tiddler
> > that is potentially missing. That means that if there were a lot of
> > references, updating them would be painful.
>
> That's a good point - though I'm not sure whether it's a deal breaker;
> after all, regular tiddler links are not updated either when the
> respective tiddler is renamed.
> The way I see it, we'd rather have this feature implemented with that
> tiny flaw than not having it at all...
>
> ... except if it would lead to bloat or decreased performance, but the
> respective patch/changeset looks quite harmless.
>
>
> -- F.
>
> >
>
TiddlyWiki markup is very similar to wikicreole and I think that
maintaining that similarity is desirable. This extension would be an
additional deviation from other wikicreole and other wikis.
Martin
I generally agree about WikiCreole compatibility.
However, in this case, the regular link syntax is still present, so this
change would not break any existing links.
Granted, minor problems might arise when transferring contents from TW
to another wiki - but fixing that should be very easy.
Also, rather than being limited by the existing standard, why not push
for a change in that standard?
Martin, you know more about Creole than I do; are they receptive of such
suggestions?
-- F.
So adding a new format that is not used by any other wiki is counter
to the philosophy of WikiCreole.
Martin
I know - however, I hadn't considered that this kind of functionality is
only really useful for TiddlyWiki (I guess!?).
I'd still like to have this option, but I could also live without it.
After all, it's not like there wasn't an easy workaround (though, rather
than creating a dedicated shadow tiddler, I'd prefer adding a second,
direct link to the external resource).
-- F.
[[label|URL]]
The part I'm not sure is what would be the best way to implement
this. My current vague theory is with a wikifier that would look to
see if any tiddler was tagged with the URL, and if so, make the
reference link to them instead.
Would a scheme like that work? Could it be done via a plug-in? (If
not, perhaps a future refactoring shoudl allow just overriding the
link-processing behavior :) Would it be "yet another similar magic
mechanism"?
Thanks,
Dean
I'm not sure whether I prefer the above simple approach to a slightly
more deliberate solution: tiddlers tagged with URLOverride would have
a field with a regular expression of what URL they override (or
perhaps even a rewriting of the URL). To do this, we redefine/
override createExternalLink to check the set of URL overrides before
generating the link.
I think this could be very useful. For example, it allows plug-ins to
refer just to their documentation site, but you could have a local
(possibly abbreviated) copy of the documentation that would be
displayed if present, but that could be deleted without breaking
anything.