Talk:Help/Archive 1
this wiki
Back to template | < Template talk:Help
Archive of superseded discussions of Template:Help
Edit
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 http://meta.wikimedia.org/wiki/Help:Template 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:
http://vimplugin.sf.net/cgi-bin/help?tag=abbreviations
but when you click, you go to:
http://vimdoc.sourceforge.net/htmldoc/map.html
and where you wanted to go was:
http://vimdoc.sourceforge.net/htmldoc/map.html#abbreviations
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
http://lists.wikia.com/pipermail/vim-l/2007-June/thread.html
--JohnBeckett 06:34, 24 June 2007 (UTC)