[Mediawiki-l] Re: Page Templates

Jamie Bliss astronouth7303 at gmail.com
Mon Sep 12 23:13:28 UTC 2005


Chris McIntosh wrote:
> Hi, 
> 
> I would like to define a standard page to use for documenation on my wiki. 
> It should look something like
> 
> Header:
> ...
> Business Case:
> ...
> Notes and Progress:
> ...
> etc
> 
> I tried to set this up first with a wiki template. 
> {{ProjectTemplate|Blah|blah|blah}} However it doesn't seem to be able to 
> give me the flexibility to create different section of markup and possible 
> change their position at a later time.
> 
> I am thinking of something like an html page where I define different 
> sections and then can define a stylesheet at a later time.
> 
> Is there anything like this in Mediawiki?

What you need to do is figure out general formats (eg, suggested 
headings) and specific formats (infoboxes). The latter can go into 
templates; the former embedded in each page. (You may want to look at 
Wikipedia's taxonomy boxes for an idea how to be flexible.)

I wrote an extension once for FIRSTwiki that defined a format action 
that tried to match the title to a series of regexps, then loaded a 
template's content into that page if it matched. I can release it as GPL 
if you would like to see it.

-- Jamie
-------------------------------------------------------------------
http://endeavour.zapto.org/astro73/
Thank you to JosephM for inviting me to Gmail!
Have lots of invites. Gmail now has 2GB.




More information about the MediaWiki-l mailing list