Template talk:Semitic languages

From Wikipedia, the free encyclopedia
Jump to: navigation, search
WikiProject Languages (Rated Template-class)
WikiProject icon This template is within the scope of WikiProject Languages, a collaborative effort to improve the coverage of standardized, informative and easy-to-use resources about languages on Wikipedia. If you would like to participate, please visit the project page, where you can join the discussion and see a list of open tasks.
 Template  This template does not require a rating on the project's quality scale.
 

Note on my changes[edit]

I started out by simply wanting to switch to horizontal list formatting, but found the structure of the template hard to follow, so I overhauled it so as to:

  • display fully opened for easier editing
  • display only the 3 top-level headers when opened on article pages
  • allow the whole of a single sub-group to display, either by specifying an unnamed parameter (standard practice for navboxes) or using "expanded=" (as it did previously)
  • eliminate the very costly use of nesting {{Navbox with collapsible groups}}

The improvement in efficiency is shown by the pre-processor report:

old version
NewPP limit report
Preprocessor node count: 5106/1000000
Post-expand include size: 387175/2048000 bytes
Template argument size: 340815/2048000 bytes
Expensive parser function count: 0/500
new version
NewPP limit report
Preprocessor node count: 3370/1000000
Post-expand include size: 134967/2048000 bytes
Template argument size: 130847/2048000 bytes
Expensive parser function count: 0/500

--NSH001 (talk) 20:47, 11 May 2012 (UTC)