Open main menu

Changes

221 bytes added ,  11:29, 20 July 2014
m
added information
<br>
== Testing a new template<br> ==
Hi Steve, <br>The following template ([[Template:Auto-outdated|Template:Auto-outdated]]) is operational but I would appreciate it if you could look it over to see if I did anything significantly wrong or if you would have any suggestions of ways to improve it. With all the discussions about the wiki becoming outdated (and all the outdated pages I have come across) I thought something like this might help. I know there is a maintenance template to mark outdated articles but this is a slightly different approach to keep them from becoming outdated in the first place. Is anything like this currently available?
Concerning the coding itself, there is a limitation with the parser calculations in that an error output is generated if the time span is two years or more. The one year limitation could be overcome by using the “AgeParse” function but that is not available with the current MediaWiki version and I am not sure if it will be added to the new version. This limitation (which can be overcome by expanding the code a little more) may be a mute point anyway because periods greater than 1 year would be of minimal usefulness.
I was also thinking about whether it would be useful to have the option of specifying specific subcategories as a parameter so that a user could monitor “their own” area for articles they are interested in or are responsible for (just a thought at this time).
Other questions:* I am also not sure where (or if) to include {{tl|StripWhiteSpace}} to remove spaces inadvertently included in unnamed parameters (based on the red color it appears not to be available in this version).* If the use of {{tl|!}} is necessary in the coding in place of the bar.* How to limit unacceptable parameters (zero and negative numbers) from being entered. I did not get the expected “switch” change over when the parameter was set to 0 (zero) or a negative number.
*I am also not sure where (or if) to include {{tl|StripWhiteSpace}} to remove spaces inadvertently included in unnamed parameters (based on the red color it appears not to be available in this version). *If the use of {{tl|!}} is necessary in the coding in place of the bar. *How to limit unacceptable parameters (zero and negative numbers) from being entered. I did not get the expected “switch” change over when the parameter was set to 0 (zero) or a negative number. Thanks for your patience as I am still learning. Luccagenes 06:33, 20 July 2014 (UTC)<br><br> I have just added to the coding to expand the one year limit to two years (1 to 730 days) although for all practical purposes the recommended range would still be 1 to 365 days. Luccagenes 17:29, 20 July 2014 (UTC)
Moderator, Reviewer, editor, pagecreator
3,970

edits