Edge Rewrite
// HTMLRewriter · presentation

This page was redesigned at the edge.

Cloudflare fetched the original article and streamed it through HTMLRewriter to apply an entirely new visual system without rebuilding the source page.

// request.cf · coarse context

A page that knows where it met you.

Only coarse request metadata is shown. This demo does not display or persist visitor IP addresses.

Country
US
Cloudflare location
CMH
Connection
HTTP/2
Language
Not provided

Ray ID: a239cd4de84eb87b

Jump to content

Template talk:Usbktop

Page contents not supported in other languages.
Add topic
From Wikipedia, the free encyclopedia
Latest comment: 14 years ago by ChristTrekker in topic revisiting fixed width problem

What's the justification for hard coding pixel values for width declarations in style attributes here? Among other issues this looks needlessly horrible if you're not using the whole screen for your browser. (FWIW, I got here via Category talk:Wikipedians looking for help#I created a userbox. On that page this template is the reason I have a horizontal scrollbar.) --Jeremyb (talk) 20:15, 25 July 2008 (UTC)Reply

This has to do with an issue with variable-width values on lower screen resolutions where the Transclusions link would overlap the userbox. It was extensively discussed, and this was the best solution anyone could come up with. If you can find a better way to fix it that doesn't use fixed widths, I'm all ears (although, maybe I should ask at WP:VPT or somewhere...). —Dinoguy1000 22:20, 25 July 2008 (UTC)Reply

revisiting fixed width problem

[edit]

What about this? Changing to a two-column display:

{| style="background: transparent;" ! style="text-align: left;" | Code ! Result |- |{{tl|User USA Gadsden}}<br /><span style="font-size:smaller;">([[Special:Whatlinkshere/Template:User USA Gadsden|Transclusions]])</span> |{{User USA Gadsden}} |- |{{tlu|User:The Raven's Apprentice/Userboxes/User Astronomy}}<br /><span style="font-size:smaller;">([[Special:Whatlinkshere/User:The Raven's Apprentice/Userboxes/User Astronomy|Transclusions]])</span> |{{User:The Raven's Apprentice/Userboxes/User Astronomy}} |}

I know I whacked some of the code out for the purpose of illustration, but I think this should certainly work. Virtually all userboxes are at least two lines, so a compact display to make use of the space makes sense. ⇔ ChristTrekker 18:29, 3 October 2011 (UTC)Reply

Table width should be set by the user, not the template. The justification in the section above is silly—if the table overlaps another element, move the table or the other element. Just change the table width to accept user input and default to nothing (i.e. collapsed to minimum width) and be done with it. — Bility (talk) 19:13, 3 October 2011 (UTC)Reply
I've implemented this idea. Seems to work fine. ⇔ ChristTrekker 14:58, 23 May 2012 (UTC)Reply