Module talk:Sidebar/Archive 2: Difference between revisions

Content deleted Content added
archiving
 
m Replaced deprecated <source> tags with <syntaxhighlight> (via WP:JWB)
 
(8 intermediate revisions by 3 users not shown)
Line 63:
: They don't always apply to whole articles, though. [[user:thumperward|Chris Cunningham (not at work)]] - [[user talk:thumperward|talk]] 11:06, 6 July 2009 (UTC)
 
::Not to mention the technical difficulties of forcing them to always appear at the top. And what about where an infobox and a sidebar is used on the same article; which one should win out? This type of stuff needs to be decided case-by-case, and if a sidebar needs to appear at the top of an article, it's far easier and simpler to just put its template call at the top of the article's source than to try and force a technical solution from within the template. <span style=white-space:nowrap>「[[User:Dinoguy1000|<span style=color:#00f>ダイノ</span><span style=color:#080>ガイ</span>]][[Special:Contributions/Dinoguy1000|<span style=color:#F90>千?!</span>]]」<sup>[[Help:JP|?]] · [[User talk:Dinoguy1000|<small style=font-weight:normal>Talk⇒Dinoguy1000]]</supsmall>]]</spansup></span> 18:59, 6 July 2009 (UTC)
:::That's what I meant: place the template at the top of the page source. Also, I'd think that the infobox would come first since it is more important/relevant. Images, however, I think should come after since ''should'' always apply to a specific section (I think it's sloppy when this isn't the case). [[User:SharkD|SharkD]] ([[User talk:SharkD|talk]]) 06:44, 7 July 2009 (UTC)
 
Line 78:
::If it is necessary, I'd prefer a means of turning it off on a per-template basis, instead of having to adjust each individual link. <span style="border:1px solid #f57900;padding:1px;">[[User:SharkD|<span style="color:#8f5902;padding-left:1px;">SharkD</span>]] [[User_talk:SharkD|<span style="color:#fff;background:#fcaf3e;">&nbsp;Talk&nbsp;</span>]]</span> 01:00, 20 November 2009 (UTC)
::: I have no idea. [[User:Anomie|Anomie]][[User talk:Anomie|⚔]] 02:55, 20 November 2009 (UTC)
::::Just as a pointer, {{tl|Navbox}} has used the "nowraplinks" class for a long time now. Other than that, I have no opinion on whether it's really necessary here. <span style=white-space:nowrap>「[[User:Dinoguy1000|<span style=color:#00f>ダイノ</span><span style=color:#080>ガイ</span>]][[Special:Contributions/Dinoguy1000|<span style=color:#F90>千?!</span>]]」<sup>[[Help:IJP|?]] · [[User talk:Dinoguy1000#top|Talk⇒Dinoguy1000]]</sup></span> 04:15, 20 November 2009 (UTC)
:I went ahead and modified the template so that the behavior can be disabled if needed. It is still enabled by default. <span style="border:1px solid #f57900;padding:1px;">[[User:SharkD|<span style="color:#8f5902;padding-left:1px;">SharkD</span>]] [[User_talk:SharkD|<span style="color:#fff;background:#fcaf3e;">&nbsp;Talk&nbsp;</span>]]</span> 05:30, 20 November 2009 (UTC)
 
Line 86:
== Problem with width ==
 
Something recently caused [[:Template:Violence against women]] to broaden, and it wasn't edits to the template itself. It uses this sidebar template, but reverting a recent edit to this made no difference. Can anyone think what might have caused it? [[User:SlimVirgin|<fontspan colorstyle="color:black">[[User:SlimVirgin|SlimVirgin]]</fontspan>]] <small><sup><font color="gold">[[User_talk:SlimVirgin|TALK|]]</font><fontspan colorstyle="limecolor:gold">TALK|</span>]][[Special:Contributions/SlimVirgin|<span style="color:lime">CONTRIBS]]</fontspan>]]</sup></small> 04:06, 7 September 2011 (UTC)
: The culprit appears to be the inclusion of "width:22em". I added "width:auto" to the [[:Template:Violence against women]], which overrides this statement. [[User:Frietjes|Frietjes]] ([[User talk:Frietjes|talk]]) 15:30, 7 September 2011 (UTC)
::Thanks for doing that, Frietjes. [[User:SlimVirgin|<fontspan colorstyle="color:black">[[User:SlimVirgin|SlimVirgin]]</fontspan>]] <small><sup><font color="gold">[[User_talk:SlimVirgin|TALK|]]</font><fontspan colorstyle="limecolor:gold">TALK|</span>]][[Special:Contributions/SlimVirgin|<span style="color:lime">CONTRIBS]]</fontspan>]]</sup></small> 21:59, 7 September 2011 (UTC)
 
== Question on "sidebar with collapsible lists" template ==
Line 107:
== Recent changes ==
 
Recent changes have disturbed the widths of templates {{tl|Hinduism}} (width became smaller) and {{tl|Vaishnavism}} (width increased suddenly). I am unsure about the exact problem or which edits caused it. --[[User:Redtigerxyz|<font colorspan style= "color:red" >Redtigerxyz</fontspan>]] <sup> [[User talk:Redtigerxyz|Talk]] </sup> 17:26, 11 March 2012 (UTC)
:I think Frietjes fixed it. <span style="font-family:'Trebuchet MS'"> — [[User:Edokter|<span style="color:#008"><i>E</i>dokter</span>]] ([[User talk:Edokter|<span style="color:#080">talk</span>]]) — </span> 17:33, 11 March 2012 (UTC)
:: <s>The problem still exists. I observed when loading [[Hinduism]], template Hinduism appears 100 % width and on completion of loading, it suddenly becomes small width. What has changed? Should I add any parameters to the Hinduism et al templates? --[[User:Redtigerxyz|<font colorspan style= "color:red" >Redtigerxyz</fontspan>]] <sup> [[User talk:Redtigerxyz|Talk]] </sup> 17:37, 11 March 2012 (UTC)</s>
::: The second edit solved the problem. Thanks Frietjes. --[[User:Redtigerxyz|<font colorspan style= "color:red;" >Redtigerxyz</fontspan>]] <sup> [[User talk:Redtigerxyz|Talk]] </sup> 17:39, 11 March 2012 (UTC)
:::: yes, I almost had it in the first edit, but missed an extra }. looks like it works now. I also improved the logic for the new float option (now works if float exists but is blank). [[User:Frietjes|Frietjes]] ([[User talk:Frietjes|talk]]) 17:41, 11 March 2012 (UTC)
 
Line 143:
* cellspacing
* cellpadding
---'''''—&nbsp;[[User:Gadget850|<span style="color:gray">Gadget850&nbsp;(Ed)</span>]]<span style="color:darkblue">&nbsp;</span>'''''</span><sup>[[User talk:Gadget850|''talk'']]</sup> 23:20, 23 September 2012 (UTC)
 
:There are many templates with these; {{tl|navbox}} and {{tl|infobox}} to name a few complicated examples. They need some CSS restructuring, including Common.css. Currently looking into it. <span style="font-family:'Trebuchet MS'"> — [[User:Edokter|<span style="color:#008"><i>E</i>dokter</span>]] ([[User talk:Edokter|<span style="color:#080">talk</span>]]) — </span> 17:45, 24 September 2012 (UTC)
::This template sure uses some convulted parameter structure for these attributes, while overriding those same settings with CSS. So I recommend removing those parameters to start with. <span style="font-family:'Trebuchet MS'"> — [[User:Edokter|<span style="color:#008"><i>E</i>dokter</span>]] ([[User talk:Edokter|<span style="color:#080">talk</span>]]) — </span> 19:36, 8 October 2012 (UTC)
== Edit request on 4 December 2012 ==
 
{{edit protected|answered=yes}}
<!-- Begin request -->
Hi. I've noticed that if backgrounds are added to the headings in this template, the headings don't appear vertically aligned within them (see example below left). If, however, the padding in the heading styles is changed to <code><nowiki>padding:0.1em;</nowiki></code>, i.e. an all-round 0.1em padding, the headings now appear vertically aligned (below middle). A tweak to the content styles (bottom padding of 0.4em) ensures each heading-content pair remains grouped when no heading background is in use (below right). So, I've amended a copy of the current template code in the sandbox to include these tweaks (15:46, 4 December 2012‎ CsDix (talk | contribs)‎ . . (14,077 bytes) (-420)‎ . . ''(re-retweaked (to reduce gap between headings and contents when no heading background))'' [http://en.wikipedia.org/w/index.php?title=Template:Sidebar/sandbox&oldid=526346406]).
 
