I forgot to mention. I have written an extension that adds the format
action. If the current page matches a configurable regex, then the
contents of a page are pasted into into it and saved under the current
user. (with a save comment from a message). The user is then
redirected to the edit page.
Note that it's a little hackish when it comes to actually saving,
since I couldn't find a function to do it for me (And do all the
proper security checks and stuff). It also only works if the page in
question doesn't exist.
In the future, I may allow for subexpressions in the regex to be
substituted into the format.
On 6/6/05, Jamie Bliss <astronouth7303(a)gmail.com> wrote:
On 6/6/05, Rowan Collins
<rowan.collins(a)gmail.com> wrote:
On 06/06/05, rouble <rouble(a)gmail.com>
wrote:
Now everytime I want to start a new page I want
to create a new
project page I want it to
inherit everything from Template:Project.
Sounds like what you "really" want is what's asked for in
http://bugzilla.wikimedia.org/show_bug.cgi?id=1045 (and/or
http://bugzilla.wikimedia.org/show_bug.cgi?id=2286)
I just want the new page to inherit everything
from project, so I can
continue to edit the new page. I don't want to modify the template.
But to just do this, you can use {{subst:Project}}, which will
substitute the content of [[Template:Project]] on save, rather than on
read. So after saving a page with nothing but that in, it will be a
copy of the template when you next edit it.
That's what I've set up on FIRSTwiki.
For the team pages, you have {{subst:format/team}}, and each of the
associated pages also have a similar template.
In a format listing, you can use these, too. Just have {{format/team}}
(no subst:).
-- Jamie
-------------------------------------------------------------------
http://endeavour.zapto.org/astro73/
Thank you to JosephM for inviting me to Gmail!
Have lots of invites. Gmail now has 2GB.