Jump to content

Module talk:Check for unknown parameters

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by DePiep (talk | contribs) at 08:04, 25 March 2014 (Created page with '==Just some ideas== Great and useful. Here are some earlier thoughts. The parameter '''whitelist''' could be a module:Check parameters/data/Template:Foo pag...'). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)

Just some ideas

Great and useful. Here are some earlier thoughts.

The parameter whitelist could be a module:Check parameters/data/Template:Foo page for the Draft:Tlno template. With that whitelist, some extra options are possible:

  • Unnamed (positional) parameters could be defined white or black
  • Per parameter, an "accept blank input yes/no" switch can be added.
  • Per parameter, a more special value check could be performed (numeric, pattern, listcheck).
  • Big-issue parameters (black/white) or special interest parameters could have their own category or their own catsort letter.
  • Category name automated? Parent cat available (using template name, by "parameter check module" name?
  • We could add a maintenance tag to the pages, demo Draft:Tlno:
Lorem {{do something|latincehck=ipsum}} foo. → Lorem ipsum[unknown parameter] foo. Currently in {{convert}}: 12 kilometres ([convert: unknown unit]).
  • Note: As always, categorising a wikilabel works out bad. Say the template is used in the {do something} template, which is used like this:
[[Mercury (element)|{{do something|Mercury}}]]. When the category name is expanded into the page including a category name, it shows like this in the article: [[Mercury (element)Mercury blabla foobar]]. The template should have a "|parametercheck this instance=no option (the offended page must be edited for this).
  • Options for (easy) ns differentiation please.

-DePiep (talk) 08:04, 25 March 2014 (UTC)[reply]