{|
|- style="vertical-align:top;"
|
{{Sidebar
|name = {{PAGENAME}}
|title = Sidebar<br/>{{resize|75%|present formatting}}
|headingstyle = background:#ccf;
|heading1 = heading1
|content1 = content1
|heading2 = heading2
|content2 = content2
|heading3 = heading3
|content3 = content3
}}
|
{{Sidebar
|name = {{PAGENAME}}
|title = Sidebar<br/>{{resize|75%|tweaked (with backgrounds)}}
|headingstyle = padding:0.1em;background:#ccf;
|contentstyle = padding:0 0.1em 0.4em;
|heading1 = heading1
|content1 = content1
|heading2 = heading2
|content2 = content2
|heading3 = heading3
|content3 = content3
}}
|
{{Sidebar
|name = {{PAGENAME}}
|title = Sidebar<br/>{{resize|75%|tweaked (without backgrounds)}}
|headingstyle = padding:0.1em;
|contentstyle = padding:0 0.1em 0.3em;
|heading1 = heading1
|content1 = content1
|heading2 = heading2
|content2 = content2
|heading3 = heading3
|content3 = content3
}}
|- style="vertical-align:top;"
|
{{Sidebar/sandbox
|name = {{PAGENAME}}
|title = Sidebar/sandbox <div style="font-size:75%;line-height:1.2em;">with 200px image<br/>and backgrounds</div>
|image = [[File:Example.jpg|200px]]
|headingstyle = background:#ccf;
|heading1 = heading1
|content1 = content1
|heading2 = heading2
|content2 = content2
|heading3 = heading3
|content3 = content3
}}
|
{{Sidebar/sandbox
|name = {{PAGENAME}}
|title = Sidebar/sandbox <div style="font-size:75%;line-height:1.2em;">with 200px image plus caption<br/>and with backgrounds</div>
|image = [[File:Example.jpg|200px]]
|caption = This is the caption.
|headingstyle = background:#ccf;
|heading1 = heading1
|content1 = content1
|heading2 = heading2
|content2 = content2
|heading3 = heading3
|content3 = content3
}}
|
{{Sidebar/sandbox
|name = {{PAGENAME}}
|title = Sidebar/sandbox <div style="font-size:75%;line-height:1.2em;">with 200px image plus caption<br/>but without backgrounds</div>
|image = [[File:Example.jpg|200px]]
|caption = This is the caption.
|heading1 = heading1
|content1 = content1
|heading2 = heading2
|content2 = content2
|heading3 = heading3
|content3 = content3
}}
|}
<!-- End request -->
[[User:CsDix|CsDix]] ([[User talk:CsDix|talk]]) 03:53, 4 December 2012 (UTC)
 
:The alignment is looking fine to me. Maybe the problem went away with the introduction of new MediaWiki software yesterday? Let me know if you're still seeing issues. (A screenshot might help clarify things as well.) — '''''[[User:Mr. Stradivarius|<span style="color: #194D00; font-family: Palatino, Times, serif">Mr. Stradivarius</span>]]''''' <sup>([[User talk:Mr. Stradivarius|have a chat]])</sup> 10:05, 5 December 2012 (UTC)
 
