Open main menu

Changes

Template:Infobox/doc

791 bytes added, 16:48, 1 October 2013
For example, this code will display properly:
{{Infobox|name = Infobox/doc |header3 = Section 1 |label48 = Label A | data48 = Data A | data92 = Data B |label136 = Label C | data136 = Data C |header177 = Section 2 |label215 = Label D | data215 = Data D}}<pre div style="overflow:auto"> |header3 header<b style="color:black;background:#AFA">3</b> = Section 1 |label48 label<b style="color:black;background:#AFA">48</b> = Label A |data48 data<b style="color:black;background:#AFA">48</b> = Data A |data92 data<b style="color:black;background:#AFA">92</b> = Data B |label136 label<b style="color:black;background:#AFA">136</b> = Label C |data136 data<b style="color:black;background:#AFA">136</b> = Data C |header177 header<b style="color:black;background:#AFA">177</b> = Section 2 |label215 label<b style="color:black;background:#AFA">215</b> = Label D |data215 data<b style="color:black;background:#AFA">215</b> = Data D</prediv>
But in this code, only Section 1, Label A and Data A will be displayed, because Data B is numbered too far away from Data A (and then all the rest is ignored):
{{Infobox|name = Infobox/doc |header3 = Section 1 |label48 = Label A | data48 = Data A | data102 = Data B |label103 = Label C | data103 = Data C |header115 = Section 2 |label120 = Label D |data120 = Data D}}<pre div style="overflow:auto"> |header3 header<b style="color:black;background:#AFA">3</b> = Section 1 |label48 label<b style="color:black;background:#AFA">48</b> = Label A |data48 data<b style="color:black;background:#AFA">48</b> = Data A |data102 data<b style="color:black;background:#FAA">102</b> = Data B |label103 label<b style="color:black;background:#AFA">103</b> = Label C |data103 data<b style="color:black;background:#AFA">103</b> = Data C |header115 header<b style="color:black;background:#AFA">115</b> = Section 2 |label120 label<b style="color:black;background:#AFA">120</b> = Label D |data120 data<b style="color:black;background:#AFA">120</b> = Data D</prediv>
Note that parameter values may be blank - parameters are counted unless they are completely absent from the template invocation. There are also similar limitations for image parameters and subheader parameters. In those cases parameters should not be numbered more than 10 apart.
Anonymous user