Wikipedia:Don't use hiddenStructure: Difference between revisions

Content deleted Content added
m rvt
removing Google cache assertion that Locke disproved himself. it was cause by a malformed template call, not hiddenstructure itself.
Line 13:
|}
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).
 
{| style="float: right; border: none; background: transparent; margin-left: 1em; padding: 0; clear: both;"
|-
| [[Image:Firefox.cardinal health.css.googlecache.png|thumb|150px|[[Cardinal Health]] as seen in Google's cache (via Firefox).]]
|}
 
Some third party websites which host Wikipedia content may also have trouble with hiddenStructure. For example, Google's cache of webpages has been shown to have hiddenStructure displayed as raw text (see picture at lower 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.