Template talk:User Ten Year Society

Latest comment: 5 years ago by Dan Harkless in topic Alternate Ten Year Society userbox

"Expression error: Unexpected < operator days" in a specific context

edit

When trying out the following code on my user page:{{User Ten Year Society|year=2002|month=9|day=30|whitespace=&thinsp;}} renders as:

 This user has been editing Wikipedia for more than ten years
(22 years and 1 month).


I get Expression error: Unexpected < operator days). Dan Koehl (talk) 22:47, 6 November 2017 (UTC)Reply

@Dan Koehl: Hi, Dan. Sorry to hear the template is giving you problems. The rendering on this page doesn't show the error you're talking about. Can you make a sandbox page under your main user page that shows the error, and link to it here so I can take a look? It would seem the error only occurs in the particular context you're using the template in. --Dan Harkless (talk) 13:36, 18 February 2019 (UTC)Reply

Alternate Ten Year Society userbox

edit

Here's an alternate version of the userbox.

Code Result
{{Template:User Ten Year Society/alternate}}
 This user has been editing Wikipedia for more than ten years.
Usage

SportsFan007 (talk) 08:45, 8 March 2019 (UTC)SportsFan007Reply

Thanks, this is an appropriate place to mention your customized userbox. Calling your alternate version with hardcoded changes "2.0" is a little misleading, though. If, in the future, you want to add optional parameters to the main template that cause it to display the way you want, when specified, but leave the display unchanged when left off, you're welcome to do so. However, please get it working on this /alternate version before starting to hammer away on the main version. Also, note that when you originally overwrote the main version with your changes,[1] it was displaying your new borders inconsistently (the extra whitespace you added doesn't show up on the first two userbox examples on the page), so that's something you would want to fix before porting your changes to parameters. --Dan Harkless (talk) 09:42, 8 March 2019 (UTC)Reply
@Dan Harkless: How is it hardcoded? SportsFan007 (talk) 09:46, 8 March 2019 (UTC)SportsFan007Reply
Hardcoded in the programming sense. Just a reference to the fact that your changes to the original display are not controlled by template parameters, but are permanently coded into your alternate version. Not a problem, just an explanation why I felt calling it "2.0" was misleading. I have taken the liberty of retitling your section to "Alternate Ten Year Society userbox" with this edit. --Dan Harkless (talk) 09:56, 8 March 2019 (UTC)Reply