Template talk:Portal bar

From Deep web, the free encyclopedia
  (Redirected from Module talk:Portal bar)
Jump to navigation Jump to search
WikiProject Portals (Rated Template-class)
WikiProject iconThis page is within the scope of WikiProject Portals, a collaborative effort to improve portals on Deep web. If you would like to participate, please visit the project page, where you can join the discussion and see a list of open tasks.
 Template  This template does not require a rating on the project's quality scale.
 
Note icon
See also: Guidelines • List of Portals

What happened to the formatting?[edit]

The formatting for portal bar has changed, and lists bullet points at the far left of the box with the portals centered, which makes the bar more like a box. I liked it when it functioned as a bar. Northamerica1000(talk) 08:58, 24 January 2012 (UTC)

Location[edit]

Is the proper location the "See also" section? Emmette Hernandez Coleman (talk) 10:54, 29 November 2012 (UTC)

Since the links are not off-site, then "See also" would be appropriate. – Maky « talk » 14:33, 29 November 2012 (UTC)
It's just that I noticed that sometimes this was placed in See also like {{Portal}} and {{Portal-inline}}, but sometimes under extremal links with the infoboxes. I've updated the documentation to match Template:Portal/doc and apply the See also standard. I meant to apply that edit to Template:Portal-inline/doc but antecedently applied it this this documentation (I'm tired). But sense it's there anyway, unless someone objects to the See also standard, I'll leave it in. I don't see any reason for the Portal templates to have different sections you would post them in anyway, their just differently formated versions of the same thing. Emmette Hernandez Coleman (talk) 15:28, 29 November 2012 (UTC)

It does not have widespread support ...[edit]

I don't see the point of that sentence. {{Portal}} is of course the default and preferred form, but the primary purpose of this template is for when {{Portal}} would have formating problems. Emmette Hernandez Coleman (talk) 15:51, 29 November 2012 (UTC)

That's probably what the sentence it trying to say anyway, I'll go ahead and re-word it. Emmette Hernandez Coleman (talk) 16:03, 29 November 2012 (UTC)
The new wording should clarify that {{Portal}} is usual preferred form, and when this template should be used instead. Emmette Hernandez Coleman (talk) 16:19, 29 November 2012 (UTC)

WP:ORDER[edit]

Where does this go vis-à-vis WP:ORDER? The docs are vague, as written czar · · 04:44, 12 August 2013 (UTC)

I usually put in after external links and before navigation templates, although I prefer to use {{Subject bar}}. See Slow loris for an example. – Maky « talk » 13:18, 12 August 2013 (UTC)
I've seen it above/below navboxes and at the bottom of 'See also'. — Lfdder (talk) 13:22, 12 August 2013 (UTC)
Thanks for the input, all I am no longer watching this page—whisperback if you'd like a response czar  02:54, 9 September 2013 (UTC)

@Mr. Stradivarius: re: TemplateData summary (diff)—I was under the impression from the above and common usage that the bar goes with the navboxes and not in the "See also" section as now described in the TemplateData summary. czar  12:32, 29 September 2013 (UTC)

@Czar: If that's the case, go ahead and fix it. I was just going with what the documentation said. (While you're at it, you should probably fix the line on the doc page that says "Within articles, this template is meant to be placed at the bottom of the article in the See also section.") — Mr. Stradivarius ♪ talk ♪ 12:45, 29 September 2013 (UTC)
✓ Sounds good czar  12:52, 29 September 2013 (UTC)
Now the documentation has been changed again to recommend placing it in the "See also" section. As a page-wide box, that placement disrupts the flow; this template belongs at the very bottom of the article. This was stated in the documentation previously and it ought to be restored. -- Michael Bednarek (talk) 03:56, 23 June 2016 (UTC)

Vertical spacing[edit]

Hello there! How about adding a 0.5em vertical spacing before the {{Portal bar}}? I'd say it would look much better with some additional space (especially now with the typography refresh in place), and it could be also parametrized so additional whitespace is placed before or after the template, depending on the template's actual placement. Thoughts? — Dsimic (talk | contribs) 20:48, 23 April 2014 (UTC)

I also think that it is better to have a some space between the external links (or whatever the last section is) and the navigation templates. Some people add two empty lines or use the <br /> command to insert the space; but it would be much better if it were directly included by defaults in the "portal bar" template (as it is in the French version Modèle:Palette). What do you think? Could someone do that? Leonng Arhyos Hrspino (talk) 11:19, 31 August 2014 (UTC).

noviewer class so Media Viewer skip Portal Bar's images[edit]

I noticed that when using the Media Viewer to browse an article's images (e.g. those in Charlize Theron#See also) that the images in the Portal bar appear. This seems highly undesirable. There is a special class ("noviewer") that can used to have Media Viewer skip images, see Deep web talk:Media Viewer#Some images need to be excluded). Seems like a good idea for this template to use it. Jason Quinn (talk) 22:13, 16 January 2015 (UTC)

