Jump to content

Category talk:Wikipedia template parameter issues

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia

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]

Mr. Stradivarius, I've created subcategory trees Template parameter issues by task and Template parameter issues by topic in 2022, without knowing about this discussion. I invite you to join a recent discussion at Category talk:Wikipedia template tracking categories#Subcat naming. —⁠andrybak (talk) 13:47, 13 July 2024 (UTC)[reply]