Issue with contextual web addresses

Support Ticket

+status
 

I am trying to format new industry cards. For this, I want to generalize the formulas used. So I am trying to set up +links to provide contextual links, which basically refer to the industry and then add one of the level 1 criteria. So in effect I want say Oil & Gas+Environment, or Consumer Electronics+Environment. Please see how I tried to do that here:

http://wagn.wikirate.org/Oil_Gas

go to edit and see the content of the +Links card.

when you go back to view mode, you will see two red links.

 

when I used "_left", it gives me this link:

http://wagn.wikirate.org/Oil%20&%20Gas%2BEnvironment

 

when I used "_self", it give me this link:

http://wagn.wikirate.org/Oil%20&%20Gas+Links%2BEnvironment

 

First I was surprised that "_self" provided also the "+Links". Is it only in search-cards that "_self" does not include the card itself?

 

Further, "_left" should have gotten me there, but actually I was looking for

http://wagn.wikirate.org/Oil_Gas+Environment

 

Again, I think there is an issue when using "&". The web link deletes it, but the name of the card does include it.

 

Any suggestions how I can generalize the links?

 

Instead of this:

[[\{{_left|name}}+Environment|Environment]]

 

Try this:

[[_left+Environment|Environment]]

 

There are a few things that keep the first way from working.  One has to do with the order in which links and inclusions are processed, and the basic takeaway there is that it generally causes problems to put inclusions inside link syntax -- especially on the left side.

 

The other is that we do generally simplify names for links -- get rid of non-alphanumeric characters, substitute spaces with underscores, etc.  If you want to see this view you can try the "linkname" view.

 

For example, notice the difference between these two:

{{Oil & Gas|name}}: Oil & Gas

{{Oil & Gas|linkname}}: Oil_Gas


perfect, thanks.

Is there also a way to contextualize the name of the link?

e.g. something like this ( I think you get the point...)

[[_LL|\{{_LL}}]]

  --Philipp.....Wed Apr 04 15:48:08 +0000 2012


Actually, yes, that should work. I overgeneralized a bit above: inclusions on the right side of the pipe generally don't cause problems. You can even put images there, doing things like [[Philipp| \{{Philipp+image}}]]

  --Ethan McCutchen.....Wed Apr 04 15:58:24 +0000 2012