Module talk:Sidebar: Difference between revisions

Content deleted Content added
navigation boxes with common arguments?: example of reformatting template navbox/sidebar
Line 103:
 
* Thanks for spotting. I've clarified the code and documentation to accept only "none". You're probably correct about omitting the line along with the Tnavbar, so I'll look into that -- do you have any examples to hand? [[User:Sardanaphalus|Sardanaphalus]] ([[User talk:Sardanaphalus|talk]]) 20:11, 31 October 2008 (UTC)
 
== Code revamp, and discussion ==
 
I've started a sandbox page at {{tl|sidebar/sandbox}} to play with the future of this template.
 
As mentioned in threads above, the template arbitrarily deviates from the syntax of other meta-templates. In addition, its layout differs to that of its closest cousin display-wise, {{tl|infobox}}, in that it uses "exttitle" where "title" is used in {{tl|infobox}}, adds a "topimage" at the start of the table, and uses "title" for what {{tl|infobox}} calls "above". IMO the layout should be normalised against that of {{tl|infobox}} before it is so widely used that updating existing deployments becomes impossible. This will entail manually updating those deployments against the following syntax:
 
# {{{exttitle}}} -> {{{title}}}
# {{{topimage}}}, {{{topimagecaption}}} and {{{title}}} -> {{{above}}}. This will require more attention than a simple copy-paste.
# {{{heading''X''}}} -> {{{header''X''}}} everywhere
# {{{content''X''}}} -> {{{data''X''}}} everywhere
 
There's also a rather ridiculous level of customisation allowed currently, such as per-entry style overrides. I'm not sure that allowing these is a good idea, as it could be seen to encourage the styles to be overridden at will.
 
Anyway, I'd appreciate any thoughts on this. The next step will be to temporarily allow the {{tl|sidebar}} code to deal with legacy naming while the existing deployments are fixed, then to update the existing deployments, then to remove the compatibility code. [[user:thumperward|Chris Cunningham (not at work)]] - [[user talk:thumperward|talk]] 12:43, 3 November 2008 (UTC)