Wikipedia:Don't use hiddenStructure: Difference between revisions
Content deleted Content added
if you noticed this edit without looking at the history, then hiddenStructure obviously does work... feel free to revert |
→Problems: Google cache only shows hiddenstructure when the template call is malformed - http://en.wikipedia.org/w/index.php?title=Cardinal_Health&diff=43842674&oldid=41480543 |
||
Line 14:
|}
The problem with using ''hiddenStructure'' is that it hides rows in a non-standard way. Whereas other websites hide data by simply not sending it out from the server<ref>Most websites use PHP or ASP to conditionally send data from the server. More advanced designs cache results so PHP/ASP scripts are only executed once for each possible outcome.</ref>, ''hiddenStructure'' defers this hiding process to the client. Because of this, some non-CSS aware or compliant browsers incorrectly render pages using this hack (see pictures at right).
Some pages minimize the damage by only displaying the parameter if it's actually non-blank (using the syntax <code><nowiki>{{{parameter|}}}</nowiki></code>). In this way only the row is displayed, not the ugly <nowiki>{{{parameter}}}</nowiki> parameter name. Of course in templates with large numbers of conditional rows, this still results in unnecessary data being displayed to non-CSS compliant browsers.
|