Wikipedia:Don't use hiddenStructure: Difference between revisions
Content deleted Content added
Locke Cole (talk | contribs) 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).
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.
|