[Vim-l] Template:Help - Text and Tag parameters

hermitte at free.fr hermitte at free.fr
Mon Jun 25 12:23:30 UTC 2007


Hello,

John Beckett <johnb.beckett at gmail.com> wrote:

> I think there will always be cases where Template:Help can't
> follow the complex Vim help syntax, so when you click the link
> you won't get the correct help information.
>
> To fix this, we need to modify Template:Help so it accepts an
> optional second parameter. Details to be determined, but
> something like this:
>
> Help template would have two parameters:
> - Parm1 = Text to display on wiki page.
> - Parm2 = Tag for the URL (optional; default Parm2 = Parm1).
>
> I'm reading about how to do this, but I have a suspicion that
> simply making a completely independent Template:Help2 would give
> a cleaner result, with less bugs. Of course it is offensive to
> duplicate stuff from Help into Help2, but it's not really that
> bad, and it's likely we could get it working RSN.
>
> Any comments?

I'd rather not have too many different templates. This case seems simple enough
to not duplicate the code -- it's much simplier than the template {{{Tip}}} that
already tests its parameters.

I'd rather keep the use simple. It's already complex enough to not forget that a
tag is a vim option (that needs 2 single quotes), a vim command (that needs a
double colon), a vim function (that needs parenthesis), ....

--
Luc Hermitte


More information about the Vim-l mailing list