Module talk:Sidebar

From Wikipedia, the free encyclopedia
  (Redirected from Template talk:Sidebar/doc)
Jump to: navigation, search

header padding is inconsistent[edit]

See the Discrimination sidebar at Genocide for example. The first header is noticeably smaller than the second header, at least in regard to the part that is colored. Could someone fix this? Kaldari (talk) 18:40, 29 April 2016 (UTC)

Kaldari, the problem is that one is a collapsible list title and the other is a header. the collapsible list titles have an inner collapsible div which includes the colouring, where the headers just use standard table headers. I added a hack to correct for the difference, but it would be better if the collapsible div containers filled the entire table cell. Frietjes (talk) 18:58, 29 April 2016 (UTC)
something like this would also fix it by removing the left/right padding from the table cell container. Frietjes (talk) 19:17, 29 April 2016 (UTC)
Either solution is fine with me. Thanks! Kaldari (talk) 22:11, 29 April 2016 (UTC)

Latest edits screwed up many sidebars[edit]

for example, the sidebar in Politics of Angola has bad margins and the embedded content is the wrong size. Frietjes (talk) 00:17, 3 June 2017 (UTC)

Stripped-tag errors[edit]

Code like

| title = Top level title
| content1 = {{sidebar
  | child = yes
  | title = First subsection
  | heading1 = Heading 1.1
  | content1 = Content 1.1
| content2 = {{sidebar
  | child = yes
  | title = Second subsection
  | heading1 = Heading 2.1
  | content1 = Content 2.1
|belowstyle = 
|below = Below text

produces stripped-tag errors <th>. Maybe this is caused by a line in Module:Sidebar like

:wikitext('</th></tr>') -- @todo replace this with unclosed again once mw.html gets it

--RolandUnger (talk) 05:55, 25 July 2017 (UTC)

Module:InfoboxImage tracking[edit]

I'm wondering if there is a way to import some of the logic from Module:InfoboxImage into this module. Specifically the tracking that is done with Category:Pages using infoboxes with thumbnail images. Would be awesome to get a Category:Pages using sidebars with thumbnail images. Anyone have thoughts on the matter? --Zackmann08 (Talk to me/What I been doing) 16:41, 19 September 2017 (UTC)