Wikipedia:Don't use hiddenStructure: Difference between revisions

Content deleted Content added
m Problems: link PHP and ASP to articles
Line 13:
| [[Image:Lynx.blue whale.meta.png|thumb|100px|[[Blue Whale]] using meta-templates]]
|}
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 [[Active Server Pages|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.