Loading AI tools
From Wikipedia, the free encyclopedia
This is an archive of past discussions. Do not edit the contents of this page. If you wish to start a new discussion or revive an old one, please do so on the current talk page. |
Archive 1 |
Could you explain how are the parameters 5 and 14 used ? -- ( drini's vandalproof page ☎ ) 03:54, 1 December 2005 (UTC)
based on a suggestion at WP:VP. ++Lar: t/c 05:22, 2 January 2006 (UTC)
The first line should be changed to
<div style="float: left; border: {{{border-s|1}}}px solid {{{1|{{{border-c|{{{id-c|#999999}}}}}}}}}; margin: 1px;">
per the other userbox templates. —Andux 03:02, 5 February 2006 (UTC)
I propose that we eliminate the deprecated parameters entirely, and rename the parameters to be more user-friendly. The current and proposed syntax are below; the parameters were arbitrarily renamed in a manner I think makes their function obvious without any need for referencing. Any part of this proposal could of course be tweaked per discussion. If this change is accepted, the new parameters could be added without removing the old, and all instances of the template semi-automatically updated with regex and the AutoWikiBrowser. All deprecated parameters could then be removed.
Current syntax:
{{subst:Userbox |id = |id-c = |id-fc = |id-s = |info = |info-c = |info-fc = |info-s = |border-c = |border-s = <!-- deprecated but still present --> |color 1 = |color 2 = |id = |info = |id size = }}
Proposed syntax:
{{Userbox | l-content = | l-background = | l-font-color = | l-font-size = | r-content = | r-font-color = | r-font-size = | box-background = | border-width = }}
// Pathoschild (admin / talk) 10:14, 25 February 2006 (UTC)
{{Userbox | s-content = | s-background = | s-font-color = | s-font-size = | w-content = | w-font-color = | w-font-size = | box-background = | border-width = }}// Pathoschild (admin / talk) 14:21, 25 February 2006 (UTC)
{{{1|{{{border-color|{{{border-c|{{{id-c|#999999}}}}}}}}}}}}
instead of {{{border-color|#999}}}
. // Pathoschild (admin / talk) 14:47, 25 February 2006 (UTC)I've added the following new parameters, and created {{user box}} as a redirect. Templates using the new syntax will use that redirect, so that we (or I) can use whatlinkshere to slowly deprecate older syntax.
{{user box | border-width = | border-color = | logo-background = | logo-size = | logo-color = | logo = | info-background = | info-size = | info-color = | info = }}
// Pathoschild (admin / talk) 09:55, 27 February 2006 (UTC).
Proposing/Requesting to add few more parameters : like "logo-line-space" or "logo-line-height" or "logo-line-gap" or "logo-line-gapspace", etc, and a similar one starting with "info-..." for the information side, so that we can specify CSS properties and values, like style="line-height: X em;", this is very important, as this helps to reduce the space in between the text lines, thus reducing the overall userbox's height to the recommended 45px userbox height. If the height of the userbox remains same (45px) then it is easier to place them horizontally with the sequence they were placed in, otherwise, different userbox with different height is placed by the web browser at different places with un-wanted sequence. Also requesting to add another parameter, something like, logo-cellpadding, or, logo-padding, or, logo-padspace, etc, so that we can specify CSS properties like, style="padding:4px;" (for all side padding), or, style="padding:2px 3px 2px 3px;" (for top-right-bottom-left side, different amount of padding). Those two types of parameters will help greatly customizing the userbox, while maintaining organized. For an example, please also see the Template:User Multi, what i had to do to reduce its height to 45px. I also tried to lower the userbox height in the Template:User you and me, but failed to bring it down to 45px height, unless the source code is further adopted. Thanks. ~Tarikash 06:22, 18 August 2006 (UTC).
Bug solved. Gecko/Mozilla browser displays the userbox, (which is actually a "table" wrapped around "div"), with 45px height +(plus) 2px extra for the top and bottom 1px border of div, so total becomes 47px, (with other params at default). Which is nice, good and right way. But Trident/Internet Explorer type of browser displays it different, 2px of the overall height comes from the div's top 1px & bottom 1px borders) and 44px (for the table) = so total is 46px. But, if the cell padding is set at 1px, then the browser/client/user-agent renders the userbox correctly, 2px (div's border) + 45px (table) = total is 47px, (half width of border and half of padding, makes up for "One"). You may see the box model for HTML/CSS, for more accurate analysis. There is also height discrepancy among the userboxes, which are created used with this userbox template, and which are created by calling a template containing the div-table combination, specially in the case of Trident/Internet Explorer type of browsers. Userboxes created with this template was being displayed 1px less than the other one. If padding is set at 1px then, it solves that problem, by removing the inherited 0px padding width, and keeps the userboxes similar across different browsers. --Tarikash 03:32, 15 January 2007 (UTC).
This should be recategorized to go with the rest of the userbox templates. I was able to recat all the others. It should be categorized under Category:User templates|* Userbox so it's sorted at the top of the category. – Someguy0830 (Talk | contribs) 20:29, 3 May 2006 (UTC)
Please, would it be possible to add eu:Txantiloi:Taulatxo oinarria interwiki? Thanks.--Berria 18:55, 3 July 2006 (UTC)
I would like to suggest that Category:User templates be used instead of the current category. That seems to be the proper place for these generic templates. —Shayltalk 06:42, 4 July 2006 (UTC)
Please change the category this is in from Category:Wikipedia userboxes to Category:Userbox templates. —Mira 01:02, 26 August 2006 (UTC)
How do you use this thing properly together with other formatting? I tried tweaking it to my settings at my user page, and the width settings seem to have gone haywire. Can someone help me out here? Thanks. --Terrancommander 15:36, 8 July 2006 (UTC)
Is there a list posted somewhere of all (or most) of the current Userboxes? Thanks. --Schmendrick 18:32, 10 August 2006 (UTC)
--Meno25 14:58, 26 November 2006 (UTC)
I recently unprotected this template as "unprotected" is the de facto state of affairs per Wikipedia:Protection_policy: "used in limited circumstances as protected pages are considered harmful." Further Wikipedia:High-risk templates does not spell out which templates are "high risk." This particular template does not appear on any articles and does not affect any "mission critical" systems. Unless some very compelling arguments are made, it should be unprotected.
brenneman 10:47, 19 December 2006 (UTC)
I created a new template at {{userbox-simple}}, which uses just 5 numbered parameters for simplicity. Λυδαcιτγ 23:01, 23 January 2007 (UTC)
Please, add sl:Predloga:Uporabniško polje. Thanks. --Eleassar my talk 12:10, 6 March 2007 (UTC)
{{{id-op}}} and {{{info-op}}} should be changed to {{{id-op|}}} and {{{info-op|}}} so it will default to nothing. Otherwise {{{id-op}}} and {{{info-op}}} will be placed inside the style attribute if they're not set and Opera ends up ignoring the whole style attribute. --12.207.48.223 10:37, 13 March 2007 (UTC)
Thanks --12.207.48.223 18:05, 14 March 2007 (UTC)
{{editprotected}}
Is there some way we can get the link colours to change? I want a userbox with a dark blue background, and a link of a paler colour. Can it be done?
-- TimNelson 13:29, 23 March 2007 (UTC)
info=This box contains a [[Wikipedia:About|<span style='color:yellow'>yellow link</span>]]
This box contains a yellow link |
Please, add ru:Шаблон:Userbox. ~ kintup 20:26, 22 July 2007 (UTC)
Hello. Could someone add a interwiki to hsb:Předłoha:Userbox, please? Thanks and greetings --Tlustulimu 12:03, 1 August 2007 (UTC)
Please implement id-fs and info-fs (for font-size) parameters that output "%" after the number given instead of "pt"; we should not be doing things in point-sizes, since this will make userboxes look completely ridiculous when people set their default font size larger or smaller than is common. They should then be documented and the old id-s and info-s parameters either marked with 'Deprecated: Use id-fs instead. (and info-fs for the other one of course), or simply remove any mention of them from the documentation. — SMcCandlish [talk] [cont] ‹(-¿-)› 18:41, 30 December 2007 (UTC)
{{editprotected}}
For {{user infobox}}, I need to allow infoboxes to keep their central valign attribute. As this is the default for tables, it isn't specified in this template; but this means it gets overridden by the forced top alignment for .infobox td in common.css.
The following changes are needed:
{{{logo-other-param|{{{id-op|}}}}}}" |
to
{{{logo-other-param|{{{id-op|}}}}}}; vertical-align: center" |
and
{{{info-other-param|{{{info-op|}}}}}}" |
to
{{{info-other-param|{{{info-op|}}}}}}; vertical-align: center" |
Chris Cunningham (not at work) - talk 11:19, 12 March 2008 (UTC)
Please remove the bolding of the id. A lot of templates have more than just one or two characters in that field. If the creator wants it bold, then the creator can bold the text. - LA @ 15:24, 14 March 2008 (UTC)
How would i go about changing the hyperlink colour at templates such as Wikipedia:WikiProject Silver Dollar City/Userbox, Because the blue on blue is really hard to see. Thanks in advance Peachey88 (Talk Page | Contribs) 08:30, 29 March 2008 (UTC)
Sysops, please help me! In the template, I need you to write [[Category:Wikipedians that use userboxes]] that will open up a wole new category. Nothing444 21:40, 5 April 2008 (UTC)
Since this template is used a lot within tables, and floating DIVs don't mix very well with tables, I'd rather do away with the DIV all togeter. I see a lot of problems userboxed and I believe removing it (and moving the styling to the table) will fix a lot of problems, especially when used in conjuction with {{Infobox user}}. Thoughts? — Edokter • Talk • 15:06, 3 September 2008 (UTC)
Shouldn't the padding be 1px, given that logos are supposed to be 43x43px within a 45x45px cell? Padding in units of pt only makes sense for the info cell. --Charles Brooking (talk) 12:03, 5 September 2008 (UTC)
I tired changing an existing userbox, Template:User_Brisbane, to use this template and encountered something bizarre: setting id-p = 0 and including an image with width 45px as the logo caused the id cell to actually be smaller than the image! This happens in Firefox 2 and 3 at least.
Compare these:
Looking at the resulting HTML, I can't see what the problem lies. Anyone got better eyes?
Charles Brooking (talk) 15:20, 5 September 2008 (UTC)
Are we supposed to subst this template or not? I wouldn't have thought so, but the documentation seems to suggest otherwise. PC78 (talk) 22:10, 11 January 2009 (UTC)
When I list userboxes in a wikitable, I get a border even if border-s=0
; for example:
--—— Gadget850 (Ed) talk - 14:31, 14 January 2009 (UTC)
.wikitable > * > tr > td
) doesn't work in IE6. I suppose someone could make an editprotected request for this template to specifically override that with inline styles, but I'd first ask "Why do you want a userbox in a wikitable, anyway?" Anomie⚔ 22:53, 14 January 2009 (UTC)Can we change
style="float:{{{float|left}}};
to
style="float:{{{float|{{{side-lr|5}}}}}};
Where "side-lr" will be the parameter deciding whether the infobox will stick to the left or right margin.
I'm not sure this will work, since I am not a template builder, but I'm sure somebody else is. Debresser (talk) 02:05, 19 May 2009 (UTC)
|float=
does exactly what you want:{{userbox}}{{userbox|float=right}}
{{{info}}} |
{{{info}}} |
{{userbox|float=center}}
{{{info}}} |
Could somebody fix this, please? Afterwards, I would recommend updating the documentation page with the "float" parameter. Debresser (talk) 02:55, 19 May 2009 (UTC)
style="float:5;"
is supposed to do, but "float:5" won't do anything. Also, there is no "center" in float; it is not a valid value in CSS. — Edokter • Talk • 22:03, 19 May 2009 (UTC)
If the usercategory parameter isn't supplied, the template outputs [[Category:{{{usercategory}}}|...]]. Please add some exception handling, e.g.:
{{#if:{{{usercategory|}}}|[[Category:{{{usercategory}}}|{{PAGENAME}}]]}}
I've got a small problem. Even though the usage is defined, I seriously can't make heads or tails of it.--Launchballer (talk) 08:33, 2 August 2009 (UTC)
{{editprotected}} Could the sandbox version be copied over to live. I've added some code to make the usercategory & usercategory2 parameters that were recently added also work on template pages. Thanks. -- WOSlinker (talk) 19:04, 29 August 2009 (UTC)
This seems like an odd request. The usercategory parameters should only be active on user pages, IMO. PC78 (talk) 16:39, 4 October 2009 (UTC)
Could someone make the ID cell optional via |noid=
or similar? I'd look into it myself, but I'm feeling a bit out of it today and wouldn't trust myself to wade through such dense wikimarkup right now. =P 「ダイノガイ千?!」? · Talk⇒Dinoguy1000 19:26, 11 September 2009 (UTC)
There seems to be an odd bug when using Userboxes in tables. I first noticed it on UESPWiki and have just confirmed that it's an issue here as well. Another editor there said it was a common problem with Userboxes in tables, but I figure somebody here must have some insight into it, or hopefully a solution to the problem. Please see the table below for the problem (Row 2), as well as a workaround (Row 3). Row 1 is there with a dummy template entry simply to show that the problem is not with having a template before the vertical bars.
{{Why}}||test | [why?] | test | |
{{Userbox|info=test}}||test |
| test | |
{{Userbox|info=test}} |
|
test |
Any thoughts? Or if this is a well-known problem, can someone please point me to the explanation? Thanks! —RobinHood70 (talk • contribs) 06:45, 18 October 2009 (UTC)
| ||
|
test |
{{Userbox|info=test}} |
|
PC78 (talk) 19:40, 18 October 2009 (UTC)
<div>
tag and the table start) from the entire template, and you can then use it in tables quite successfully. It's easy enough to implement it if we want to, but I don't know if there's any pressing need to do so. —RobinHood70 (talk • contribs) 04:17, 5 August 2010 (UTC)I believe that the box is to high and should be back to its originale. --Mr. Unknown (talk) 21:10, 5 November 2009 (UTC)
{{editprotected}}
Can vertical-align: middle be removed from the template (see sandbox for version without) as it doesn't serve any purpose and it's also stopping me from converting {{User Signpost-subscription}} to use userbox. Thanks -- WOSlinker (talk) 19:33, 26 November 2009 (UTC)
vertical-align: middle
resets that property. However, you can override it by using the id-op
and info-op
parameters to pass your own CSS. — Edokter • Talk • 21:20, 26 November 2009 (UTC)How can I get a shorter box. I see no fields that would allow me to change the width of the total box. thankx GloverEpp (talk) 21:04, 2 December 2009 (UTC)
{{editprotected}} Many of the userboxes have code like this:
<includeonly>{{#ifeq:{{{categories}}}|no||[[Category:Wikipedians who whatever|{{PAGENAME}}]]}}</includeonly>
So that people can add userboxes but opt-out of the categories by using "categories=no" Can this logic be added to this template?—Chowbok ☠ 09:54, 30 December 2009 (UTC)
nocat
option that it has. —TheDJ (talk • contribs) 11:29, 30 December 2009 (UTC)
Is there any way of having a default documentation that cascades down to individual userboxes that explains how to use nocat=true
? It isn't particularly newbie-friendly. —Tom Morris 13:08, 14 January 2011 (UTC)
{{editprotected}}
Can the sandbox version be copied over which adds a usercategory3 option. Thanks -- WOSlinker (talk) 16:39, 13 February 2010 (UTC)
{{editprotected}} Could all case of {{PAGENAME}} be replaces with {{BASEPAGENAME}} so that the categories list users rather than user subpages? Thanks. Set Sail For The Seven Seas 214° 4' 0" NET 14:16, 13 March 2010 (UTC)
Why is the recommended size 45px? The default size is bigger that. Most userboxes use the default size, including the language ones.
foo logo | We have specified values to lessen the distance in between text lines & padding space in between cell content and its border. |
en | This user is a native speaker of the English language. |
fr | Cet utilisateur a pour langue maternelle le français. |
This user enjoys ska. |
This user enjoys punk rock. |
The first is the example used on the template page with a recommended height of 45px. The others are a random assortment of userboxes with a standard default height of bigger than 45px. McLerristarr (Mclay1) (talk) 14:47, 20 May 2010 (UTC)
{{editprotected}}
Please change:
class="wikipediauserbox"
to:
class="wikipediauserbox {{{bodyclass|}}}"
to facilitate the use of a class on the whole template, like on {{Infobox}} and {{Navbox}}. Andy Mabbett (User:Pigsonthewing); Andy's talk; Andy's edits 11:01, 8 June 2010 (UTC)
<div />
) tag. Andy Mabbett (User:Pigsonthewing); Andy's talk; Andy's edits 10:02, 9 June 2010 (UTC)
One more, please: On reflection, I've added |info-class=
, to add a similar class attribute to the |info=
field, in this sandbox edit. Andy Mabbett (User:Pigsonthewing); Andy's talk; Andy's edits 15:12, 10 June 2010 (UTC)
{
, now added and tested (as I should have done first time) in the /testcases page. Andy Mabbett (User:Pigsonthewing); Andy's talk; Andy's edits 15:55, 10 June 2010 (UTC)
{{editprotected}}
In the template, there exists the construct {{{info|{{{4|{{{info|''info''}}}}}}}}}
. Is there some use I'm unaware of for the info parameter being used both before and after the unnamed parameter there, or should that be simplified to just {{{info|{{{4|''info''}}}}}}
? —RobinHood70 (talk • contribs) 19:01, 2 August 2010 (UTC)
{{{info|{{{4|{{{info|''info''}}}}}}}}}
{{{info|{{{4|''info''}}}}}}
As one might expect, Internet Explorer 8.0 and Firefox 3.6.8 have different interpretations of the default settings for Template:Userbox. If id-p is set to 0 and border-s, id-h, and info-p default to 1, 45, 4px and respectively, Firefox will create a userbox 47 pixels in height unless id or info require more height. With the same settings, Internet Explorer creates a userbox 55 pixels high. Internet Explorer adds vertical space for twice the value of info-p whether info requires this height or not. This can be overcome by setting info-p to 0, but this defeats the purpose of padding. Comments? Yours aye, Buaidh (talk) 19:58, 4 August 2010 (UTC)
In some browsers, this box is 55px tall. |
id | This box is 47px across all browsers. |
I have yet to find a way to make all these browsers create similar userboxes other than setting both id-p and info-p to zero. --Buaidh (talk) 16:09, 10 August 2010 (UTC)
{{editprotected}}
Whereas, popular web browsers currently in use (Windows Internet Explorer 8.0, Google Chrome 5, Safari 5, Mozilla Firefox 3.6.8, and Opera 10.61) interpret CSS padding quite differently, and
Whereas, the default padding values (1px and 4px) for Template:Userbox may cause userboxes to appear quite differently in the various browsers (as shown above), and
Whereas, it is highly desirable to have userboxes of uniform external dimensions, therefore
I request that the default values for id-p and info-p be set to 0 in Template:Userbox Yours aye, Buaidh ([[User --Buaidh (talk) 20:33, 19 August 2010 (UTC)talk:Buaidh|talk]]) 20:02, 13 August 2010 (UTC)
Centering info is just a suggestion. See below:
This is how Template:Userbox looks now on Internet Explorer. |
This is how Template:Userbox looks now on Mozilla Firefox. |
This is how Template:Userbox looks with id-p=0 and info-p=0 on all browsers. |
This is how Template:Userbox looks with id-p=0 and info-p=0 on all browsers. |
This is how Template:Userbox looks with id-p=0, info-p=0, and text-align:center on all browsers. |
This is how Template:Userbox looks with id-p=0, info-p=0, and text-align:center on all browsers. |
Alternatively, a user can easily center text with either info-op=text-align:center or <center></center>. (Two new parameters: id-a and info-a =left/center/right would make it even simpler.) Yours aye, Buaidh (talk) 16:28, 17 August 2010 (UTC)
As best as we can determine, Windows Internet Explorer 8.0, Google Chrome 5, and Safari 5 set the height of Template:Userbox to:
Height(Template:Userbox) = Maximum(Maximum(Height(id),id-h)+(2*id-p),Height(info)+(2*info-p))+(2*border-s)
While Mozilla Firefox 3.6.8 and Opera 10.61 set the height of Template:Userbox to:
Height(Template:Userbox) = Maximum(Height(id)+(2*id-p),Height(info)+(2*info-p),id-h+(2*id-p))+(2*border-s)
This means that the default settings for Template:Userbox produce a box 55 pixels high on IE, Chrome, and Safari, but 47 pixels high on Firefox and Opera. We have yet to find a direct solution for this problem.
The following work-around has been proposed. Change the default value of id-p from 1px to 0 and the default value of info-p from 4px to 0. This will eliminate default padding of id and info, but will make the default height of Template:Userbox 47 pixels on all browsers (see above.) Yours aye, Buaidh (talk) 14:08, 18 August 2010 (UTC)
A default userbox with text stands 55 pixels high on Internet Explorer. |
A default userbox with text stands 47 pixels high on Mozilla Firefox. |
With id-p=0 1px 0 0 and info-p=0 4px 0 4px, proposed userbox with text stands 47 pixels high on all browsers. |
Proposed userbox with text and id-c=black and id-fc=white. |
ERROR NOTICE: The userbox height calculation shown above for IE, Chrome, and Safari is in error. I am continuing to research this anomaly. This should not affect the decision to update {{{id-p|0 1px 0 0}}} and {{{info-p|0 4px 0 4px}}}. --Buaidh (talk) 17:52, 19 August 2010 (UTC)
After some further investigation, I've determined that the height of Template:Userbox on Internet Explorer is:
Height(Template:Userbox) = Maximum(Height(id)+(2*id-p),Height(info)+(2*info-p),id-h+(2*id-p),id-h+(2*info-p))+(2*border-s)
The height of Template:Userbox on Mozilla Firefox is:
Height(Template:Userbox) = Maximum(Height(id)+(2*id-p),Height(info)+(2*info-p),id-h+(2*id-p))+(2*border-s)
We should proceed with the update to {{{id-p|0 1px 0 0}}} and {{{info-p|0 4px 0 4px}}}. --Buaidh (talk) 20:33, 19 August 2010 (UTC)
|
{{Edit protected}} I request that two horizontal text alignment parameters, id-a and info-a, be added to Template:Userbox. The four allowable values for id-a and info-a shall be left, center, right, and justify. The only code changes required are:
Rationale: This update will not change any functionality of this template, but it will allow novice users to align text and images more intuitively. Users can currently align text with the id-op and info-op parameters or a <center></center> markup. Parameters id-op and info-op do require familiarity with CSS and an examination of the template code. The proposed parameters id-a and info-a will only require a declaration of left/center/right/justify to horizontally align id and info. Parameters id-op and info-op can continue to be used for more complex CSS properties. --Buaidh (talk) 19:18, 30 August 2010 (UTC)
{{editprotected}}
hi, please move {{pp-template|small=yes}} to documentation. (same Navbox, Infobox), thanks.--ebraminiotalk 11:29, 1 October 2010 (UTC)
This thread is specific to the userbox listed on Wikipedia:CAMPUS#Getting_involved. I am confused as to why the userbox isn't linking to the Campus Ambassador wikilink. It displays normally on userpages. Is this part of the userbox code to not display wikilinks in a userbox on a non-userpage? Thanks. Basket of Puppies 19:15, 18 January 2011 (UTC)
{{edit protected}}
please add ar:قالب:مستخدم
Rafy talk 16:57, 14 February 2011 (UTC)
Is it possible that there is an extra </div> tag. Different UBXs keep closing some divs i have used in the past so I had to remove them (good example can be found at this revision of WormTT's talk page the extra </div> closes the background.) Thanks, Adwiii Talk 21:18, 28 April 2011 (UTC)
Would it be possible for id-s and info-s to recognize CSS keyword sizes and not append "pt" to the (supposed) number if it is one of them? Or only append "pt" if the value is, in fact, a number? For that matter, could we assign id-s=x-large
and info-s=small
default values? Setting font sizes on the web in terms of absolute units is widely considered bad practice. I don't understand why it's being done here. ⇔ ChristTrekker 20:16, 28 June 2011 (UTC)
I've added support for the flat userbox style to the sandbox by passing in small=yes
. If people think this is useful then I'll merge that template here; it's not used much, but the few editors who use it seem to find it attractive, and it's a great deal more compact than the default userbox style (much closer to those little Silkscreen buttons which were so popular on the Web about ten years ago). Support itself is trivial. Chris Cunningham (user:thumperward) - talk 07:35, 6 September 2011 (UTC)
What are the dimensions of the default userbox?
by Xsanda (visit my talk page) 17:47, 16 September 2011 (UTC)
Please add the link to winaray wikipedia. Thanks, --Agantacroxi (talk) 18:05, 27 September 2011 (UTC)
The "tweaking" of userbox dimensions has altered a number of userbox templates that invoke Template:Userbox. Please let us know explicitly what is going on.
In a related matter, userboxes that use the default height and width and default border width of 1 pixel can be neatly stacked. The inclusion of a single userbox with a broader border disrupts this stacking. Perhaps we should adjust the internal box dimensions to compensate for border width and keep the external dimensions constant. See below.
This user is a native of Afghanistan. |
This user is a native of Albania. |
This user is a native of Algeria. |
This user is a native of American Samoa. |
This user is a native of Andorra. |
This user is a native of Angola. |
This user is a native of Anguilla. |
This user is a native of Antigua and Barbuda. |
This user is a native of Argentina. |
This user is a native of Armenia. |
This user is a native of Australia. |
This user is a native of Austria. |
This user is a native of Azerbaijan. |
This user is a native of the Bahamas. |
This user is a native of Bahrain. |
This user is a native of Bangladesh. |
This user is a native of Barbados |
This user is a native of Belarus. |
This user is a native of Belgium. |
This user is a native of Belize. |
This user is a native of Benin. |
This user is a native of Bermuda. |
This user is a native of Bhutan. |
This user is a native of Bolivia. |
This user is a native of Bosnia and Herzegovina. |
This user is a native of Botswana. |
This user is a native of Brazil. |
This user is a native of the British Indian Ocean Territory. |
This user is a native of the British Virgin Islands. |
This user is a native of Brunei. |
This user is a native of Burkina Faso. |
This user is a native of Myanmar. |
This user is a native of Burundi. |
This user is a native of Cambodia. |
This user is a native of Cameroon. |
This user is a native of Canada. |
This user is a native of Cape Verde. |
This user is a native of the Cayman Islands. |
This user is a native of the Central African Republic. |
This user is a native of Chad. |
This user is a native of Chile. |
This user is a native of China. |
This user is a native of Christmas Island. |
This user is a native of the Cocos (Keeling) Islands. |
This user is a native of Colombia. |
This user is a native of the Comoros. |
This user is a native of the Cook Islands. |
This user is a native of Costa Rica. |
Yours aye, Buaidh 18:50, 23 January 2012 (UTC)
I updated{{Userbox/sandbox}} to use CSS instead of the now-obsolete cellspacing
attribute. If someone want to check me... ---— Gadget850 (Ed) talk 22:27, 22 September 2012 (UTC)
Tweaking the userbox dimensions has again screwed up hundreds of userboxes. I hope we are about done. Buaidh 15:35, 17 April 2013 (UTC)
This edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Please modify:
<div style="float:{{{float|left}}}; border:{{{border-width|{{{border-s|1}}}}}}px solid {{{border-color|{{{1|{{{border-c|{{{id-c|#999}}}}}}}}}}}}; margin:1px; width:238px;" class="wikipediauserbox {{{bodyclass|}}}">
To:
<div style="float:{{{float|left}}}; border:{{{border-width|{{{border-s|1}}}}}}px solid {{{border-color|{{{1|{{{border-c|{{{id-c|#999}}}}}}}}}}}}; margin:1px; width:{{#expr:239-{{{border-width|{{{border-s|1}}}}}}}}px;" class="wikipediauserbox {{{bodyclass|}}}">
This modification will standardize the width of the infoboxes so that they will uniformly fit inside of table columns.
Technical 13 (talk) 13:21, 18 April 2013 (UTC)
<div style="float:{{{float|left}}}; border:{{{border-width|{{{border-s|1}}}}}}px solid {{{border-color|{{{1|{{{border-c|{{{id-c|#999}}}}}}}}}}}}; margin:1px; width:{{#expr:240-2*{{{border-width|{{{border-s|1}}}}}}}}px;" class="wikipediauserbox {{{bodyclass|}}}">
This edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
In conjunction with the (hopefully corrected) edit request by User:Technical 13 above, I request the following two changes:
Replace:
style="border:0; width:{{{logo-width|{{{id-w|45}}}}}}px; height:{{{logo-height|{{{id-h|45}}}}}}px; background:{{{logo-background|{{{1|{{{id-c|#DDD}}}}}}}}}; text-align:{{{id-a|center}}}; font-size:{{{logo-size|{{{5|{{{id-s|14}}}}}}}}}pt; color:{{{logo-color|{{{id-fc|black}}}}}}; padding:{{{logo-padding|{{{id-p|0 1px 0 0}}}}}}; line-height:{{{logo-line-height|{{{id-lh|1.25em}}}}}}; vertical-align: middle; {{{logo-other-param|{{{id-op|}}}}}}"
with:
style="border:0; width:{{{logo-width|{{{id-w|{{#expr:47-2*{{{border-width|{{{border-s|1}}}}}}}}}}}}}}px; height:{{{logo-height|{{{id-h|{{#expr:47-2*{{{border-width|{{{border-s|1}}}}}}}}}}}}}}px; background:{{{logo-background|{{{1|{{{id-c|#DDD}}}}}}}}}; text-align:{{{id-a|center}}}; font-size:{{{logo-size|{{{5|{{{id-s|14}}}}}}}}}pt; color:{{{logo-color|{{{id-fc|black}}}}}}; padding:{{{logo-padding|{{{id-p|0 1px 0 0}}}}}}; line-height:{{{logo-line-height|{{{id-lh|1.25em}}}}}}; vertical-align: middle; {{{logo-other-param|{{{id-op|}}}}}}"
and replace:
style="border:0; text-align:{{{info-a|left}}}; font-size:{{{info-size|{{{info-s|8}}}}}}pt; padding:{{{info-padding|{{{info-p|0 4px 0 4px}}}}}}; height:{{{logo-height|{{{id-h|45}}}}}}px; line-height:{{{info-line-height|{{{info-lh|1.25em}}}}}}; color:{{{info-color|{{{info-fc|black}}}}}}; vertical-align: middle; {{{info-other-param|{{{info-op|}}}}}}"
with:
style="border:0; text-align:{{{info-a|left}}}; font-size:{{{info-size|{{{info-s|8}}}}}}pt; padding:{{{info-padding|{{{info-p|0 4px 0 4px}}}}}}; height:{{{logo-height|{{{id-h|{{#expr:47-2*{{{border-width|{{{border-s|1}}}}}}}}}}}}}}px; line-height:{{{info-line-height|{{{info-lh|1.25em}}}}}}; color:{{{info-color|{{{info-fc|black}}}}}}; vertical-align: middle; {{{info-other-param|{{{info-op|}}}}}}"
This request creates a default userbox total height of 47px for all reasonable values of border-s. The current default userbox total height of 47px is a result of a default id-h=45 and a default border-s=1. This request, together with the corrected User:Technical 13 request, will permit default size userboxes to be neatly stacked without the need for an arrangement table.
Buaidh 15:58, 22 April 2013 (UTC)
This edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Hello friendly administrator responding to this request! I request that:
<div style="float:{{{float|left}}}; border:{{{border-width|{{{border-s|1}}}}}}px solid {{{border-color|{{{1|{{{border-c|{{{id-c|#999}}}}}}}}}}}}; margin:1px; width:238px;" class="wikipediauserbox {{{bodyclass|}}}">
{| style="border-collapse:collapse; width:238px; margin-bottom:0; background:{{{info-background|{{{2|{{{info-c|#EEE}}}}}}}}}"
Be changed to:
<div style="float: {{{float|left}}}; border: {{#iferror:{{#ifexpr:{{{border-width|{{{border-s|1}}}}}}<0|1|{{{border-width|{{{border-s|1}}}}}}}}|1}}px solid {{{border-color|{{{1|{{{border-c|{{{id-c|#999}}}}}}}}}}}}; margin: 1px; width: {{#iferror:{{#ifexpr:{{{border-width|{{{border-s|1}}}}}}<0|238|{{#expr:240-(2*{{{border-width|{{{border-s|1}}}}}})}}}}|238}}px;" class="wikipediauserbox {{{bodyclass|}}}">
{| style="border-collapse: collapse; width: {{#iferror:{{#ifexpr:{{{border-width|{{{border-s|1}}}}}}<0|238|{{#expr:240-(2*{{{border-width|{{{border-s|1}}}}}})}}}}|238}}px; margin-bottom: 0; background: {{{info-background|{{{2|{{{info-c|#EEE}}}}}}}}}"
As reflected in the sandbox testing done with this comparison, which will make the majority of the userboxes uniform in width as is represented in the Box width section of the testcases page. Thank you. Technical 13 (talk) 16:03, 4 May 2013 (UTC)
This edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
I'm requesting that:
|}</div>{{#if:{{{usercategory|}}}{{{usercategory2|}}}{{{usercategory3|}}}|{{category handler
|nocat = {{{nocat|}}}
|subpage = {{#if:{{{nocatsubpages|}}}|no}}
|user = {{#if:{{{usercategory|}}}|[[Category:{{{usercategory}}}]]}}{{#if:{{{usercategory2|}}}|[[Category:{{{usercategory2}}}]]}}{{#if:{{{usercategory3|}}}|[[Category:{{{usercategory3}}}]]}}
|template = {{#if:{{{usercategory|}}}|[[Category:{{{usercategory}}}| {{BASEPAGENAME}}]]}}{{#if:{{{usercategory2|}}}|[[Category:{{{usercategory2}}}| {{BASEPAGENAME}}]]}}{{#if:{{{usercategory3|}}}|[[Category:{{{usercategory3}}}| {{BASEPAGENAME}}]]}}
}}}}<noinclude>{{documentation}}</noinclude>
Be modified to include:
|}</div>{{#if:{{{usercategory|}}}{{{usercategory2|}}}{{{usercategory3|}}}{{{usercategory_raw|}}}|{{category handler
|nocat = {{{nocat|}}}
|subpage = {{#if:{{{nocatsubpages|}}}|no}}
|user = {{#if:{{{usercategory|}}}|[[Category:{{{usercategory}}}]]}}{{#if:{{{usercategory2|}}}|[[Category:{{{usercategory2}}}]]}}{{#if:{{{usercategory3|}}}|[[Category:{{{usercategory3}}}]]}}{{#if:{{{usercategory_raw|}}}|{{{usercategory_raw}}}}}
|template = {{#if:{{{usercategory|}}}|[[Category:{{{usercategory}}}| {{BASEPAGENAME}}]]}}{{#if:{{{usercategory2|}}}|[[Category:{{{usercategory2}}}| {{BASEPAGENAME}}]]}}{{#if:{{{usercategory3|}}}|[[Category:{{{usercategory3}}}| {{BASEPAGENAME}}]]}}{{#if:{{{usercategory_raw|}}}|{{{usercategory_raw}}}|}}
}}}}<noinclude>{{documentation}}</noinclude>
So that categories can be added as defined in the userbox. See Template:Userbox/sandbox (diff just in case) and purpose can be seen by editing Template:User alternative account name (edit | talk | history | links | watch | logs). Technical 13 (talk) 14:07, 17 May 2013 (UTC)
{{#switch:{{{1}}}|orange=[[Category:Orange fruit|{{{1}}}]]|banana=[[Category:Yellow fruit|{{{1}}}|#default=[[Category:Red fruit|{{{1}}}]]}}
to work as-well-as allow [[Category:Three]][[Category:Four]][[Category:Five]][[Category:Six]][[Category:Seven]][[Category:...]]
to work and not limit people to three categories. If you have a better parameter name, that is fine. I only picked usercategoryx because it followed the same scheme for the prefix (usercategory) and indicated that the category number was a variable and that multiple could be used (x). I also chose that because it is shorter than the alternatives I came up with and shorter is easier to remember. Technical 13 (talk) 11:09, 18 May 2013 (UTC)
I can't see the point of this new parameter either. There seems to be little benefit over just manually adding a category. Technical 13, perhaps you could demonstrate a consensus for this change before reactivating this request? Regards — Martin (MSGJ · talk) 19:50, 21 May 2013 (UTC)
This edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Please add id-class parameter, analogous to info-class. ⇔ ChristTrekker 18:18, 23 May 2013 (UTC)
When using an image in the id parameter, is it possible to make it smaller so the userbox has the correct height? George8211 (talk | contribs) 12:09, 22 August 2013 (UTC)
This edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
I've made an edit in the sandbox (here) that should allow for an increased border size to automatically be allowed for in the userbox height (per CSS box model) — OwenBlacker (Talk) 15:45, 17 December 2013 (UTC)
I've created a Lua version of this template at Module:Userbox. You can test it out using {{userbox/sandbox}}. I'd like to hear people's opinions of the code before putting it live. In particular, the module treats blank parameters differently from the template. The template's treatment of blank parameters led to some strange behaviour, like the border style being set to "border: px;" if either {{{border-width}}}
or {{{border-s}}}
were present but blank. I've demonstrated a few of these behaviours at Template:Userbox/testcases#Blank parameters, although that is not a complete list. It is possible that changing this behaviour may break some existing userboxes, although the number is probably quite small. Do people think it would be worth adding a tracking category so that we can identify them? — Mr. Stradivarius ♪ talk ♪ 07:59, 6 January 2014 (UTC)
Example NewPP limit reports |
---|
NewPP limit report Parsed by mw1071 CPU time usage: 12.133 seconds Real time usage: 12.308 seconds Preprocessor visited node count: 100002/1000000 Preprocessor generated node count: 106937/1500000 Post‐expand include size: 753000/2048000 bytes Template argument size: 50000/2048000 bytes Highest expansion depth: 5/40 Expensive parser function count: 0/500 Served by mw1071 in 13.886 secs.
NewPP limit report Parsed by mw1175 CPU time usage: 8.257 seconds Real time usage: 8.339 seconds Preprocessor visited node count: 24001/1000000 Preprocessor generated node count: 112017/1500000 Post‐expand include size: 1084000/2048000 bytes Template argument size: 0/2048000 bytes Highest expansion depth: 2/40 Expensive parser function count: 0/500 Lua time usage: 2.830s Lua memory usage: 1.15 MB Lua Profile: Scribunto_LuaSandboxCallback::getExpandedArgument 2840 ms 77.2% recursiveClone <mw.lua:109> 300 ms 8.2% getExpandedArgument <mw.lua:261> 100 ms 2.7% format 60 ms 1.6% <Module:Arguments:132> 60 ms 1.6% type 60 ms 1.6% concat 40 ms 1.1% insert 40 ms 1.1% tostring 40 ms 1.1% Scribunto_LuaSandboxCallback::frameExists 20 ms 0.5% [others] 120 ms 3.3% Served by mw1175 in 9.659 secs. |
How come there doesn't show up any category for the userbox when I save it, even if I have set a parameter for usercategory? The userbox User:UBX/SAIK does not show up in the usercategory Category:Wikipedian Sandvikens AIK fans. Bandy boy (talk) 17:33, 19 March 2014 (UTC)
Was there a change in the way the usercategory params work? I was under the impression that categories specified in those params would only be applied to the user page where the template was ultimately transcluded, since the categories are often named "Wikipedians who...". Based on the name alone, these should include the user pages only, and not the userbox template(s), but it doesn't seem to work this way.
For example, {{User WP Foodie}} has |usercategory=WikiProject Food and drink members
and then after the {{Userbox}} transclusion, wrapped in noinclude tags, there is:
[[Category:WikiProject Food and drink templates|{{PAGENAME}}]] [[Category:WikiProject user templates|Food and drink]] [[Category:Food u0ser templates|WP Food and drink]] [[Category:Drink user templates|WP Food and drink]]
This makes sense to me. The template itself should show up in the *templates categories and the users (user pages) that transclude it should show up at Category:WikiProject Food and drink members. Currently, it doesn't work that way, though. The template also appears in Category:WikiProject Food and drink members, even though it's not a "member".
Did it always work the way it does now? It seems you can get around it by wrapping |usercategory=WikiProject Food and drink members
in includeonly tags, keeping the category from applying to the template page. —[AlanM1(talk)]— 23:36, 12 July 2014 (UTC)
<includeonly>[[Category:User who do something|{{PAGENAME}}]]</includeonly> <noinclude>[[Category:User who do something|*]]</noinclude>
[The above] discussion appears to be related to a problem I just noticed with a MediaWiki message delivery. A message was sent to Category:WikiProject Medicine members, but that category has several editors with their user page and a subpage in the category—for example, both User:Benlisquare and User:Benlisquare/Userboxes, and the messaging system sent the newsletter to the talk page of both pages. The category comes from {{User WPMed}} on the Userboxes subpage which is transcluded on the user page. As I've never thought about issues like this, I can't offer a suggestion, but IMHO a userbox should add the category only to the user page, and not to any subpage, without requiring any extra input from the user. If a category is sometimes wanted elsewhere, there should be an "opt in" parameter to specify that the category is wanted. Johnuniq (talk) 06:36, 17 July 2014 (UTC)
<noinclude>...</noinclude>
tags on the userbox template pages. As for the MediaWiki message delivery, it shouldn't be too hard to filter out duplicate users from a category list. Perhaps there's already an option for this? — Mr. Stradivarius ♪ talk ♪ 06:44, 17 July 2014 (UTC)
This edit request to Module:Userbox has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
The second userbox is too wide due to its thick border. The third, however, compensates correctly.
|
Userboxes created with {{Userbox-2}} or {{Userbox-r}} are too wide if the specified border size is greater than 1px. Likewise, they are too narrow if the specified border size is zero. This bug is readily apparent in columns of multiple userboxes, as in the example floating to the right of this thread. It has already been fixed for {{Userbox}} with lines 79 and 82 of the module code:
local borderWidthNum = checkNum(args['border-width'] or args['border-s'], 1)
data.width = addSuffix(240 - 2 * borderWidthNum, 'px')
Could the same code please be coped to the vicinity of lines 125 and 177 for the sake of {{Userbox-2}} and {{Userbox-r}}? – voidxor (talk | contrib) 08:48, 4 January 2015 (UTC)
borderWidthNum = checkNum(args[9] or args['border-s'], 1)
-- what's the default if those args aren't set? data.width = addSuffix(240 - 2 * borderWidthNum, 'px')
requires the parameter to be set. How gracefully with the code fail if the borderWidthNum >= 120? How graciously will if fail if defined as 0 or < 0? — {{U|Technical 13}} (e • t • c) 14:11, 6 January 2015 (UTC)This edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Please integrate the changes in the sandbox into the module. —Keφr 07:55, 6 September 2015 (UTC)
{{Userbox/sandbox
|id = [[File:Imbox_content.png]]
|id-c = black
|info = This is a test
}}
if title.namespace == 2 and title.rootText ~= 'UBX' then
? That is intentional, as Module:Category handler blacklists User:UBX subpages via Module:Category handler/blacklist. You should find that the behaviour is the same as the current Module:Userbox for User:UBX subpages. The original rationale for the blacklisting code is here. — Mr. Stradivarius ♪ talk ♪ 08:47, 9 September 2015 (UTC)
I've been working on red-linked categories and come across a number which are populated by templates like {{User cu-N}} that wants to live in Category:User cu-N. Except that category has been deleted three times because it's meaningless to have a current native speaker of a long-dead language. Would it be possible for the noinclude code (in {{user lang}} at least) to test for the existence of a user category before placing the template in it? It would relieve some tension between those who hate to see red-linked categories left unmade, and those who nuke template-only categories on sight.... <g> Le Deluge (talk) 04:10, 22 March 2016 (UTC)
In this section, the "FROM" and "TO" URIs are exactly the same, so that can't be right. Also, it would be easier to compare them if they were aligned. —Ringbang (talk) 00:56, 24 April 2016 (UTC)
I used to create user boxes in other wikis but here its a first: http://rimworldwiki.com/wiki/User:Yoshida_Keiji/Userboxes/Civilization Yoshida Keiji (talk) 09:18, 1 May 2017 (UTC)
This edit request to Module:Userbox has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Matt Fitzpatrick (talk) 05:44, 11 July 2016 (UTC)
This edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
As Chinese Wikipedian, the .content table
class may cause unexpected result on mobile page when you look at the user page, in this case every user box would display an unused whitespace at the top. You need make the following modify to fix:
local tableroot = root:tag('table')
tableroot
:css('border-collapse', 'collapse')
:css('width', data.width)
:css('margin-bottom', '0')
:css('margin-top', '0') -- add this
:css('background', data.backgroundColor)
--Great Brightstar (talk) 09:52, 16 July 2016 (UTC)
This edit request to Module:Userbox has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Please change line 331 from this:
root:wikitext('[[Category:Potentially illegible userboxes]]')
To this:
root:wikitext('<noinclude>[[Category:Potentially illegible userboxes]]</noinclude>')
Currently this puts any pages transcluding potentially illegible userboxes in the category as well, making the backlog seem bigger than it is and making it hard to go through it. nyuszika7h (talk) 10:29, 6 September 2016 (UTC)
I'm finding the instructions for creating a userbox overly complicated. I just want a template to copy and add in my text and an image to create a userbox, but I can't find how to add an image. I'm tired of clicking on page after page on Userboxes - can anyone just tell me how or point me where I can find explicit directions? Thanks in advance! nycdi (talk) 00:17, 4 December 2017 (UTC)
The new Lua version of Template:Userbox is producing one-pixel-wide white strips on many userboxes that appear after a refresh. Please see Wikipedia:Userboxes/Life for examples. Can this be fixed or do we need to revert? Yours aye, Buaidh 20:08, 25 January 2018 (UTC)
This may be a browser specific problem. I'm using Firefox. Buaidh 20:13, 25 January 2018 (UTC)
This is a well known and very old bug in FF in when using tables. If u google a bit u can likely quickly find the ticket. Its a shame that Firefix still has not been able to fix it after all those years. —TheDJ (talk • contribs) 19:33, 26 January 2018 (UTC)
For some reason, the Safari (web browser) in iOS will only center info text if info-a=center and info has more than one line of text. If info has only a single line of text, Safari displays the text left justified even though info-a=center.
Also, Safari will not override the default id width of 45 pixels if an id image is wider than 45 pixels.
Please see Template:Userbox test. The three userboxes display identically in Firefox, Google Chrome, and Microsoft Edge, but very differently in Safari on my iphone. I don't know if Safari performs the same on an Apple computer or on a different operating system. Does anyone understand why this is happening? Thanks for your help, Buaidh talk contribs 20:50, 4 February 2019 (UTC)
Test |
What does "Justify" mean in both id-a
and info-a
parameters?
Wei4Green · 唯绿远大 16:48, 18 October 2019 (UTC)
Justify |
| |
Blank |
|
I just created my first userbox at Template:Userbox/Bob Kingsley, thinking that I was following the directions at Template:Userbox, but now I notice that almost all of the userboxes listed in the userbox galleries are user subpages. I think I may have goofed up, but I just wanted to check before I moved anything. Thanks. Larry Hockett (Talk) 04:41, 15 August 2020 (UTC)
Many users place userboxes on a subpage and transclude them on the main userpage, e.g. User:Excirial/UserBoxes and User:Excirial. This causes both pages to be added to user categories like Category:Wikipedians in the Article Rescue Squadron. There are ways to avoid it like {{User Article Rescue Squadron|nocat=<noinclude>yes</noinclude>}}
, but almost nobody does that. I suggest two ways to make it easier:
|nocat=subpage
to not place categories on subpages but still do it on rootpages.PrimeHunter (talk) 13:41, 7 April 2021 (UTC)
This edit request to Module:Userbox has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Currently, module Userbox supports up to three user categories. I suggest to upgrade the Userbox module to support up to five user categories. There are already userboxes, which pass five parameters, e.g. Template:User London. —andrybak (talk) 21:51, 21 August 2018 (UTC)
cats[#cats + 1] = args.usercategory cats[#cats + 1] = args.usercategory2 cats[#cats + 1] = args.usercategory3
cats[#cats + 1] = args.usercategory cats[#cats + 1] = args.usercategory2 cats[#cats + 1] = args.usercategory3 cats[#cats + 1] = args.usercategory4 cats[#cats + 1] = args.usercategory5
This edit request to Module:Userbox has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Replace all instances of 240
with (args['wide'] and 482 or (args['small'] and 119 or 240))
or just replace the live version with the sandbox version. These edits allow for the use of |wide=
which makes the userbox double the width of a normal userbox and |small=
which make the userbox half the width of a normal userbox.
Code | Sandbox | Live | ||||||
---|---|---|---|---|---|---|---|---|
{{#invoke:Userbox(/sandbox)|userbox|info=text|id=USER}} |
|
| ||||||
{{#invoke:Userbox(/sandbox)|userbox|info=text}} |
|
| ||||||
{{#invoke:Userbox(/sandbox)|userbox|info=text|id=id}} |
|
| ||||||
{{#invoke:Userbox(/sandbox)|userbox-r|info=text|id=id}} |
|
| ||||||
{{#invoke:Userbox(/sandbox)|userbox-2|info=text|id=id}} |
|
|
Code | Sandbox | |||
---|---|---|---|---|
{{#invoke:Userbox/sandbox|userbox|info=text|wide=yes|id=id}} |
| |||
{{#invoke:Userbox/sandbox|userbox|info=text|wide=yes}} |
| |||
{{#invoke:Userbox/sandbox|userbox-2|info=text|wide=yes}} |
| |||
{{#invoke:Userbox/sandbox|userbox-r|info=text|wide=yes}} |
| |||
{{#invoke:Userbox/sandbox|userbox|info=text|small=yes|id=id}} |
| |||
{{#invoke:Userbox/sandbox|userbox|info=text|small=yes}} |
| |||
{{#invoke:Userbox/sandbox|userbox-2|info=text|small=yes}} |
| |||
{{#invoke:Userbox/sandbox|userbox-r|info=text|small=yes}} |
|
Userbox |
Userbox |
Userbox |
id | Userbox |
id | Userbox |
Userbox |
id | Userbox |
id1 | Userbox | id2 |
id1 | Userbox | id2 |
Userbox | id |
id1 | Userbox | id2 |
id | Userbox |
Userbox | id |
id1 | Userbox | id2 |
id1 | Us er | id2 |
Userbox | id |
Userbox |
id | Userbox |
– BrandonXLF (t@lk) 18:40, 20 October 2018 (UTC)
{{edit template-protected}}
template. I see no effort to gather consensus since this request was last declined for a lack of consensus. Cabayi (talk) 13:00, 28 October 2018 (UTC)
There is a discussion related to this module here. – BrandonXLF (t@lk) 15:35, 28 October 2018 (UTC)
I noticed that the template pages transcluding Template:Userbox themselves are being placed into the user categories as opposed to user pages transcluding the templates only. (For example, Template:User de-1 is wrongly placed into Category:User de-1.) I propose that {{User other}} be used to limit the categorization to user pages only, but, not being proficient in lua, I'm not sure whether it should be implemented here in the module or at Template:Userbox. Could someone provide assistance? --Bsherr (talk) 21:01, 29 October 2018 (UTC)
| usercategory=<includeonly>User de-1</includeonly>
. It should however be setting the category sort so that it is shown at the start of the list rather than mixed in the middle. The documentation for Template:User de-1, which is at Template:User x/doc was setting a different sort value. I've update that code to set the correct sort, so now when you look at Category:User de-1, you'll see the template at the start of the list. -- WOSlinker (talk) 22:47, 29 October 2018 (UTC)I'm not 100% sure I'm reading the code of the module correctly, but it seems like it hardcodes the font sizes for the userboxes. As part of our accessibility guidelines, WP:FONTSIZE specifies that hould be done as a percentage of the original font size and not as an absolute size. This improves accessibility and cross-platform usability.
Moreover, the font size should never go below 85% of the page's default font size, and (again, correct me if I'm wrong--I'm not very familiar with Lua), but I think I see at least one place that hardcodes for an 8 pt font size, which is well below 85% of Vector's default of 11.9 pt. Can someone more experienced with Lua than I am chime in here and we can brainstorm some fixes? Cheers!! cymru.lass (talk • contribs) 02:50, 17 December 2018 (UTC)
Category:Userboxes with insufficient color contrast currently includes every page that transcludes a problematic userbox, instead of only the userboxes themselves (see edit request above). This reduces the category's usability to find the actual userboxes. Would a suitable solution be to only add the category for pages in the Template: namespace (which would leave out userboxes in the User: namespace, but should remove most the false positives)? –Sonicwave talk 23:09, 23 August 2019 (UTC)
This edit request to Module:Userbox has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
I am using the compact version of Template:Userbox-2, which looks like this:
{{userbox-2|side-box 1 color|main box color|ID/icon 1|message|ID/icon 2|border color|side-box 2 color}}
When using this template in the compact state, {{{6}}}
(or border color
) does nothing. It clearly says in the documentation that it is supposed to change the border color. Additionally, if {{{1}}}
(or side-box 1 color
) is defined, setting the |border-c=
parameter does nothing.
To combat this, I propose the following edit:
128. data.borderColor = args[1] or args['border-c'] or args['id1-c'] or '#999999'
to
128. data.borderColor = args['border-c'] or args[6] or args['id1-c'] or args[1] or '#999999'
I'm not 100% familiar with Lua, but I can see this working. --Diriector_Doc┝Talk
Contribs━━━┥ 06:49, 20 February 2020 (UTC)
Help needed: I can't get my userbox to show the image (35px) without the blue borders. Sadkσ (talk is cheap) 23:03, 18 May 2020 (UTC)
|id-c=
. The color of the border around the whole userbox is controlled through |border-c=
. Here I've chosen colors magenta and purple with |border-s=3
for demonstration purposes. —andrybak (talk) 23:54, 18 May 2020 (UTC)
|
This edit request to Module:Userbox has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Please apply Special:Diff/941729320/976979286 to remove number of categories check to allow unconditional categorization of articles (main namespace) into Category:Pages with misplaced templates. See, for example, Special:Diff/959473229, where template {{userbox}} has stayed in the article for a month and a half, but the article wasn't categorized due to absence of parameter |usercategory=
. —andrybak (talk) 06:17, 6 September 2020 (UTC)
Userboxes that have a border 2 pixels wide seem to have a non-standard height, since the border expands outwards rather than in toward the infobox center. This creates subtle misalignments, like here. Could this be remedied? {{u|Sdkb}} talk 23:50, 6 September 2021 (UTC)
border-direction: inward
because it doesn't exist. No matter what, a CSS border will always expand outward. It is theoretically possible to have some extra calculations within the module that shrinks the width and height in unison with the border, but for the effort it would take to implement it, would it be worth it? --Diriector_Doc├─────┤TalkContribs 05:50, 7 September 2021 (UTC)Seamless Wikipedia browsing. On steroids.
Every time you click a link to Wikipedia, Wiktionary or Wikiquote in your browser's search results, it will show the modern Wikiwand interface.
Wikiwand extension is a five stars, simple, with minimum permission required to keep your browsing private, safe and transparent.