Обсуждение: What is the use of the CommitFestBlank template?

Поиск
Список
Период
Сортировка

What is the use of the CommitFestBlank template?

От
Tom Lane
Дата:
The description of the CommitFestBlank template suggests that it sets up
an editable page for you, but AFAICT it does no such thing.  I had to
manually create all the right sections:
http://wiki.postgresql.org/index.php?title=CommitFest:2008-11&diff=2260&oldid=2258
in order to have a page that people could actually put patches into.

Unless templates have power to replace themselves in the page source,
it seems like this can't possibly work.  It would be more helpful to
have a blank page that we could clone (if MediaWiki has such a concept).
        regards, tom lane


Re: What is the use of the CommitFestBlank template?

От
"Brendan Jurd"
Дата:
On Wed, Sep 3, 2008 at 3:39 AM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> The description of the CommitFestBlank template suggests that it sets up
> an editable page for you, but AFAICT it does no such thing.  I had to
> manually create all the right sections:
> http://wiki.postgresql.org/index.php?title=CommitFest:2008-11&diff=2260&oldid=2258
> in order to have a page that people could actually put patches into.
>

Hi Tom.

As the description says, you need to use *substitution* to import the
template's contents wholesale into the page you're editing.  Quoth:

"""
This template is a useful way to create a blank CommitFest page. Just
start a new page and include the template's contents with
   {{subst:CommitFestBlank}}
"""

It's all about the "subst:" at the start of the template call.  This
will actually copy the contents of the template into the page source,
so that after you save your changes you will have a fresh, empty
commitfest page ripe for the editing.

Sorry about the confusion; I had assumed that since you created the
July and September commitfest pages, without complaint or comment,
that you'd worked out how to use CommitFestBlank.

For further reading about substitution in MediaWiki, see
http://en.wikipedia.org/wiki/Wikipedia:Substitution

Cheers,
BJ


Re: What is the use of the CommitFestBlank template?

От
Tom Lane
Дата:
"Brendan Jurd" <direvus@gmail.com> writes:
> This template is a useful way to create a blank CommitFest page. Just
> start a new page and include the template's contents with
>     {{subst:CommitFestBlank}}

Oh, I guess I forgot the subst: part.  Thanks for the clue.

It still seems a bit awkward though.  AFAICS the sentence about
"This is the page for CommitFest starting 2008 November" would
have to be inserted after committing the first version of the
page?
        regards, tom lane


Re: What is the use of the CommitFestBlank template?

От
"Brendan Jurd"
Дата:
On Wed, Sep 3, 2008 at 10:31 AM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
>
> It still seems a bit awkward though.  AFAICS the sentence about
> "This is the page for CommitFest starting 2008 November" would
> have to be inserted after committing the first version of the
> page?
>

Yes, you do have to perform some minor tweaks on the page after
getting the template in there.  It's just meant as a way of
alleviating one particular part of the tedium.

I suppose we could introduce an argument to the template, so that you
would call it with {{subst:CommitFestBlank|November 2008}}, but it's
only going to save us one edit.  I can add this in quite trivially if
you see it as an improvement.

In the end it is still going to be a somewhat hands-on process,
because you have to update the status of the previous commitfest and
change the "CommitFest" redirect.

Of course, I'm open to suggestions.

Cheers,
BJ


Re: What is the use of the CommitFestBlank template?

От
Tom Lane
Дата:
"Brendan Jurd" <direvus@gmail.com> writes:
> I suppose we could introduce an argument to the template, so that you
> would call it with {{subst:CommitFestBlank|November 2008}}, but it's
> only going to save us one edit.  I can add this in quite trivially if
> you see it as an improvement.

+1.  As is, people will forget the stock sentence.  In any case, why
make them do two edits?
        regards, tom lane


Re: What is the use of the CommitFestBlank template?

От
"Brendan Jurd"
Дата:
On Wed, Sep 3, 2008 at 10:55 AM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> "Brendan Jurd" <direvus@gmail.com> writes:
>> I suppose we could introduce an argument to the template, so that you
>> would call it with {{subst:CommitFestBlank|November 2008}}, but it's
>> only going to save us one edit.  I can add this in quite trivially if
>> you see it as an improvement.
>
> +1.  As is, people will forget the stock sentence.  In any case, why
> make them do two edits?
>

Done, with some additional edits there, and in CommitFest:Help, to
hopefully make the whole "subst" thing a bit more clear.

Cheers,
BJ