Vim Tips Wiki

Talk:Help/Archive 1

Back to template | < Template talk:Help

1,614pages on
this wiki

Archive of superseded discussions of Template:HelpEdit

Need DisplayText and TagText Edit

Template:help is great, but it can't handle some requirements. For example, see the Help links at VimTip5.

Rather than making Template:help super-complicated, I wonder if we could just have a Template:help2 that does the same, but which takes two arguments:

Arg1 = text to display to user (after ':help ').
Arg2 = tag to construct the URL.

Example: Arg1 = "*", Arg2 = "star".
I have no idea whether this proposal is even possible.
JohnBeckett 10:22, 20 June 2007 (UTC)

It should be possible to have optional named parameters. IIRC, User:bastl has used them things in Template:Tip.
However, I don't know if we can mix named and unnamed parameters. If yes, we could use help like this:
{{help|star|text=*}}      #new, if we can mix both types of parameters
{{help|SomeTag}}          #current use
{{help|tag=start|text=*}} #may be?
--Luc Hermitte 12:02, 20 June 2007 (UTC)
see for details on templates.
--bastl 13:13, 20 June 2007 (UTC)
Guys - the perfect is the enemy of the good!
I'll look at the docs, but we need something that's easy to use.
{{help|pattern}} #DisplayText='pattern', TagText same
{{help|star|*}} #DisplayText='star', TagText='*'
--JohnBeckett 23:03, 20 June 2007 (UTC)

Help links need to go to the correct place Edit

Can someone wise work out how to improve on the following situation?

In VimTip43 I have entered a help link:
{{help|abbreviations}} -> :help abbreviations

In the tip, the URL appears as:

but when you click, you go to:

and where you wanted to go was:
JohnBeckett 11:15, 20 June 2007 (UTC)

That's odd. I don't observe this problem. I did observe other similar incorrect redirections between vimplugin and vimdoc, but not this one. Could it be a cache issue ?
--Luc Hermitte 12:02, 20 June 2007 (UTC)
I don't particularly mind the hostname changes (they are the same IP).
It's the fact that you don't end up in the right place that's a problem. We need someone who understands the vimdoc site to comment on why the 'abbreviations' tag (and many others) doesn't go to the exact place.
If we had a 'help2' template, we could manually fix occasional cases.
--JohnBeckett 23:03, 20 June 2007 (UTC)

More info on vim-l mailing list Edit

I have done some more work on the Template:Help issues.
Please see the three threads on this at
--JohnBeckett 06:34, 24 June 2007 (UTC)

Around Wikia's network

Random Wiki