[Mediawiki-l] [Q] Section Headers & Templates

Eric Gorr mailist at ericgorr.net
Wed Feb 20 22:12:14 UTC 2008


I am trying to figure out how templates work and have run into some  
trouble. I've got a template defined as:

==Description==<br>
{{{Description}}}<br>
===Parameters===<br>
{{{Parameters}}}<br>
===Return Value===<br>
{{{ReturnValue}}}<br>
==Notes==<br>
{{{Notes}}}<br>
==Examples==<br>
{{{Examples}}}<br>
==Change Log==<br>
{{{ChangeLog}}}<br>
==See Also==<br>
{{{SeeAlso}}}<br>
[[Category:{{{Category}}}]]


The problem is that when I use the template by doing:

{{FunctionDefinition
|Description=GetFileIndex Description
|Parameters=Joe
|ReturnValue=its return value
|Notes=some notes
|Examples=the examples
|ChangeLog=the changelog
|SeeAlso=my see also
|Category=ATestCategory}}

The substitution happens correctly, but the section headers are just  
appearing as

==Description==

etc. and I would like to see them show up as regular wiki section  
headers.

Now, if I change the template to be:

<h1>Description</h1><br>
etc.

the section headers do show up as I expect them to be...is this the  
correct method?
I also noticed that the 'edit' link also appears next to the section  
header and clicking on it produces an error - can this section 'edit'  
link be suppressed?


Thank you.







More information about the MediaWiki-l mailing list