{|
|colspan="2"|
:*Here are a couple of screenshots of a couple of Sidebars as they appear on the Firefox-based browser ("Palemoon") I'm currently using:
|-
| [[File:Sidebar example 1.jpg]]
| [[File:Sidebar example 2.jpg]]
|}
:: Here, the space above each heading looks more than that below (especially e.g. in the Anthropology sidebar's first heading "Fields"). Small in the overall scheme of things, but noticeable. [[User:CsDix|CsDix]] ([[User talk:CsDix|talk]]) 16:50, 5 December 2012 (UTC)
:: PS I've just edited [[Template:Anthropology]], so the screenshot above left was of [http://en.wikipedia.org/w/index.php?title=Template:Anthropology&oldid=500224341 this version] of the template. [[User:CsDix|CsDix]] ([[User talk:CsDix|talk]]) 17:13, 5 December 2012 (UTC)
::: This looks better, but I am wondering about the condition padding in the first two fields. In particular, the part that changes the padding for the first heading if there is an image, and the part that changes the padding for the first contents if there is a first heading. The ordering on these statements appears to be important, and it's not clear exactly what is going on there. Otherwise, this looks very reasonable. [[User:Plastikspork|Plastikspork]] [[User talk:Plastikspork|<sub style="font-size: 60%">―Œ</sub><sup style="margin-left:-3ex">(talk)</sup>]] 06:02, 8 December 2012 (UTC)
:::: That's a good point; thanks. I've toyed with the sandbox code a little, left it with no special padding for the first heading/content ([http://en.wikipedia.org/w/index.php?title=Template:Sidebar/sandbox&oldid=527141363 this version]) and added another row of examples (that include images/captions) to those above. Maybe no special padding is required, as they seem okay here &ndash; how about there? (Perhaps I'm missing some circumstance/s where the special padding would still be required?) [[User:CsDix|CsDix]] ([[User talk:CsDix|talk]]) 06:25, 9 December 2012 (UTC)
:::::Not clear what should be done right now, if anything, so I've declined the request. I've asked both of you to come back here and clarify what should be done. [[User:Nyttend|Nyttend]] ([[User talk:Nyttend|talk]]) 13:40, 18 December 2012 (UTC)
:::::: Okay, I think I got it. Let me know if there is a problem. Thanks! [[User:Plastikspork|Plastikspork]] [[User talk:Plastikspork|<sub style="font-size: 60%">―Œ</sub><sup style="margin-left:-3ex">(talk)</sup>]] 05:43, 19 December 2012 (UTC)
== How to lower or override the minimum line-width default? ==
 
Currently the minimum line-width default, in the content sections for example, equals about 33 Xs. But in the current [http://en.wikipedia.org/w/index.php?title=Template:Economics_sidebar&oldid=525430882 Template: Economics sidebar], this results in at least 6 characters' worth of redundant white space in the content sections. Lowering the default width by 6 characters would fix the problem. Does anyone know how this could be done or whether there is a parameter-override function for the default that would shrink the minimum width of that (or potentially any) sidebar? Thank you. --[[User:Thomasmeeks|Thomasmeeks]] ([[User talk:Thomasmeeks|talk]]) 04:08, 29 November 2012 (UTC)
: you can override the line-height for the contents using {{para|contentstyle|line-height:90%}} or whatever, for the heading section, {{para|headingstyle|line-height:90%}}, etc. to change the width of the template, use {{para|width|20em}} or whatever. [[User:Frietjes|Frietjes]] ([[User talk:Frietjes|talk]]) 18:33, 29 November 2012 (UTC)
::Thank you, F, for some other questions answered as well, which I think will be also be useful. I tried inserting {{para|width| 20em}} and {{para|width|0em}} to no effect, but {{para|width|100em}} definitely widened the template! The {{para|width|auto}} also left things unchanged. So, apparently the template is already at the lower bound as to width.§ It's not as though there's no way to get the content text closer to the edges, but that only works with more characters per line, not fewer, as this [http://en.wikipedia.org/w/index.php?title=Template:Economics_sidebar&oldid=507254455 earlier version] illustrates. There auto padding allows 2 to spaces to the right. Looks {{para|width|auto}} like it is trying to leave at least 2 spaces of padding on each side of the line, but that seems to work only beyond the width currently at [[Template: Economics sidebar]]. If you agree, is there any way of fixing that asymmetry as to smaller vs. larger template widths? I have seen several sidebars with the same problem of undue width, spectacularly so in some cases. Would you have any suggestions on how to proceed?
::§ Could a change transcluded parameter fix things? You'd be in a better position to know. --[[User:Thomasmeeks|Thomasmeeks]] ([[User talk:Thomasmeeks|talk]]) 21:54, 29 November 2012 (UTC)
::: how about [//en.wikipedia.org/w/index.php?title=Template%3AEconomics_sidebar&diff=525603544&oldid=525572344 this] (using border-collapse:collapse). [[User:Frietjes|Frietjes]] ([[User talk:Frietjes|talk]]) 22:13, 29 November 2012 (UTC)
::::Well, your edit of the above into Template:Economics sidebar moved it in the right direction alright, reducing end blank spaced to a ratio of 5.5/8 from 8/8 (in cm. on my screen). My further attempt at 0.0em had no further effect. But the asymmetry is still there, just smaller, thus treating narrower text lines differently from broader text lines: about '''3''' (corrected from 5) extra ems per line. Maybe the software simply does not currently permit fixing the default.
::::Thank you for your excellent efforts. It appears that that is an irremediable default limit. Would you suggest requesting a global fix? If so, where? --[[User:Thomasmeeks|Thomasmeeks]] ([[User talk:Thomasmeeks|talk]]) 23:33, 29 November 2012 (UTC) (Correction bolded.) 05:13, 30 November 2012 (UTC)
::::: to make it more narrow, you will have to shorten the "The economy: concept and history" line. this is the limiting factor, since it won't shrink any lower than that. I added some padding to the left and right of the headings (currently 0.3em), which could also be reduced, but might look a bit odd. if you add {{para|wraplinks|true}} and change the "width:auto" to say "width:19em" you will see that the heading at the bottom will then line wrap, and make the template even more narrow. however, without the {{para|wraplinks|true}} it will refuse to wrap that line. I personally think it looks better without the headings wrapped. [[User:Frietjes|Frietjes]] ([[User talk:Frietjes|talk]]) 00:55, 30 November 2012 (UTC)
::::::Well, I earlier tested shortening a different line and later deleted the line you mentioned, to [have] no effect, that is, just as wide as before for the ''earlier'' template (closest on the right). Your '''current''' improvement of http://en.wikipedia.org/w/index.php?title=Template:Economics_sidebar&oldid=525604094 is still about 3 spaces wider than the '''earlier''' one that preceded the current "[[Template: Sidebar]]" formatting):
{{sidebar
| name = Economics sidebar
| title = [[Economics]] ("current")
| class = hlist
| titleclass = navbox-title
| titlestyle = padding:0.2em 0.0em; background-color: #ccccdd; border: 1px solid #bebebe; font-size:138%
| bodystyle = border-collapse:collapse; width:auto
| headingstyle = padding:0.1em 0.0em; background-color: #dde; border: 1px solid #bebebe; font-size:97%
| contentstyle = padding:0.1em 0.0em; font-size:97%
| navbarstyle = padding-right:0.3em;
| image = [[file:GDP PPP Per Capita IMF 2008.svg|frameless]]
| captionstyle = text-align:left;padding:0.0em 0.5em
| caption = '''[[:Category:Economies by country|Economies by country]]'''
 
| heading2 = [[Outline of economics|General categories]]
| content2 =
* [[Microeconomics]]
* [[Macroeconomics]]
 
* [[History of economic thought]]
 
* [[Economic methodology|Methodology]]
* [[Heterodox economics|Heterodox approaches]]
 
| heading3 = [[JEL classification codes#Mathematical and quantitative methods JEL: C Subcategories|Technical methods]]
| content3 =
* [[Mathematical economics|Mathematical]]
* [[Econometrics]]
 
* [[Experimental economics|Experimental]]
* [[National accounts|National accounting]]
 
 
| heading4 = [[JEL classification codes|Fields and subfields]]
| content4 =
* [[Behavioral economics|Behavioral]]
* [[Cultural economics|Cultural]]
* [[Evolutionary economics|Evolutionary]]
 
* [[Economic growth|Growth]]
* [[Development economics|Development]]
* [[Economic history|History]]
 
* [[International economics|International]]
* [[Economic system]]s
 
* [[Monetary economics|Monetary]] and [[Financial economics]]
 
* [[Public economics|Public]] and [[Welfare economics]]
 
* [[Health economics|Health]]
* [[Education economics|Education]]
* [[Welfare]]
 
* [[Demographic economics|Population]]
* [[Labour economics|Labour]]
* [[Personnel economics|Personnel]]
 
* [[Managerial economics|Managerial]]
* [[Computational economics|Computational]]
 
* [[Business economics|Business]]
* [[Information economics|Information]]
* [[Game theory]]
 
* [[Industrial organization]]
* [[Law and economics|Law]]
 
* [[Agricultural economics|Agricultural]]
* [[Natural resource economics|Natural resource]]
 
* [[Environmental economics|Environmental]]
* [[Ecological economics|Ecological]]
 
* [[Urban economics|Urban]]
* [[Rural economics|Rural]]
* [[Regional science|Regional]]
* [[Economic geography|Geography]]
 
| heading5 = [[:Category:Economics lists|Lists]]
| content5 =
* [[List of economists|Economists]]
* [[List of economics journals|Journals]]
* [[List of important publications in economics|Publications]]
 
* [[:Category:Economics|Categories]]
* [[Index of economics articles|Index]]
* [[Outline of economics|Outline]]
 
| heading6 = [[Economy|The economy: concept and history]]
| heading7style=background:#ccccdd
| heading7 = [[:Portal:Business and economics|Business and economics portal]]
| navbar=off
| belowstyle= background:#ccccdd; line-height:100%; font-size: 100%; border-top: 1px solid #BEBEBE; text-align:right; padding:0.0em 0.5em; font-weight:normal;
| below={{navbar|Economics sidebar|text= This sidebar:}}
}}
{| style="line-height:140%; font-size: 95%; margin: 0.3em 0 0.6em 0.6em; border: 1px solid #BEBEBE; background-color:#f9f9f9; clear:center; float:right;" cellpadding=0 cellspacing=0
|-
| style="font-size: 120%; background:#ccccdd; border-bottom: 1px solid #BEBEBE; padding: 5px 5px 3px 5px;" align="center"| '''[[Economics]]''' '''(earlier)'''
|-
|style="text-align: center; background:#FFFFFF; "|[[Image:GDP PPP Per Capita IMF 2008.svg|200px]]<br/>
|-
|<div class="NavFrame" style="border-style: none; padding: 0px; text-align: left; border-left: 0px; border-right: 0px; border-top: 0px; border-bottom: 0px;" cellpadding=0 cellspacing=0><div class="border-style: none; padding: 0px; background:#FFFFFF; text-align: left; font-size: 11px; height:1.9em;">&nbsp;&nbsp;'''[[:Category:Economies by country|Economies by country]]'''</div></div>
|-
! style="background:#ddddee; font-size: 95%; border-top: 1px solid #BEBEBE; border-bottom: 1px solid #BEBEBE; padding: 0 3px 0 3px;" | [[Outline of economics|General categories]]
|-
| style="font-size: 90%; padding: 0 3px 0 3px;" align="center"|
[[Microeconomics]]{{·}} [[Macroeconomics]]<br/>
[[History of economic thought]]<br/>
[[Economic methodology|Methodology]]{{·}} [[Heterodox economics|Heterodox approaches]]
|-
! style="background:#ddddee; font-size: 95%; border-top: 1px solid #BEBEBE; border-bottom: 1px solid #BEBEBE; padding: 0 3px 0 3px;" | [[JEL classification codes#Mathematical and quantitative methods JEL: C Subcategories|Technical methods]]
|-
| style="font-size: 90%; padding: 0 3px 0 3px;" align="center" | [[Mathematical economics|Mathematical]]{{·}}[[Econometrics]]<br/>[[Experimental economics|Experimental]]{{·}} [[National accounts|National accounting]]<br/>
|-
! style="background:#ddddee; font-size: 95%; border-top: 1px solid #BEBEBE; border-bottom: 1px solid #BEBEBE; padding: 0 3px 0 3px;" | [[JEL classification codes|Fields and subfields]]
|-
| style="font-size: 90%; padding: 0 3px 0 3px;" align="center" |
[[Behavioral economics|Behavioral]]{{·}} [[Cultural economics|Cultural]]{{·}} [[Evolutionary economics|Evolutionary]]<br>
[[Economic growth|Growth]]{{·}} [[Development economics|Development]]{{·}} [[Economic history|History]]<br>
[[International economics|International]]{{·}} [[Economic system]]s<br>
[[Monetary economics|Monetary]] and [[Financial economics]]<br>
[[Public economics|Public]] and [[Welfare economics]]<br>
[[Health economics|Health]]{{·}} [[Education economics|Education]]{{·}} [[Welfare]]<br>
[[Demographic economics|Population]]{{·}}[[Labour economics|Labour]]{{·}}[[Personnel economics|Personnel]]<br/>[[Managerial economics|Managerial]]{{·}} [[Computational economics|Computational]]<br>[[Business economics|Business]]{{·}}[[Information economics|Information]]{{·}} [[Game theory]]<br/> [[Industrial organization]]{{·}} [[Law and economics|Law]]<br>
[[Agricultural economics|Agricultural]]{{·}} [[Natural resource economics|Natural resource]]<br>[[Environmental economics|Environmental]]{{·}} [[Ecological economics|Ecological]]<br>
[[Urban economics|Urban]]{{·}} [[Rural economics|Rural]]{{·}} [[Regional science|Regional]]{{·}} [[Economic geography|Geography]]
|-
| style="background:#ddddee; font-size: 95%; border-top: 1px solid #BEBEBE; border-bottom: 1px solid #BEBEBE; padding: 0 3px 0 3px;" align="center"|'''[[:Category:Economics lists|Lists]]'''
|-
| style="font-size: 90%; padding: 0 3px 0 3px;" align="center"|
[[List of economists|Economists]] {{·}} [[List of economics journals|Journals]] {{·}} [[List of important publications in economics|Publications]]<br/>
[[:Category:Economics|Categories]] {{·}} [[Index of economics articles|Index]] {{·}} [[Outline of economics|Outline]]
<br>
|-
| <div class="NavHead" style="border-style: none; padding: 0px; background:#ddddee; border-top: 1px solid #BEBEBE; text-align: center; font-size: 11px; height:1.9em;">'''[[Economy|The economy: concept and history]]'''</div>
|-
| style="background:#ccccdd; line-height:120%; font-size: 90%; border-top: 1px solid #BEBEBE; padding: 0 3px 0 3px;" align="center"|'''[[Portal:Business and economics|Business and economics portal]]'''
|-
! style="background:#ccccdd; line-height:110%; font-size: 85%; border-top: 1px solid #BEBEBE; padding: 0 3px 0 3px; " align="center" |{{navbar|Economics sidebar|text= This sidebar:}}
|}
::::::I did try tweaking the current fix but could not narrow it more (despite going to 0 ems). So, there's still a notable difference in white-space padding between the 2 versions.§ Proportionate to the ''line length'', the current fix has a lot more space than say the space between your top (''un-indented'') paragraph and the left-margin edge. The problem addressed by this section-heading subject applies of course not just to the sidebar in question but to most sidebars using only 2 or 3 links to a line that employ "[[Template: Sidebar]]" formatting among the Category:"Part of a series on" templates, for example [[Template:Anglicanism]] and [[Template:Economic systems sidebar]]. The current default in each case imposes wide margins on them, whereas sidebars with more than 2 or 3 links are not saddled with wide margins. This [[asymmetry]] IMO still remains a problem. Any other thoughts are welcome.
::::::§ I tried adding 3 '''X''''s to your fix at "The economy: concept and history" line. It gave just as tight a fit as the earlier template (left-most here) without widening your fix. So the earlier template (copied here) does not have overly-narrow default padding. Rather, the current sidebar, even with your fix, is broader than what earlier non-packaged formatting (later esp. of the estimable [[User:Morphh]]) permits. --[[User:Thomasmeeks|Thomasmeeks]] ([[User talk:Thomasmeeks|talk]]) 05:13, 30 November 2012 (UTC)
::::::: I made some minor changes to the sidebar in your example to achieve something very similar to the "previous" version. basically, removing the left-right padding and slightly reducing the heading and title size. whether or not it looks exactly the same (or how close) will be browser dependent, since various browsers quantize the font-sizes at different levels. [[User:Frietjes|Frietjes]] ([[User talk:Frietjes|talk]]) 19:47, 30 November 2012 (UTC)
 
::::::::Excellent outcome, F. Your adds, including explicit adjustable parameters (for example for the title font size, padding, collapsibility, etc.), & clean-up simplifications at [[Template:Economics sidebar]] will definitely help now and in the future allowing the good features of the earlier template to continue. It turns out that the limit on the width of the "current" sidebar is the larger picture size of the current sidebar, whose coding is this: <nowiki>[[file:GDP PPP Per Capita IMF 2008.svg|frameless]]</nowiki>. When that is replaced by <nowiki>[[Image:GDP PPP Per Capita IMF 2008.svg|200px]]</nowiki> from the earlier sidebar, the sidebar width shrinks to the size of the earlier version and without the excess white space. I'll acknowledge your resolving a big impasse on the appropriate Talk page.
::::::::One remaining question for now that still I have is whether there is any practical way of incorporating some variant of:
:::::::::{{navbar|Economics sidebar|text= This sidebar:}}
::::::::at the bottom of the sidebar for the current default of: V T E. Thank you for your help. --[[User:Thomasmeeks|Thomasmeeks]] ([[User talk:Thomasmeeks|talk]]) 17:16, 1 December 2012 (UTC)
::::::::: there are two ways to change the navbar at the bottom: (1) make a request to add this feature to this template, (2) use {{para|navbar|off}} with {{para|below|<nowiki>{{nobold|{{navbar|Economics sidebar|text= This sidebar:}}}}</nowiki>}}. the later would be the easiest, since it would take time to code it up and gain consensus. I personally like the default VTE links. [[User:Frietjes|Frietjes]] ([[User talk:Frietjes|talk]]) 17:55, 1 December 2012 (UTC)
::::::::::A reasonable default alright, but I think there's argument for the transparency of the alternative to attract more potential editors for the case at hand anyhow. Ah, it worked (per above, bottom line + coloring). At the risk of exhausting your patience, 2 more questions. Is there also a way of:
:::::::::::(1) coloring the 2nd to last line like that of the earlier version
:::::::::::(2) right-floating the text of the new bottom line? Thank you. --[[User:Thomasmeeks|Thomasmeeks]] ([[User talk:Thomasmeeks|talk]]) 21:12, 1 December 2012 (UTC)
{{od}} for the colouring of the second to last line, you can use {{para|heading7style|background:#ccccdd}} and for right floating the new bottom line, you can use {{para|belowstyle|text-align:right}} or {{para|belowstyle|font-weight:normal; text-align:right;}} and then change the <nowiki>{{nobold|{{navbar|Economics sidebar|text= This sidebar:}}}}</nowiki> to <nowiki>{{navbar|Economics sidebar|text= This sidebar:}}</nowiki>. [[User:Frietjes|Frietjes]] ([[User talk:Frietjes|talk]]) 15:27, 3 December 2012 (UTC)
:Ah, beautiful and elegantly simple. Thank you. --[[User:Thomasmeeks|Thomasmeeks]] ([[User talk:Thomasmeeks|talk]]) 23:23, 3 December 2012 (UTC)
:: no problem. we generally try to reduce the number of style statements per [[wp:deviations]], but this shows that it can be done. [[User:Frietjes|Frietjes]] ([[User talk:Frietjes|talk]]) 00:01, 4 December 2012 (UTC)
:::... in more ways than one, such as the much-simpler hierarchical coding that that you have shown how to apply, which benefits editors as well.
:::IMO it should be possible to state good reasons for deviation from a navbox default, if it is challenged. For the benefit of others, let me also cite this relevant [[WP:NAVBOX]] guideline, which is listed first among advantages of navboxes:
::::Provides a consistent look and navigation system for related articles ''(though not between different topics — there is no single format across all navigation templates)''. (Italics added.)
:::I believe that what I've proposed above and below meets relevant guidelines (interpreted with good sense of course). (But I'd welcome comment if that seems doubtful in any given instance.)
:::I have tweaked the "current" (right) sidebar above including:
::::(a) re-sizing the top (Econ) box closer to the left sidebar (the rationale for which is to distinguish clearly its size from the section headings that follow but not to distract from them)
::::(b) aligning the caption of the map at the top of the sidebar from the center to the left, to distinguish it with the (centered) headings that follow
::::(c) matching the color of the top (Econ) box with the bottom 2 boxes to indicate qualitative differences of those respective boxes from the in-between boxes (also reflected in the left sidebar).
:::My thanks. --[[User:Thomasmeeks|Thomasmeeks]] ([[User talk:Thomasmeeks|talk]]) 18:22, 7 December 2012 (UTC)
 
=====Impressive... but dot size?=====
Just passing by and noticed this impressive template -- except that the dots within are a bit on the tiny side. Can they be boosted to what seems their usual size, e.g. as given by the [[Template:·|"dot template"]] {{tl|·}} at Wikipedia's standard font-size..? [[User:CsDix|CsDix]] ([[User talk:CsDix|talk]]) 04:00, 4 December 2012 (UTC)
:Not sure what you're referring to - {{tlx|sidebar}} doesn't generate any dots, those are specified at point of use. Please note that that the documentation for {{tn|·}} shows that it is [[deprecated]], and it is preferred to use the [[WP:HLIST]] technique for generating the dots. However, dots generated by the {{tn|·}} template are the <code>&amp;middot;</code> entity, boldfaced; i.e. '''&middot;''' - and dots generated using [[WP:HLIST]] are [http://www.fileformat.info/info/unicode/char/00b7/index.htm Unicode Character 'MIDDLE DOT' (U+00B7)], boldfaced: i.e. '''&#x00b7;'''. Since '''&middot;''' (<code>&amp;middot;</code>) and '''&#x00b7;''' (<code>&amp;#x00b7;</code>) are [[middot|exactly the same character]], just specified in different ways, there will be no visual difference between them. --[[User:Redrose64|<span style="color:#a80000; background:#ffeeee; text-decoration:inherit">Red</span>rose64]] ([[User talk:Redrose64|talk]]) 14:50, 4 December 2012 (UTC)
 
::You beat me to it, RR. But for the record let me add this in-transit comment.
::I could be wrong about this, but possibly the link separators of the both sidebars above would better described as bullets rather than dots (at least on my non-big screen) ''relative to'' the smaller size of the fonts in which they are embedded. They use different formats but are similar in appearance (at least on my monitor) with the left one doing what you suggested (<nowiki>{{·}}</nowiki> and in the direction you wanted: {{·}} vs. ·) and the right one using [[Template:Sidebar]] markup using the default of * to separate links in a line. Before Frietjes cleaned up the Econ sidebar, the right one looked like [http://en.wikipedia.org/w/index.php?title=Template:Economics_sidebar&oldid=524289280 this]. So, his Edits definitely moved the right sidebar in the right direction! --[[User:Thomasmeeks|Thomasmeeks]] ([[User talk:Thomasmeeks|talk]]) 15:16, 4 December 2012 (UTC)
 
:: Apologies, Thomasmeeks: it was my oversight. I hadn't noticed that the examples above included a custom font-size reduction (unlike the live {{tl|Economics sidebar}} template). Thanks for the dot explanations, Redrose. [[User:CsDix|CsDix]] ([[User talk:CsDix|talk]]) 15:22, 4 December 2012 (UTC)
:: PS I suggest either retaining hanging dots throught the template (i.e. no blank lines between links in the code) or having none at all (e.g. by using the plainlist class and perhaps switching the template to a collapsible-lists format).
:::On your PS, I agree & believe the editor may have re-added the "wraps" merely to show their effect (I could of course be wrong here). The right sidebar above is implicitly an argument that bullets are unnecessary at the end of a line (possibly when accompanied by <nowiki><br/></nowiki> to defeat the default). It is (partly implicitly) supported by [[Template talk:Economics sidebar#Recurrence of edit with multiple disputed format changes: wide, fragmented link lines etc.]], points (1T) and (3T --there called a dot, but better called a bullet), which were accepted in the brief comment that followed there. --[[User:Thomasmeeks|Thomasmeeks]] ([[User talk:Thomasmeeks|talk]]) 16:34, 4 December 2012 (UTC)
:::: I don't like hanging dots either, but I've learned that using <nowiki><br/></nowiki>s or blanklines to avoid them (or the "dot/bullet templates" like {{tl|·}} to customize listings) compromises accessibility when people use screen-readers, etc. So, for now, I'm going with "all or none" as regards dots, with a strong preference for none in sidebars / sideboxes when feasible. Thanks for your feedback. [[User:CsDix|CsDix]] ([[User talk:CsDix|talk]]) 17:42, 4 December 2012 (UTC)
:::::Well, this may be only a semantic (rather than substantive) distinction, but more strictly speaking, there is no "<nowiki>{{·}}</nowiki>" or "'''·'''" link separator in the right template above, only <nowiki>*</nowiki> link separators that end up looking like bullets. So I'm not sure that the above applies. But, suppose that someone asserts otherwise, ''presenting a replicable basis of verification''. That would be of interest, especially with a description of what the compromise in accessibility looks like to the affected person from use of <nowiki><br/></nowiki>. My thanks. --[[User:Thomasmeeks|Thomasmeeks]] ([[User talk:Thomasmeeks|talk]]) 20:26, 4 December 2012 (UTC)
::::::I don't know how much you know about [[cascading style sheets]], but [[MediaWiki:Common.css]] contains a number of stylings specific to the class <code>hlist</code>. The two chunks to particularly observe are this:
<syntaxhighlight lang=css>
/* Display list items inline and make them nowrap */
.hlist dd,
.hlist dt,
.hlist li {
margin: 0;
display: inline;
white-space: nowrap;
}
</syntaxhighlight>
::::::and this:
<syntaxhighlight lang=css>
.hlist dd:after,
.hlist li:after {
content: " ·";
font-weight: bold;
}
</syntaxhighlight>
::::::Essentially, when the <code>hlist</code> class is applied to a bulleted list, the first chunk of code above eliminates the newlines which normally occur between list items; and the second chunk alters the bullets that ''would'' have appeared at the start of the line so that they are displayed them as a boldface <code>&amp;middot;</code> We can demonstrate that quite simply - if I put the following wikicode:
&lt;div class=hlist&gt;
*First item
*Second item
*Third item
&lt;/div&gt;
::::::it displays as follows
<div class=hlist>
*First item
*Second item
*Third item
</div>
:::::: --[[User:Redrose64|<span style="color:#a80000; background:#ffeeee; text-decoration:inherit">Red</span>rose64]] ([[User talk:Redrose64|talk]]) 20:57, 4 December 2012 (UTC)
 
:::::::Well, I was in the neighborhood, RR, but I sure didn't expect to be visiting so soon (;-). I was trying to ask a somewhat different question above (as to what alleged replicable bad results look like from using <nowiki><br/></nowiki>. That also goes to what is displayed. But your answer is of course of independent interest. Are you suggesting that irrespective of what problems <nowiki><br/></nowiki> might or might not have as to hindering accessibility:
 
:::::::<nowiki><nowiki>/* Display list items inline and make them nowrap */ ... <div> * ... * ...</div></nowiki></nowiki> might be an alternate way of avoiding <nowiki><br/></nowiki>? My thanks. --[[User:Thomasmeeks|Thomasmeeks]] ([[User talk:Thomasmeeks|talk]]) 22:06, 4 December 2012 (UTC) --[[User:Thomasmeeks|Thomasmeeks]] ([[User talk:Thomasmeeks|talk]]) 21:52, 4 December 2012 (UTC)
 
::::::::Not sure what you're trying to do. The {{tag|br|s}} tag forces a line break into the rendered page, and no amount of styling will eliminate it again. I presented the two chunks of CSS as examples of what is already set up for you - you do not need to put any of that into a page in order to use the [[WP:HLIST]] feature. The {{tag|div}} example was a demonstration of one method of utilising a HLIST, it's usually easier to use the relevant parameters in existing templates. For example, in the first {{tlx|sidebar}} example (that of 05:13, 30 November 2012), the parameter {{para|class|hlist}} is present. That switches on the HLIST feature for the whole sidebar. --[[User:Redrose64|<span style="color:#a80000; background:#ffeeee; text-decoration:inherit">Red</span>rose64]] ([[User talk:Redrose64|talk]]) 22:25, 4 December 2012 (UTC)
 
:::::::::My writing above is very condensed and relies on a close reading of the previous section. There, I was asking whether the width of the sidebar could be narrowed to eliminate lots of white space in the right sidebar ''and'' without use of end-of-line <nowiki>*</nowiki> but substituting <nowiki><br/></nowiki> instead. The imposition of [[Template:Sidebar]] unvarnished mark-up conventions + end-of-line <nowiki>*</nowiki>, it was argued at [[Template talk:Economics sidebar#Recurrence of edit with multiple disputed format changes: wide, fragmented link lines etc.]] created more problems than it solved. Anyhow my monitor shows the <nowiki><br/></nowiki> (in place of end-of-line '''*'''s in the ''Edit mode'' of right sidebar of the previous section) doing exactly what your mark-up protocols do: move to the next line for another string of usually 2-3 links. There's no downside that I can see from that as compared with your mark-up protocols. But I read into CsDix's PS above his belief that end-of-line <nowiki><br/></nowiki> compromises accessibility. I can't see evidence of any difficulty at my end. I thought that you were proposing an alternative to both end-of-line <nowiki><br/></nowiki> and to end-of-line <nowiki>*</nowiki> to start a new line. My thanks. --[[User:Thomasmeeks|Thomasmeeks]] ([[User talk:Thomasmeeks|talk]]) 01:32, 5 December 2012 (UTC)
 
::::::::::I have to confess I haven't learned anything particular yet about accessibility here, but I do know there's the [[Wikipedia:Accessibility]] page I've yet to read and I think I saw [[User:Frietjes]] mention somewhere that he's partially-sighted. If that accessibility page doesn't clarify matters, I imagine he'd be happy to do so instead. [[User:CsDix|CsDix]] ([[User talk:CsDix|talk]]) 02:29, 5 December 2012 (UTC)
:::::::::::Well, very forthright of you IMO. --[[User:Thomasmeeks|Thomasmeeks]] ([[User talk:Thomasmeeks|talk]]) 04:00, 5 December 2012 (UTC)
{{od|::::::::::::}} OK, accessibility. I don't want to restate what it says at [[WP:LISTGAP]], but consider the following two examples, both formatted with <code>hlist</code>. The first eliminates two trailing bullets by introducing two blank lines:
<div class=hlist>
* White rose
* Yellow rose
 
* Pink rose
 
* Red rose
</div>
The second eliminates two trailing bullets by using explicit line breaks (by means of {{tag|br|s}} tags) to append two items onto another:
<div class=hlist>
* White rose
* Yellow rose<br />Pink rose<br />Red rose
</div>
To a ''sighted'' person, they look exactly the same. However, whether we've used the normal bulleted list, or formatted it with [[WP:HLIST]], the second one is described differently from the first - the first might be "List of 2 items: (bullet) White rose, (bullet) Yellow rose, list end. List of 1 items: (bullet) Pink rose, list end. List of 1 items: (bullet) Red rose, list end." whilst the second might be "List of 2 items: (bullet) White rose, (bullet) Yellow rose (line break) pink rose (line break) red rose, list end." The "cleaner" visual appearance of eliminating a trailing bullet has caused screen reader software to generate a description that is somewhat less "clean". The correct action would be to have it as just one list, constrained inside an explicit width and let the trailing bullets appear as normal:
<div class=hlist style="width:15em;">
* White rose
* Yellow rose
* Pink rose
* Red rose
</div>
At [[Template talk:Infobox London station#Formatting snafu?]] you'll find a discussion about harmonising the style of what was intended to be two bulleted lists, but was in fact three for the aesthetic appeal of eliminating one bullet. By making the small sacrifice of permitting that trailing bullet, we've improved the infobox for accessibility.
 
An edit {{diff|Template talk:Sidebar|prev|526448502|like this}} which introduces blank lines also has the effect of splitting up the discussion into several essentially separate discussions. When we use colons to indent posts, what we're actually doing is setting up a [//dev.w3.org/html5/markup/dl.html description list], essentially the same as the "definition list" mentioned at [[WP:LISTGAP]]. If there are no blank lines, you get one list (with sub-lists), but if you add blank lines, you get lots of lists. Screen reader software announces the beginning and end of each list, so when there are blank lines, you get aural clutter. --[[User:Redrose64|<span style="color:#a80000; background:#ffeeee; text-decoration:inherit">Red</span>rose64]] ([[User talk:Redrose64|talk]]) 09:07, 5 December 2012 (UTC)
 
: As regards your last point, that's something else I didn't know: that blank lines between incremental (or decremental) indents can also upset screen-readers etc. But why did I add those blank lines? To reduce the visual density (visual clutter) of the code and facilitate (make more accessible) my locating previous comments while I typed my reply. In this particular case, I'd hope it's possible for screen-readers etc to keep count or have it indicated. (But I'm guessing that would start opening another can of worms!) [[User:CsDix|CsDix]] ([[User talk:CsDix|talk]]) 16:35, 5 December 2012 (UTC)
::It's not a problem with the screen reader. When you put a blank line into any list, the Mediawiki software closes all open lists, and then opens a fresh set to the specified depth. Let's assume that you have some wikicode like this:
::::Fourth posting
:::::Fifth posting
::The HTML for that is
<nowiki><dl><dd><dl><dd><dl><dd><dl><dd>Fourth posting<dl><dd>Fifth posting</dd></dl></dd></dl></dd></dl></dd></dl></dd></dl></nowiki>
::Each {{tag|dl|o}} is a list (or sub-list) being opened; each {{tag|dd|o}} is the start of an entry in that list; each {{tag|dd|c}} is the end of an entry; and each {{tag|dl|c}} is a list being closed. You can see that between the fourth and fifth posting, all that happens is a sub-list is opened, containing one entry. Now lets assume that a blank line is inserted. The HTML becomes
<nowiki><dl><dd><dl><dd><dl><dd><dl><dd>Fourth posting</dd></dl></dd></dl></dd></dl></dd></dl></nowiki>
<nowiki><dl><dd><dl><dd><dl><dd><dl><dd><dl><dd>Fifth posting</dd></dl></dd></dl></dd></dl></dd></dl></dd></dl></nowiki>
::It can be seen that between "Fourth posting" and "Fifth posting" we have four lists being closed, and five lists being opened. A screen reader cannot know that the intention was for the fifth posting to be a follow-on from the fourth. --[[User:Redrose64|<span style="color:#a80000; background:#ffeeee; text-decoration:inherit">Red</span>rose64]] ([[User talk:Redrose64|talk]]) 17:33, 5 December 2012 (UTC)
 
:::RR, my apologies for neglecting details in [[User:Frietjes]] elegantly simple series of Edits culminating in http://en.wikipedia.org/w/index.php?title=Template:Economics_sidebar&oldid=525604094 (reproduced in the section above) that in combination makes a line-skip space in Edit mode avoid an end-of-line bullet, without <nowiki><br/></nowiki>, and many of the features objected to in [[Template talk:Economics sidebar#Recurrence of edit with multiple disputed format changes: wide, fragmented link lines etc.]]. Your patience and clear exposition above are appreciated. Best wishes to you and to CD. --[[User:Thomasmeeks|Thomasmeeks]] ([[User talk:Thomasmeeks|talk]]) 18:45, 5 December 2012 (UTC)
 
===How to have a heading box appear before the top figure in the sidebar?===
So far so good on the sidebar at the top of this section, reproduced [below] and relabelled from '''(final)''' to '''(A.1)'''.§ It is easy enough to move the 3rd-from-bottom box ("The [[Economy]]...") to just before the "General categories" heading (namely renumber it from 'heading6' to 'heading1'). Is there any easy way to have it appear ''before'' the figure instead?* Thank you.
 
§ It is the same label as at the bottom of [[Template talk:Economics sidebar#Recurrence of edit with multiple disputed format changes: wide, fragmented link lines etc.]], the source from this whole section first arose. I have here narrowed to the '''final''' version of the top section by reducing the figure to 200px per the discussion in the top section.
 
'''*''' An argument for doing that is the conceptual link of "The [[economy]]..." between [[Economics]] and the figure of "Economies by country".
--[[User:Thomasmeeks|Thomasmeeks]] ([[User talk:Thomasmeeks|talk]]) 23:11, 14 December 2012 (UTC) TM 12:52, 15 December 2012 (UTC)
: I modified your example to move the heading above the image. [[User:Frietjes|Frietjes]] ([[User talk:Frietjes|talk]]) 17:40, 16 December 2012 (UTC)
::OK. I've labelled your revision as (A.3) & added back the original (A.1). (A.3) is of interest in in itself, but I had something a little different in mind, which your comments on my & your talk pages allowed me to complete. Much thanks for those. The other sidebar is labelled (A.2) at http://en.wikipedia.org/w/index.php?title=User:Thomasmeeks/Rough_draft2&oldid=528378105. I'd like to add it here, since it might be of independent interest.
::But first, may I ask if there is an easy way of right-floating the [sidebars] so they are parallel (not stacked) ''to allow comments to the the left of the templates''. Thank you. --[[User:Thomasmeeks|Thomasmeeks]] ([[User talk:Thomasmeeks|talk]]) 23:10, 16 December 2012 (UTC)
:::Sidebar (A.2), mentioned above, has been inserted below between (A.1) & (A.3).
:::For the record, and in case anyone would attempt a similar change on some other sidebar, the sidebar-markup [[wp:diff]]erences in going from (A.1) to (A.2) are at http://en.wikipedia.org/w/index.php?title=Template_talk:Sidebar&diff=528508255&oldid=528507653. #
:::The format diffs in going from (A.1) to (A.3) are at http://en.wikipedia.org/w/index.php?title=Template_talk:Sidebar&diff=528506300&oldid=528505671.
::::'''#''' Not all such efforts to move a later "heading" up seem so simple. This change did not even require renumbering later heading and content numbers, despite moving a later "heading" up to heading1, because there were no heading1 and content1 lines in (A.1), only in (A.2) at the top for the new formatting of the map and its heading.
:::Let me here reiterate my appreciation to [[User:Frietjes|Frietjes]] for his patient efforts to make seem easy what had eluded me. --[[User:Thomasmeeks|Thomasmeeks]] ([[User talk:Thomasmeeks|talk]]) 19:31, 17 December 2012 (UTC)
{|
|-
|
{{sidebar
| name = Economics sidebar
| title = (A.1) [[Economics]]
| class = hlist
| titleclass = navbox-title
| titlestyle = padding:0.2em 0.0em; background-color: #ccccdd; border: 1px solid #bebebe; font-size:138%
| bodystyle = border-collapse:collapse; width:auto
| headingstyle = padding:0.1em 0.0em; background-color: #dde; border: 1px solid #bebebe; font-size:97%
| contentstyle = padding:0.1em 0.0em; font-size:97%
| navbarstyle = padding-right:0.3em;
| image = [[file:GDP PPP Per Capita IMF 2008.svg|200px]]
| captionstyle = text-align:left;padding:0.0em 0.5em
| caption = '''[[:Category:Economies by country|Economies by country]]'''
 
| heading2 = [[Outline of economics|General categories]]
| content2 =
* [[Microeconomics]]
* [[Macroeconomics]]
 
* [[History of economic thought]]
 
* [[Economic methodology|Methodology]]
* [[Heterodox economics|Heterodox approaches]]
 
| heading3 = [[JEL classification codes#Mathematical and quantitative methods JEL: C Subcategories|Technical methods]]
| content3 =
* [[Mathematical economics|Mathematical]]
* [[Econometrics]]
 
* [[Experimental economics|Experimental]]
* [[National accounts|National accounting]]
 
 
| heading4 = [[JEL classification codes|Fields and subfields]]
| content4 =
* [[Behavioral economics|Behavioral]]
* [[Cultural economics|Cultural]]
* [[Evolutionary economics|Evolutionary]]
 
* [[Economic growth|Growth]]
* [[Development economics|Development]]
* [[Economic history|History]]
 
* [[International economics|International]]
* [[Economic system]]s
 
* [[Monetary economics|Monetary]] and [[Financial economics]]
 
* [[Public economics|Public]] and [[Welfare economics]]
 
* [[Health economics|Health]]
* [[Education economics|Education]]
* [[Welfare]]
 
* [[Demographic economics|Population]]
* [[Labour economics|Labour]]
* [[Personnel economics|Personnel]]
 
* [[Managerial economics|Managerial]]
* [[Computational economics|Computational]]
 
* [[Business economics|Business]]
* [[Information economics|Information]]
* [[Game theory]]
 
* [[Industrial organization]]
* [[Law and economics|Law]]
 
* [[Agricultural economics|Agricultural]]
* [[Natural resource economics|Natural resource]]
 
* [[Environmental economics|Environmental]]
* [[Ecological economics|Ecological]]
 
* [[Urban economics|Urban]]
* [[Rural economics|Rural]]
* [[Regional science|Regional]]
* [[Economic geography|Geography]]
 
| heading5 = [[:Category:Economics lists|Lists]]
| content5 =
* [[List of economists|Economists]]
* [[List of economics journals|Journals]]
* [[List of important publications in economics|Publications]]
 
* [[:Category:Economics|Categories]]
* [[Index of economics articles|Index]]
* [[Outline of economics|Outline]]
 
| heading6 = '''(A.1)''' [[Economy|The economy: concept and ...]]
| heading7style=background:#ccccdd
| heading7 = [[:Portal:Business and economics|Business and economics portal]]
| navbar=off
| belowstyle= background:#ccccdd; line-height:100%; font-size: 100%; border-top: 1px solid #BEBEBE; text-align:right; padding:0.0em 0.5em; font-weight:normal;
| below={{navbar|Economics sidebar|text= This sidebar:}}
}}
|
{{sidebar
| name = Economics sidebar
| title = (A.2) [[Economics]]
| class = hlist
| titleclass = navbox-title
| titlestyle = padding:0.25em 0.25em; background-color: #ccccdd; border: 1px solid #bebebe; font-size:133%
| bodystyle = border-collapse:collapse; width:auto
| headingstyle = padding:0.1em 0.0em; background-color: #dde; border: 1px solid #bebebe; font-size:97%
| contentstyle = padding:0.1em 0.0em; font-size:97%
| navbarstyle = padding-right:0.3em;
| ]]
| heading1 = [[Economy|The economy]]
| content1 =
* [[file:GDP PPP Per Capita IMF 2008.svg|200px]]
 
* {{align|left|[[:Category:Economies by country|&nbsp;&nbsp;Economies by country]]}}
 
| heading2 = [[Outline of economics|General categories]]
| content2 =
* [[Microeconomics]]
* [[Macroeconomics]]
 
* [[History of economic thought]]
 
* [[Economic methodology|Methodology]]
* [[Heterodox economics|Heterodox approaches]]
 
| heading3 = [[JEL classification codes#Mathematical and quantitative methods JEL: C Subcategories|Technical methods]]
| content3 =
* [[Mathematical economics|Mathematical]]
* [[Econometrics]]
 
* [[Experimental economics|Experimental]]
* [[National accounts|National accounting]]
 
 
| heading4 = [[JEL classification codes|Fields and subfields]]
| content4 =
* [[Behavioral economics|Behavioral]]
* [[Cultural economics|Cultural]]
* [[Evolutionary economics|Evolutionary]]
 
* [[Economic growth|Growth]]
* [[Development economics|Development]]
* [[Economic history|History]]
 
* [[International economics|International]]
* [[Economic system]]s
 
* [[Monetary economics|Monetary]] and [[Financial economics]]
 
* [[Public economics|Public]] and [[Welfare economics]]
 
* [[Health economics|Health]]
* [[Education economics|Education]]
* [[Welfare]]
 
* [[Demographic economics|Population]]
* [[Labour economics|Labour]]
* [[Personnel economics|Personnel]]
 
* [[Managerial economics|Managerial]]
* [[Computational economics|Computational]]
 
* [[Business economics|Business]]
* [[Information economics|Information]]
* [[Game theory]]
 
* [[Industrial organization]]
* [[Law and economics|Law]]
 
* [[Agricultural economics|Agricultural]]
* [[Natural resource economics|Natural resource]]
 
* [[Environmental economics|Environmental]]
* [[Ecological economics|Ecological]]
 
* [[Urban economics|Urban]]
* [[Rural economics|Rural]]
* [[Regional science|Regional]]
* [[Economic geography|Geography]]
 
| heading5 = [[:Category:Economics lists|Lists]]
| content5 =
* [[List of economists|Economists]]
* [[List of economics journals|Journals]]
* [[List of important publications in economics|Publications]]
 
* [[:Category:Economics|Categories]]
* [[Index of economics articles|Index]]
* [[Outline of economics|Outline]]
 
 
| heading7style=background:#ccccdd
| heading7 = [[:Portal:Business and economics|Business and economics portal]]
| navbar=off
| belowstyle= background:#ccccdd; line-height:100%; font-size: 100%; border-top: 1px solid #BEBEBE; text-align:right; padding: 0 3px 0 3px; padding:0.0em 0.5em; font-weight:normal;
| below={{navbar|Economics sidebar|text= This sidebar:}}
}}
|
{{sidebar
| name = Economics sidebar
| title = (A.3) [[Economics]]
| class = hlist
| titleclass = navbox-title
| titlestyle = padding:0.2em 0.0em; background-color: #ccccdd; border: 1px solid #bebebe; font-size:138%
| bodystyle = border-collapse:collapse; width:auto
| headingstyle = padding:0.1em 0.0em; background-color: #dde; border: 1px solid #bebebe; font-size:97%
| contentstyle = padding:0.1em 0.0em; font-size:97%
| navbarstyle = padding-right:0.3em;
| image = '''[[:Category:Economies by country|Economies by country]]'''<br />[[file:GDP PPP Per Capita IMF 2008.svg|200px]]
 
| heading2 = [[Outline of economics|General categories]]
| content2 =
* [[Microeconomics]]
* [[Macroeconomics]]
 
* [[History of economic thought]]
 
 
 
| heading3 = [[JEL classification codes#Mathematical and quantitative methods JEL: C Subcategories|Technical methods]]
| content3 =
* [[Mathematical economics|Mathematical]]
* [[Econometrics]]
 
* [[Experimental economics|Experimental]]
* [[National accounts|National accounting]]
 
 
| heading4 = [[JEL classification codes|Fields and subfields]]
| content4 =
* [[Behavioral economics|Behavioral]]
* [[Cultural economics|Cultural]]
* [[Evolutionary economics|Evolutionary]]
 
* [[Economic growth|Growth]]
* [[Development economics|Development]]
* [[Economic history|History]]
 
* [[International economics|International]]
* [[Economic system]]s
 
* [[Monetary economics|Monetary]] and [[Financial economics]]
 
* [[Public economics|Public]] and [[Welfare economics]]
 
* [[Health economics|Health]]
* [[Education economics|Education]]
* [[Welfare]]
 
* [[Demographic economics|Population]]
* [[Labour economics|Labour]]
* [[Personnel economics|Personnel]]
 
* [[Managerial economics|Managerial]]
* [[Computational economics|Computational]]
 
* [[Business economics|Business]]
* [[Information economics|Information]]
* [[Game theory]]
 
* [[Industrial organization]]
* [[Law and economics|Law]]
 
* [[Agricultural economics|Agricultural]]
* [[Natural resource economics|Natural resource]]
 
* [[Environmental economics|Environmental]]
* [[Ecological economics|Ecological]]
 
* [[Urban economics|Urban]]
* [[Rural economics|Rural]]
* [[Regional science|Regional]]
* [[Economic geography|Geography]]
 
| heading5 = [[:Category:Economics lists|Lists]]
| content5 =
* [[List of economists|Economists]]
* [[List of economics journals|Journals]]
* [[List of important publications in economics|Publications]]
 
* [[:Category:Economics|Categories]]
* [[Index of economics articles|Index]]
* [[Outline of economics|Outline]]
 
| heading6 = [[Economy|The economy: concept and history]]
| heading7style=background:#ccccdd
| heading7 = [[:Portal:Business and economics|Business and economics portal]]
| navbar=off
| belowstyle= background:#ccccdd; line-height:100%; font-size: 100%; border-top: 1px solid #BEBEBE; text-align:right; padding:0.0em 0.5em; font-weight:normal;
| below={{navbar|Economics sidebar|text= This sidebar:}}
}}
|}
<br clear="all"/>
===Line-break inconsistency between view version of sidebar & sidebar line in article links===
In the view version [[Template:Economics sidebar]], one content line of the first section looks like this:
:[[Economic methodology|Methodology]] • [[Heterodox economics|Heterodox approaches]]
 
with links to [[Economic methodology]] and [[Heterodox economics]].
 
But at [[Economic methodology]], the sidebar display looks like this:
::'''Methodology''' •<br/>
:[[Heterodox economics|Heterodox approaches]].
 
And similarly for [[Heterodox economics]], it looks like this:
::[[Economic methodology|Methodology]] •<br/>
:'''Heterodox approaches'''.
 
I haven't found any other Econ sidebar articles with the same display problem. That is, the sidebar works fine for ''all'' lines elsewhere (e.g., [[History of economic thought]]). Given the long length of the original line, are any of the following sidebar parameters suggested for change to fix the problem?
:| bodystyle = border-collapse:collapse; width:auto
:| headingstyle = padding:0.1em 0.0em; background-color: #dde; border: 1px solid #bebebe; font-size:97%
Thank you. --[[User:Thomasmeeks|Thomasmeeks]] ([[User talk:Thomasmeeks|talk]]) 17:42, 19 December 2012 (UTC)
: if you set the width to auto, it should not wrap any lines, but should set the width of the sidebar to be the minimum width necessary for each line. the current version of the template has "width:18em", which is enforcing a width of 18em. if you do use "width:auto", you need to make sure you specify all the line breaks manually, which is a pain. [[User:Frietjes|Frietjes]] ([[User talk:Frietjes|talk]]) 18:59, 19 December 2012 (UTC)
::Right again, sir!
::I made this Edit at http://en.wikipedia.org/w/index.php?title=Template:Economics_sidebar&curid=19081399&diff=528850514&oldid=527739446Template:Economics sidebar:
:::FROM: | bodystyle = width:18em;border-collapse:collapse
:::TO: | bodystyle = width:auto; border-collapse:collapse
::Within a few minutes, the problems mentioned above for the Econ sidebars displayed at [[Economic methodology]] and [[Heterodox economics]] were corrected.
::The blank line in Edit mode between each each view-mode ContentX line were already in [[Template:Economics sidebar]]. So the edit above required no added individual line formatting to fix the problem. Thank you so. --[[User:Thomasmeeks|Thomasmeeks]] ([[User talk:Thomasmeeks|talk]]) 20:56, 19 December 2012 (UTC)
== Edit request on 16 January 2013 ==
 
{{edit protected|answered=yes}}
<!-- Begin request -->
The repeated bits of styling code for [[Template:Celtic mythology|this Sidebar template]] prompted me to wonder whether Sidebar had a "basestyle" parameter in the same vein as [[Template:Navbox]]. As it didn't, I've added one to [http://en.wikipedia.org/w/index.php?title=Template:Sidebar/sandbox&oldid=533302165 this sandbox version] and it appears to work correctly with the test I added at the start of the [[Template:Sidebar/testcases|testcases]] page. So, if it does look legitimate, please replace the current Sidebar code accordingly and I'll update the documentation.
<!-- End request -->
[[User:CsDix|CsDix]] ([[User talk:CsDix|talk]]) 02:28, 16 January 2013 (UTC)
 
: As loathe as I am to make this any more customisable, this actually helps to reduce the amount of code required to style sidebars in most cases and so I've synced. Thanks. [[User:Thumperward|Chris Cunningham (user:thumperward)]] ([[User talk:Thumperward|talk]]) 10:08, 23 January 2013 (UTC)
:* Thank ''you'' for making the edit. I don't think it makes the template any more customisable, but, as you say, can streamline it. And, no need, I feel, to loathe customisation &ndash; I can see that "one size doesn't fit all", especially given the scope to which Wikipedia aspires. Thanks again, [[User:CsDix|CsDix]] ([[User talk:CsDix|talk]]) 02:50, 25 January 2013 (UTC)
== Edit request on 21 February 2013 ==
 
{{edit protected|answered=yes}}
<!-- Begin request -->
At present, the default{{\}}fall-back width for this template is 22.0em (line 6). But, on smaller screens{{\}}windows{{\}}resolutions, e.g. 1024 by 768, this is on the large side. Meanwhile, many Sidebars seem to have their widths set at or around 18.0em &ndash; see, for instance, those [[:Category:Political ideology templates]] using Sidebar. May, therefore, Sidebar's default width be decreased to a compromise 20.0em, please? (To do so, replace line 6 of the present code with the following:)
 
<code>{{nbsp|11}}<nowiki>-->width:{{#if:{{{width|}}} |{{{width}}} |20.0em<!--default/fallback width no greater than 20.0em, please, for the sake of smaller screens/windows-->}};<!--</nowiki></code>
 
<!-- End request -->
[[User:CsDix|CsDix]] ([[User talk:CsDix|talk]]) 01:58, 21 February 2013 (UTC)
:I've deactivated procedurally, since this is a rather innocuous but large change which would need consensus. I personally don't agree that this is an issue; the average screen size today is [http://www.w3schools.com/browsers/browsers_display.asp larger than] 1024px.[http://www.geek.com/articles/chips/most-popular-screen-resolution-increases-to-1366-x-768-20120411/] --[[User:Izno|Izno]] ([[User talk:Izno|talk]]) 03:10, 21 February 2013 (UTC)
:That said, I personally do not understand why we are hard-declaring the width here rather than adding that to the CSS using the <code>vertical-navbox</code> class. I would say the same for the cellspacing and cellpadding, which are deprecated attributes on top of that. And why are we providing all these custom parameters style parameters when the simple use of bodystyle would suffice? *sigh* --[[User:Izno|Izno]] ([[User talk:Izno|talk]]) 03:15, 21 February 2013 (UTC)
:* Why deactivate? Why not make the change, then see if people come running to have it undone or modified &ndash; in other words, ''prompt them'' to express a consensus &ndash; ? Right now, I must say your action seems to me to smack of something like censorship.
:: As regards width not being an issue, I'm afraid there are plenty of places where 1024 by 768 is the highest decent resolution available. Let's not lose sight of how well-equipped many of us might be. Meanwhile, on the other hand, how about Wikipedia in windows that aren't full-screen?
:: And, as regards custom parameters, who says one size (bodystyle, defaults) should fit all..?
:: [[User:CsDix|CsDix]] ([[User talk:CsDix|talk]]) 03:32, 21 February 2013 (UTC)
:::<p>Hardly censorship. The template you used should only be used for uncontroversial changes. This is controversial. Therefore, the template should not have been used. QED.</p><p>Those places are steadily becoming fewer. Should we limit everyone for the sake of the few (less than 10% now!)? In general though, the pages which use this template [[graceful failure|fail gracefully]].</p><p>I'm simply saying on the point of the custom parameters that one parameter ''would'' fit all: "style" or "bodystyle" (whichever we want to call it). --[[User:Izno|Izno]] ([[User talk:Izno|talk]]) 03:41, 21 February 2013 (UTC)</p>
:::: It ''smacks of'' censorship. Imagine a different point of view for a moment.
:::: I don't know whether or not changing the default width will be controversial. How do you know it will be &ndash; beyond yourself and anyone you know who shares your point of view &ndash; ?
:::: Why should a reduction of 2.0em be regarded as if only a limitation? Another point of view is that 22.0em rather than 20.0em is a greater limitation on the amount of text that can be displayed beside the sidebar, regardless of resolution etc.
:::: As regards style/bodystyle, then, I'm not sure what point you're making &ndash; apologies if I'm missing something obvious.
:::: [[User:CsDix|CsDix]] ([[User talk:CsDix|talk]]) 04:00, 21 February 2013 (UTC)
== Edit request on 24 February 2013 ==
 
{{edit protected|answered=yes}}
<!-- Begin request -->
Hello. I noticed that a means to specify the class for any particular heading and content section (e.g. in order to switch, temporarily, from hlist to plainlist) hasn't yet been implemented, so [http://en.wikipedia.org/w/index.php?title=Template:Sidebar/sandbox&oldid=540010153 this] version of the template in the sandbox should now provide this possibility (look for <nowiki>{{{headingNclass}}}es and {{{contentNclass}}}es</nowiki>). If all looks okay, please make it the live version.
 
<!-- End request -->
[[User:CsDix|CsDix]] ([[User talk:CsDix|talk]]) 05:00, 24 February 2013 (UTC)
 
: Adding even more customisation here rather belies the point of standardising it in the first place (one key reason for doing so was to attempt to increase the overall consistency of different sidebars). Is there a specific case where there is a consensus that this is necessary? [[User:Thumperward|Chris Cunningham (user:thumperward)]] ([[User talk:Thumperward|talk]]) 12:14, 27 February 2013 (UTC)
:: I fear you may be missing the point (hint: the parenthesis). Thanks, though, for your attention. [[User:CsDix|CsDix]] ([[User talk:CsDix|talk]]) 18:51, 27 February 2013 (UTC)
::: Again, is there a concrete example here? Do we really want to have a mix of different list types in a single sidebar? Please don't continue to re-enable editprotected requests while they're disputed. [[User:Thumperward|Chris Cunningham (user:thumperward)]] ([[User talk:Thumperward|talk]]) 10:13, 28 February 2013 (UTC)
:::: [[Template:Thermodynamics]], were it to be converted to use semantic lists while preserving the current format, would. However, I'm not sure whether I would support this request. It does seem to me that we're losing the opportunity for microformats (which I'm not sure we want in a sidebar). That said, I think this request would add more complexity than is worthwhile, and so I think on the few cases where we might want to do it, we can just change the classes ourselves. Just musing here. --[[User:Izno|Izno]] ([[User talk:Izno|talk]]) 17:03, 28 February 2013 (UTC)
:::: Never mind. As Izno indicates, it's something that can be done manually (i.e. less elegantly) anyway. Don't see why a mix would be a problem and the circumstance I had in mind was an hlist of links each of whose length meant they were rendered one per line, i.e. as if a plainlist. Just thought it was an oversight worth correcting, but I guess not. [[User:CsDix|CsDix]] ([[User talk:CsDix|talk]]) 00:39, 1 March 2013 (UTC)