Changes

Jump to navigation Jump to search

Template:Infobox/doc

634 bytes added, 16:15, 2 October 2013
===== Hiding headers when all data fields are hidden =====
You can also make headers optional in a similar way. Consider this example:{{Infobox | title = Example of an undesirable header | header1 = Undesirable header | label2 = Item 1 | data2 = | label3 = Item 2 | data3 = | label4 = Item 3 | data4 = | header5 = Static header | label6 = Static item | data6 = Static value}}<pre style="overflow:auto">{{Infobox | title = Example of an undesirable header | header1 = Undesirable header | label2 = Item 1 | data2 = | label3 = Item 2 | data3 = | label4 = Item 3 | data4 = | header5 = Static header | label6 = Static item | data6 = Static value}}</pre>{{clear}} If you want a the first header to appear only if one or more of the data fields that fall under it are filled, one could use the following pattern as an example of how to do it:
{{Infobox
Anonymous user

Navigation menu