Category:Pages with too many template arguments
Jump to navigation
Jump to search
Index of all categories | Random category | ||||||||||||||||||||||||||
! | 0-9 | A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z |
This category is a maintenance category. It may remain empty for many months, but that's a good thing. |
Manually-created tracking category with no apparent MediaWiki backing in Special:TrackingCategories.
Suppose you are writing Template:Example to accept up to three arguments.[note 1] To detect pages that pass a fourth argument to Template:Example, test for the fourth argument by including code like this in the template:
{{#if:{{{4}}}|[[Category:Pages with too many template arguments]]}}
By showing up here, users don't have to see error messages.[note 2] Instead, the calling page is included in this category, which is visible at the bottom of the page. If a bunch of pages show up here, all from the same template, consider extending the template to accept more arguments.
- ↑ At the risk of oversimplifying: arguments are data passed in to a function; parameters are what the function has been defined to accept.
- ↑ Displaying something like
<span class="error">Parameter count has been exceeded</span>
is still code-correct wherever users would be confused. If the template displays images, and the last image isn't showing up, an error message would be beneficial.
This category currently contains no pages or media.