Category talk:Wikipedia template parameter issues

Latest comment: 6 years ago by TASCIIAC in topic To do

To do

edit

Deletion

edit

Nominate for deletion any categories that are no longer used. Currently pending confirmation:

Standardization

edit

Documentation

edit

All categories should list at minimum:

  • Which template(s) put articles in it
  • Why articles are placed there
  • If the articles there should be fixed (or if they are just being tracked)
  • How to fix listed articles (if needed)
  • Which bots (if any) patrol the category

Expansion

edit
  • All templates should check if they were passed any extra unnamed parameters they don't need.
  • For a template that takes no unnamed parameters:
{{#if: {{{1|}}} | [[Category:Articles using extra parameters]]}}
  • For a template that takes 2 unnamed parameters:
{{#if: {{{3|}}} | [[Category:Articles using extra parameters]]}}
  • Templates accepting date parameters should:
  • Verify day is between 1 and 31 inclusive
{{#ifexpr: {{{day}}} > 0 and {{{day}}} < 32 | | [[Category:Articles with invalid day parameter]]}}
  • Verify month is between 1 and 12 inclusive
{{#ifexpr: {{{month}}} > 0 and {{{month}}} < 13 | | [[Category:Articles with invalid month parameter]]}}
  • Verify year is sane. For example, a template tracking last access date of websites could use:
{{#ifexpr: {{{year}}} > 1990 and {{{year}}} <= {{CURRENTYEAR}} | | [[Category:Articles with invalid year parameter]]}}
  • When a template parameter is depreciated, any articles using the old parameter should be flagged
{{#if: {{{depreciated|}}} | [[Category:Articles using depreciated parameters]]}}
  • Every #switch should have a default
{{#switch: {{{importance}}}
| high = [[Category:High-importance articles]]
| low = [[Category:Low-importance articles]]
| [[Category:Articles with invalid importance]]
}}
  • If a template should only be used in a particular namespace it should check where it is being used
{{#ifeq: {{NAMESPACE}} | Category | | [[Category:Category templates used outside categories]]}}

samsubit TASCIIAC (talk) 08:00, 21 August 2017 (UTC)Reply

Spelling

edit

Shouldn't "depreciated" be "deprecated"? ~ MD Otley (talk) 09:33, 30 November 2013 (UTC)Reply

sbitpelling TASCIIAC (talk) 07:59, 21 August 2017 (UTC)Reply

Diffuse subcategories?

edit

This category has developed an awful lot of subcategories, and is looking pretty unstructured at the moment. How about splitting it up into parameter issues of different types? I'm thinking of:

I'd love to hear people's thoughts on this. Feel free to suggest different schemes and names, etc. — Mr. Stradivarius ♪ talk ♪ 12:58, 17 December 2014 (UTC)Reply