Module talk:Sidebar: Difference between revisions

Content deleted Content added
Sardanaphalus (talk | contribs)
Sardanaphalus (talk | contribs)
Code revamp, and discussion: trying to clarify table layout (+third column)
Line 217:
::: Thinking of the ability to switch between a horizontal (Navbox) and vertical (Sidebar) template design, perhaps Navbox, Infobx and Sidebar should all use the same parameter names in their code but with the corresponding established names included as alternatives, i.e.
<pre style="margin-left:6.0em; font-size:95%; overflow auto;">
 
ESTABLISHED USE IN CODE ALTERNATIVES
 
{{Infobox
|name = {{{name}}}
|title = {{{title1|}}} {{{outertitle|{{{title}}}}}}}}}
|image = {{{image1|}}} {{{topimage/ [upperimage|{{{image}}}}}}?]}}}
|above = {{{title2|}}} {{{innertitle|{{{above}}}}}}}}}
|[lowerimage =] [ {{{image2|}}} ] [ {{{lowerimage}}}}}} ]
|headerX/headingX = {{{headingX|}}} {{{headerX}}}}}}
|labelX = {{{labelX}}}
|dataX/contentX = {{{dataX|}}} {{{contentX}}}}}}
|below = {{{below}}}
}}
 
{{Navbox
|name = {{{name}}}
|title = {{{title2|}}} [ {{{innertitle|{{{title}}}}}}}}} ]
|above = {{{above}}}
|image = {{{image1|{{{image}}}}}}
|imageleft = {{{image2|{{{imageleft}}}}}}
|groupX = {{{labelX|{{{groupX}}}}}}
|listX = {{{dataX|}}} {{{contentX|{{{listX}}}}}}}}}
|[headingX =] [ an amended {{{dataX|{{{contentX|{{{listX}}}}}}}}} amended...? ]
|below = {{{below}}}
}}
 
{{Sidebar
|name = {{{name}}}
|outertitle = {{{title1|{{{outertitle}}}}}}
|topimage/ [upperimage?] = {{{image1|{{{topimage/upperimage}}}}}}
|pretitle = {{{pretitle}}}
|title = {{{title2|}}} {{{innertitle}}}}}}
|image = {{{image2|}}} {{{lowerimage|{{{image}}}}}}}}}
|[above =] [ {{{heading1|}}} ] [ {{{header1}}}}}} ]
|headingX/headerX = {{{headingX|}}} {{{headerX}}}}}}
|contentX/dataX = {{{dataX|}}} {{{contentX}}}}}}
|below = {{{below}}}
}}
</pre>