At a quick glance, I'm not sure how to add that class. (Sorry, I'm not much of a coder.) Tell me precisely what you want added and where and I'll do it when I have time. Alternatively, if you can do it yourself, go for it. – Maky « talk » 23:01, 16 January 2015 (UTC)

Version without Module:Navbox[edit]

This template currently outputs (in most cases) a <table> inside a <table>, when a tableless layout can achieve the same appearance. The template started using Template:Navbox and its nested tables with this diff, but I'm not sure why. I put a simplified version in the module sandbox (see testcases). Does this look okay? Matt Fitzpatrick (talk) 11:07, 18 June 2016 (UTC)

Edit requested

Changes

  • wraps list in a navigation region labeled "Portals", instead of nested single-cell tables
    • reduces HTML output about 200 bytes
    • provides accessibility context (WAVE report on testcases)
    • should reduce browser load (nested tables are slow)
  • removes margins from list
    • list is no longer horizontally and vertically off center

Incorporates feedback from WT:WCAG#Module:Portal bar. Thanks again to Redrose64 for pointing out that some of these images cannot be unlinked.

Matt Fitzpatrick (talk) 21:52, 28 June 2016 (UTC)

Added bonus, I just noticed the MediaViewer problem reported above in 2015 by Jason Quinn. This edit accidentally fixes that. The navigation region's "metadata" class keeps the images from being cycled in MediaViewer. Matt Fitzpatrick (talk) 22:17, 28 June 2016 (UTC)
@Matt Fitzpatrick: Done. Looked at this for a while. Code looks more lightweight here. And yeah, not sure why Navbox was needed. I think many folks support less tables in general. The new "aria-label Portals" looks okay to me, and bolding the entire thing as you've done doesn't seem to be a problem. Cheers, — Andy W. (talk ·ctb) 07:45, 29 June 2016 (UTC)
  • @Matt Fitzpatrick and Andy M. Wang, this edit appears to have introduced a 1em top margin for the portal bar, which makes the bar look strange when it was designed to run flush against the nav boxes at the bottom of the page. Please revert and we can discuss as necessary (ping me if so) czar 10:24, 13 July 2016 (UTC)
I rolled back Module:Portal bar/sandbox to the previous version, and added a new test at Template:Portal bar/testcases. Looks like the new ("main") version isn't getting the "table.navbox + table.navbox { margin-top: -1px; }" from MediaWiki:Common.css that the old ("sandbox") version did. I'll have to do some user CSS testing to make sure, but I have a hunch adding class="navbox" back to the portal bar, then adjusting the CSS to work with any element might work. Matt Fitzpatrick (talk) 11:11, 13 July 2016 (UTC)
Too close to bedtime to test this properly, but my first thought was readding the navbox class to bordered portal bars (Special:Diff/727480237/729612900), and editing Common.css to allow non-table elements to be navboxes (Old revision of User:Matt_Fitzpatrick/common.css). Will of course need wider notice, and careful testing of all things navbox related. I don't see at first glance any style declarations the table.navbox selector overrides that .navbox by itself wouldn't, though. Matt Fitzpatrick (talk) 12:13, 13 July 2016 (UTC)
@Matt Fitzpatrick and Czar: Undid. Matt, I'm assuming you would be able to handle this. (I'm attempting to take a bit of a semi-wikibreak right now) — Andy W. (talk ·ctb) 16:01, 13 July 2016 (UTC)
I'm putting up an edit request for MediaWiki:Common.css shortly. Old revision of User:Matt Fitzpatrick/common.css summarizes the edit request. The new CSS should resolve visual discrepancies in Template:Portal bar/testcases, but should not affect any part of Template:Navbox/testcases. Please let me know if you notice anything's gone wrong. Matt Fitzpatrick (talk) 23:13, 14 July 2016 (UTC)

Border[edit]

Why there is no border around images when compared to {{portal}}? Borders are defined in subpages, for example Module:Portal/images/j contains ["japan"] ="Flag of Japan.svg|border|link=|alt=", but display for {{portal|Japan}} (right) and {{portal bar|Japan}} (below) is different when we are looking for border:

Also, |link=|alt= could be moved to main module page(s) rather than being defined for each entry.--Obsuser (talk) 16:01, 4 May 2017 (UTC)

I don't think a border surrounding each image would improve the bar's appearance. I think would add unnecessary clutter. -- Michael Bednarek (talk) 01:44, 5 May 2017 (UTC)
Not every, but those that have [""] ="|border",. --Obsuser (talk) 17:16, 7 May 2017 (UTC)

Design[edit]

Hi,

I propose to edit this template to add a better design. In the French equivalent template fr:Modèle:Portail, the size of the text and the width of the space taken by the text adapts to the number of portals added. The problem here is that if five portals are entered, their names are all squeezed in the smae space as one or two portals. This is a portal promotion measure.

--Railfan01 (talk) 07:28, 12 May 2018 (UTC)