On Fri, Feb 27, 2026 at 03:11:33PM +0000, Ceppo wrote:
> I noticed that Template:DebianHeader and Template:Note mix numbered and
> named parameters. I think using only named ones would be more clear and make
> the templates easier to edit and maintain.

Template:DebianHeader only accepts named parameters.  It does contain an
instance of `{{{Title|1}}}`, where the parameter `Title` falls back to the
constant `1`.  That fooled me reading it back just now - how about changing
`1` to `yes`?  The same change would be needed everywhere that links to
Template:SanitiseBoolean.

Template:Note mixes numbered and named parameters, but it's copied straight
from MediaWiki[0].  Changing that would probably confuse people coming here
from other wikis.

> Is it a case of optimising for ease of conversion? Do I risk breaking the
> conversion if I change them?

I guess conversion is marginally easier with named parameters.  For example,
`#pragma keywords blah` converts neatly to `{{DebianHeader|Keywords=blah}}`.
But if everyone decided some template must be done one way, and the converter
really needed it to be done another way, it would be easy enough to create a
{{MoinMarkup/IntermediateTemplate}} that called through to the proper one :)

> > = Template:Note and Template:Note/styles.css =
> > 
> > These seem to have been copied from MediaWiki's Template:Note[3],
> > but they don't work properly.
> 
> Template:Note requires the TemplateStyles [ts] extension, which is not
> installed. The same applies to Template:MoinMarkup/Admonition and
> Template:DebianHeader, since they use it.
> I could edit Template:Note to use inline CSS, but adding the extension would
> make the code easier to maintain.
> 
> [ts] https://www.mediawiki.org/wiki/Extension:TemplateStyles

This seems like a good test case for a problem we'll face often in the coming
months.  I've just asked on #debian-wiki, and will report back here if the
conversation happens over there.

[0] https://www.mediawiki.org/wiki/Template:Note

Reply via email to