etoile ([info]woofiegrrl) wrote in [info]wikitech,
@ 2006-01-06 16:45:00
Previous Entry  Add to memories!  Tell a Friend!  Next Entry
I'm having a problem with specifying a default for a parameter in a template.

If I give the parameter in the template as: {{{Param|None}}}
When the value is unspecified in a page I get: {{{Param|None}}} (printed plaintext)
When the value IS specified in a page I get: {{{Param|None}}} (printed plaintext)

If I give the parameter in the template as: {{{Param}}}
When the value is unspecified in a page I get: {{{Param}}} (printed plaintext)
When the value IS specified in a page I get: (the value printed plaintext)

Basically it doesn't seem to recognize the parameter-with-default as being a parameter at all, it just prints it out plaintext regardless of whether it is specified or not. If I don't give a default, then without a value it prints the plaintext parameter, and with a value it prints the parameter properly.

Does this make any sense? What might I be doing wrong? I have read the appropriate meta help carefully and as far as I can tell I'm specifying my default properly.

Thanks in advance for the help!



(Post a new comment)


[info]schnee
2006-01-07 12:45 am UTC (link)
Which Mediawiki version are you using?

(Reply to this)(Thread)


[info]woofiegrrl
2006-01-07 01:54 am UTC (link)
I'm using 1.4.5.

(Reply to this)(Parent)(Thread)


[info]schnee
2006-01-07 02:02 am UTC (link)
*noddles* You should definitely upgrade to 1.4.13 in that case, just for the security fixes. ^_~

But outside of that... it seems to me that guide on Meta refers to 1.6, so even though this is just a guess, it might well be that default values for template parameters weren't/aren't available in 1.4. Somebody else should probably be able to clarify that...

(Reply to this)(Parent)(Thread)

Yep, new in 1.6
[info]brionv
2006-01-07 06:43 pm UTC (link)
We don't have per-version end-user documentation at this time, so stuff you may find on meta is going to be some awful jumble. :P

(Reply to this)(Parent)


Create an Account
Forgot your login?
Login w/ OpenID
English • Español • Deutsch • Русский…