This page 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. |
Increase left+right padding/margin to help browsers wrap hlists more reliably?
It appears that a margin-right:0.5em Adding some left+right padding/margin reduces or removes errors when hlists wrap within Sidebars – see e.g. {{
History of science sidebar}}'s recent history – so could someone speaking Lua please add the equivalent of the following to this module..?
Sardanaphalus (
talk) 14:10, 13 August 2014 (UTC)
PS I think this might resolve much in
the above.
| |
-- [[
User:Edokter]] {{
talk}}
09:03, 14 August 2014 (UTC)
-- [[
User:Edokter]] {{
talk}}
19:44, 14 August 2014 (UTC)-- [[
User:Edokter]] {{
talk}}
17:02, 25 August 2014 (UTC)-- [[
User:Edokter]] {{
talk}}
18:46, 27 August 2014 (UTC)This
edit request to
Template:Sidebar has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Siddrth.reddy ( talk) 14:00, 19 September 2014 (UTC)
Currently, I think {{ Sidebar with collapsible lists}} requires a list[N]name to match expanded exactly if list[N] is to be shown expanded. Can someone with the Lua know-how make this requirement case-insensitive, please – not least because a few of these templates I've passed by previously seem to've been set up as if it is – ? Sardanaphalus ( talk) 18:15, 15 October 2014 (UTC)
expanded
exclusively. There is also collapsed
- both of these are used as class names for the styling of the page, and in style sheets the class names are case-sensitive. Except probably in Internet Explorer. --
Redrose64 (
talk) 19:50, 15 October 2014 (UTC)
-- [[
User:Edokter]] {{
talk}}
09:09, 16 October 2014 (UTC)
-- [[
User:Edokter]] {{
talk}}
11:59, 16 October 2014 (UTC)|ab=
, which is coded inside the template as {{{ab|}}}
, to make that case-insensitive would need code like {{{ab|{{{aB|{{{Ab|{{{AB|}}}}}}}}}}}}
and every extra letter doubles the length of the test.{{lc:}}
may be used; but again, these add to the processing time. This is not always a good idea to implement: when several different templates have similarly-named parameters with identical purpose, it is good practice for them to recogise the same values as each other, in order to avoid the confusion that will result if one behaves differently from the rest. --
Redrose64 (
talk) 15:08, 31 October 2014 (UTC)
{{lc:}}
may be used; but again, these add to the processing time..."{{lc:}}
would demand too much time or resources – would it be much if any more demanding than another function such as #if:? – then perhaps {{Sidebar with collapsible lists}} (and {{Navbox with collapsible groups}}, etc)'s instructions could direct people to use lowercase only for list/group names? I think that might reduce the chances of people who try to use these templates' feature thinking that it's a good idea to use names that duplicate titles (and perhaps draw attention to why names are used rather than the lists/groups' titles). Or maybe there is a different approach to managing these collapsible lists/groups/etc that is more robust..?This
edit request to
Module:Sidebar has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Please replace the cellspacing attribute on the table with an appropriate CSS. There're still some obsolete atributes, including cellspacing. See the error list, thank you in advance! See Template_talk:Infobox#Protected_edit_request_on_30_October_2014 for more info. Rezonansowy ( talk | contribs) 21:17, 31 October 2014 (UTC)
-- [[
User:Edokter]] {{
talk}}
15:42, 14 November 2014 (UTC)
-- [[
User:Edokter]] {{
talk}}
19:00, 14 November 2014 (UTC)
-- [[
User:Edokter]] {{
talk}}
19:42, 14 November 2014 (UTC)
-- [[
User:Edokter]] {{
talk}}
19:47, 14 November 2014 (UTC)
-- [[
User:Edokter]] {{
talk}}
21:40, 14 November 2014 (UTC)
Hello – could the code be amended, please, so that it can handle {{Sidebar |child
as {{
Navbox}} handles {{Navbox |child
?
I suspect a line such as border = trim(args.border or args[1] or '')
(from
Module:Navbox) will be needed somewhere, but, in lieu-a of learning Lua, that's about as far as my guessing extends.
Sardanaphalus (
talk) 12:31, 13 January 2015 (UTC)
PS The same modification for {{ Infobox}} as well..?
{{
infobox}}
already does this, with the |child=yes
parameter. --
Redrose64 (
talk) 14:27, 13 January 2015 (UTC)
{{Infobox |child
..?
Sardanaphalus (
talk) 00:26, 14 January 2015 (UTC)
-- [[
User:Edokter]] {{
talk}}
01:14, 14 January 2015 (UTC)There's content1style, content2style etc, but not, so far as I can see, content1class, content2class, etc. Since, for example, the lists supplied as a Sidebar's contents are not necessarily all "hlist" or all "plainlist" in nature, could these parameters be included, please?
Sardanaphalus (
talk) 10:40, 18 January 2015 (UTC)
(i.e. so code such as below left rather than below right may be used:)
{{Sidebar | name = ...... | class = plainlist ............ | heading1 = ...... | content1class = hlist | content1 = ...... | heading2 = ...... | content2 = ...... | heading3 = ...... | content3 = ...... | heading4 = ...... | content4class = hlist | content4 = ...... | heading5 = ...... | content5 = ...... (etc) }} | {{Sidebar | name = ...... | class = plainlist............| heading1 = ...... | content1 = {{startflatlist}} ...... {{endflatlist}}| heading2 = ...... | content2 = ......| heading3 = ...... | content3 = ......| heading4 = ...... | content4 = {{startflatlist}} ...... {{endflatlist}}| heading5 = ...... | content5 = ......(etc)}} |
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)
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)
Code like
{{sidebar | 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)
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)
This page 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. |
Increase left+right padding/margin to help browsers wrap hlists more reliably?
It appears that a margin-right:0.5em Adding some left+right padding/margin reduces or removes errors when hlists wrap within Sidebars – see e.g. {{
History of science sidebar}}'s recent history – so could someone speaking Lua please add the equivalent of the following to this module..?
Sardanaphalus (
talk) 14:10, 13 August 2014 (UTC)
PS I think this might resolve much in
the above.
| |
-- [[
User:Edokter]] {{
talk}}
09:03, 14 August 2014 (UTC)
-- [[
User:Edokter]] {{
talk}}
19:44, 14 August 2014 (UTC)-- [[
User:Edokter]] {{
talk}}
17:02, 25 August 2014 (UTC)-- [[
User:Edokter]] {{
talk}}
18:46, 27 August 2014 (UTC)This
edit request to
Template:Sidebar has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Siddrth.reddy ( talk) 14:00, 19 September 2014 (UTC)
Currently, I think {{ Sidebar with collapsible lists}} requires a list[N]name to match expanded exactly if list[N] is to be shown expanded. Can someone with the Lua know-how make this requirement case-insensitive, please – not least because a few of these templates I've passed by previously seem to've been set up as if it is – ? Sardanaphalus ( talk) 18:15, 15 October 2014 (UTC)
expanded
exclusively. There is also collapsed
- both of these are used as class names for the styling of the page, and in style sheets the class names are case-sensitive. Except probably in Internet Explorer. --
Redrose64 (
talk) 19:50, 15 October 2014 (UTC)
-- [[
User:Edokter]] {{
talk}}
09:09, 16 October 2014 (UTC)
-- [[
User:Edokter]] {{
talk}}
11:59, 16 October 2014 (UTC)|ab=
, which is coded inside the template as {{{ab|}}}
, to make that case-insensitive would need code like {{{ab|{{{aB|{{{Ab|{{{AB|}}}}}}}}}}}}
and every extra letter doubles the length of the test.{{lc:}}
may be used; but again, these add to the processing time. This is not always a good idea to implement: when several different templates have similarly-named parameters with identical purpose, it is good practice for them to recogise the same values as each other, in order to avoid the confusion that will result if one behaves differently from the rest. --
Redrose64 (
talk) 15:08, 31 October 2014 (UTC)
{{lc:}}
may be used; but again, these add to the processing time..."{{lc:}}
would demand too much time or resources – would it be much if any more demanding than another function such as #if:? – then perhaps {{Sidebar with collapsible lists}} (and {{Navbox with collapsible groups}}, etc)'s instructions could direct people to use lowercase only for list/group names? I think that might reduce the chances of people who try to use these templates' feature thinking that it's a good idea to use names that duplicate titles (and perhaps draw attention to why names are used rather than the lists/groups' titles). Or maybe there is a different approach to managing these collapsible lists/groups/etc that is more robust..?This
edit request to
Module:Sidebar has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Please replace the cellspacing attribute on the table with an appropriate CSS. There're still some obsolete atributes, including cellspacing. See the error list, thank you in advance! See Template_talk:Infobox#Protected_edit_request_on_30_October_2014 for more info. Rezonansowy ( talk | contribs) 21:17, 31 October 2014 (UTC)
-- [[
User:Edokter]] {{
talk}}
15:42, 14 November 2014 (UTC)
-- [[
User:Edokter]] {{
talk}}
19:00, 14 November 2014 (UTC)
-- [[
User:Edokter]] {{
talk}}
19:42, 14 November 2014 (UTC)
-- [[
User:Edokter]] {{
talk}}
19:47, 14 November 2014 (UTC)
-- [[
User:Edokter]] {{
talk}}
21:40, 14 November 2014 (UTC)
Hello – could the code be amended, please, so that it can handle {{Sidebar |child
as {{
Navbox}} handles {{Navbox |child
?
I suspect a line such as border = trim(args.border or args[1] or '')
(from
Module:Navbox) will be needed somewhere, but, in lieu-a of learning Lua, that's about as far as my guessing extends.
Sardanaphalus (
talk) 12:31, 13 January 2015 (UTC)
PS The same modification for {{ Infobox}} as well..?
{{
infobox}}
already does this, with the |child=yes
parameter. --
Redrose64 (
talk) 14:27, 13 January 2015 (UTC)
{{Infobox |child
..?
Sardanaphalus (
talk) 00:26, 14 January 2015 (UTC)
-- [[
User:Edokter]] {{
talk}}
01:14, 14 January 2015 (UTC)There's content1style, content2style etc, but not, so far as I can see, content1class, content2class, etc. Since, for example, the lists supplied as a Sidebar's contents are not necessarily all "hlist" or all "plainlist" in nature, could these parameters be included, please?
Sardanaphalus (
talk) 10:40, 18 January 2015 (UTC)
(i.e. so code such as below left rather than below right may be used:)
{{Sidebar | name = ...... | class = plainlist ............ | heading1 = ...... | content1class = hlist | content1 = ...... | heading2 = ...... | content2 = ...... | heading3 = ...... | content3 = ...... | heading4 = ...... | content4class = hlist | content4 = ...... | heading5 = ...... | content5 = ...... (etc) }} | {{Sidebar | name = ...... | class = plainlist............| heading1 = ...... | content1 = {{startflatlist}} ...... {{endflatlist}}| heading2 = ...... | content2 = ......| heading3 = ...... | content3 = ......| heading4 = ...... | content4 = {{startflatlist}} ...... {{endflatlist}}| heading5 = ...... | content5 = ......(etc)}} |
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)
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)
Code like
{{sidebar | 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)
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)