Template talk:User Ten Year Society

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia
WikiProject iconUserboxes
WikiProject iconTemplate:User Ten Year Society is part of WikiProject Userboxes. This means that the WikiProject has identified it as part of the userboxes system. WikiProject Userboxes itself is an attempt to improve, grow and standardize Wikipedia's articles and templates related to the userbox system, used on many users' pages. We need all your help, so join in today!

"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
(21 years, 7 months, and 23 days).


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)SportsFan007[reply]

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)SportsFan007[reply]
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]