Difference between revisions of "Template:Infobox 2.0"
Dorsal Axe (talk | contribs) (A tweak to increase title width when color bg is not set to be displayed) |
PanchamBro (talk | contribs) m (adding the seventh wide label width bottom) |
||
(65 intermediate revisions by 8 users not shown) | |||
Line 1: | Line 1: | ||
<!-- ROUNDY VARIABLE STORAGE - PLEASE DO NOT ALTER --><!-- | <!-- ROUNDY VARIABLE STORAGE - PLEASE DO NOT ALTER --><!-- | ||
− | -->{{#vardefine:rowcount|5}}{{#vardefine:rowcount|{{#expr:{{#var:rowcount}}{{#if:{{{data3|}}}|+1}}{{#if:{{{data4|}}}|+2}}{{#if:{{{data5|}}}|+4}}{{#if:{{{data6|}}}|+8}}{{#if:{{{data7|}}}|+16}}{{#if:{{{data8|}}}|+32}}{{#if:{{{data9|}}}|+64}}{{#if:{{{data10|}}}|+128}}{{#if:{{{data11|}}}|+256}}{{#if:{{{data12|}}}|+512}} }} }} | + | -->{{#vardefine:rowcount|5}}{{#vardefine:rowcount|{{#expr:{{#var:rowcount}}{{#if:{{{data3|}}}|+1}}{{#if:{{{data4|}}}|+2}}{{#if:{{{data5|}}}|+4}}{{#if:{{{data6|}}}|+8}}{{#if:{{{data7|}}}|+16}}{{#if:{{{data8|}}}|+32}}{{#if:{{{data9|}}}|+64}}{{#if:{{{data10|}}}|+128}}{{#if:{{{data11|}}}|+256}}{{#if:{{{data12|}}}|+512}}{{#if:{{{data13|}}}|+1024}} }} }} |
<!-- --> | <!-- --> | ||
<!-- INFOBOX BEGINS HERE --> | <!-- INFOBOX BEGINS HERE --> | ||
<!-- --> | <!-- --> | ||
− | {| class="infobox roundlast" style="background: hsl({{{primarycolor|0 0}}}% {{{overrideprimary|70%}}});" | + | {| class="infobox roundlast {{{colorclass|}}}" {{#if:{{{colorclass|}}}||style="background: hsl({{{primarycolor|0 0}}}% {{{overrideprimary|70%}}});"}} |
|- | |- | ||
| colspan=6 | | | colspan=6 | | ||
− | {| | + | {| id="header" style="text-align:center; width: 100%; {{#if:{{{colorclass|}}}||background: hsl({{{primarycolor|0 0}}}% {{{overrideprimary|70%}}});}}"| |
<!-- --> | <!-- --> | ||
Line 14: | Line 14: | ||
|- | |- | ||
{{#if:{{{lefticon|}}}| | {{#if:{{{lefticon|}}}| | ||
− | {{!}} align="left" style="width:{{#if:{{{titlecolor|}}}|60|32}}px; padding:0 0 4px 5px;" {{!}} {{{lefticon|}}} | }} | + | {{!}} id="header-l" align="left" style="{{#if:{{{colorclass|}}}||background: hsl({{{primarycolor|0 0}}}% {{{overrideprimary|70%}}});}} width:{{#if:{{{titlecolor|}}}|60|32}}px; padding:0 0 4px 5px;" {{!}} {{{lefticon|X}}} | }} |
<!-- --> | <!-- --> | ||
<!-- TITLE --> | <!-- TITLE --> | ||
<!-- --> | <!-- --> | ||
− | ! style="{{#if:{{{titlecolor|}}}|background: {{{titlecolor|}}}; border: 2px solid {{{titlecolor|}}}; {{roundy|20px}} padding: 0 15px 0 15px;}} font-size: 1.5em; align="center" | < | + | ! id="title" style="{{#if:{{{titlecolor|}}}|background: {{{titlecolor|}}}; border: 2px solid {{{titlecolor|}}}; {{roundy|20px}} padding: 0 15px 0 15px;|}} font-size: 1.5em;" align="center" | <span style="color: {{{textcolor|#000}}};">{{{title|Infobox}}}</span> |
<!-- --> | <!-- --> | ||
<!-- RIGHT ICON --> | <!-- RIGHT ICON --> | ||
<!-- --> | <!-- --> | ||
{{#if:{{{righticon|}}}| | {{#if:{{{righticon|}}}| | ||
− | {{!}} align="right" style="border-radius:0; width:{{#if:{{{titlecolor|}}}|60|32}}px; padding:0 0 4px 5px;" {{!}} {{{righticon|}}} | }} | + | {{!}} id="header-r" align="right" style="{{#if:{{{colorclass|}}}||background: hsl({{{primarycolor|0 0}}}% {{{overrideprimary|70%}}});}} border-radius:0; width:{{#if:{{{titlecolor|}}}|60|32}}px; padding:0 0 4px 5px;" {{!}} {{{righticon|}}} | }} |
|} | |} | ||
Line 30: | Line 30: | ||
<!-- --> | <!-- --> | ||
|- {{#if: {{{leftlink|}}}| | |- {{#if: {{{leftlink|}}}| | ||
− | {{!-}} | + | {{!-}} |
− | {{!}} colspan=6 {{!}} | + | {{!}} colspan=6 style="background: hsl({{#if:{{{secondarycolor|}}}|{{{secondarycolor|}}}|{{{primarycolor|0 0}}}}}% 70%);" {{!}} |
− | {{(!}} style="width: 100%; background: hsl({{#if:{{{secondarycolor|}}}|{{{secondarycolor|}}}|{{{primarycolor|0 0}}}}}% 85%); {{roundy| | + | {{(!}} style="width: 100%; background: hsl({{#if:{{{secondarycolor|}}}|{{{secondarycolor|}}}|{{{primarycolor|0 0}}}}}% 85%); {{roundy|20px}}" |
− | {{!-}} | + | {{!-}} id="links" |
− | {{!}} colspan=3 align="left" style="font-family:coustard;"{{!}} ←[[{{{leftlink|}}}]] | + | {{!}} colspan=3 align="left" style="font-family:coustard; background: inherit;"{{!}} ←[[{{{leftlink|}}}]] |
− | {{!}} colspan=3 align="right" style="font-family:coustard;"{{!}} [[{{{rightlink|}}}]]→ | + | {{!}} colspan=3 align="right" style="font-family:coustard; background: inherit;"{{!}} [[{{{rightlink|}}}]]→ |
{{!)}} | {{!)}} | ||
|}} | |}} | ||
Line 44: | Line 44: | ||
|- {{#if: {{{subtitleabove|}}}| | |- {{#if: {{{subtitleabove|}}}| | ||
{{!-}} align="center" | {{!-}} align="center" | ||
− | {{!}} colspan="6" style="background: hsl({{#if:{{{secondarycolor|}}}|{{{secondarycolor|}}}|{{{primarycolor|0 0}}}}}% 85%); {{roundy|10px}}" {{!}} {{{subtitleabove|}}}|}} | + | {{!}} class=color-red colspan="6" style="{{#if:{{{colorclass|}}}||background: hsl({{#if:{{{secondarycolor|}}}|{{{secondarycolor|}}}|{{{primarycolor|0 0}}}}}% 85%);}} {{roundy|10px}}" {{!}} {{{subtitleabove|}}}|}} |
<!-- --> | <!-- --> | ||
Line 50: | Line 50: | ||
<!-- --> | <!-- --> | ||
|- | |- | ||
− | | class="roundy" colspan="6" style=" | + | | class="roundy" colspan="6" style=" text-align:center; border-radius: 9px; width:100%; padding:4px;" | {{#if:{{{image|}}}|{{{image}}}|[[File:Nia.png|200px|alt=No image available]]}}{{#if:{{{caption|}}}|<br>{{{caption}}}}}<br>{{#if:{{{image2|}}}|{{{image2}}}|}}{{#if:{{{caption2|}}}|<br>{{{caption2}}}}} |
<!-- --> | <!-- --> | ||
Line 56: | Line 56: | ||
<!-- --> | <!-- --> | ||
|- {{#if: {{{subtitlebelow|}}}| | |- {{#if: {{{subtitlebelow|}}}| | ||
− | {{!-}} | + | {{!-}} style="text-align:center; margin: 0 auto;" |
− | {{!}} class="roundy" colspan="6" {{!}} {{#switch: {{{subtitlebelow|}}}| gallery = <div style="background: #BF84F1; border-radius: 9px; width:100%;">{{#ifexist: {{PAGENAME}}/Gallery|[[File:Menu Camera NH Icon.png|25px|link={{PAGENAME}}/Gallery]] [[{{{1|{{PAGENAME}}}}}/Gallery|<span style="font-family: Coustard; color: white; text-shadow: 2px 2px 0 #9230e8;">Image | + | {{!}} class="roundy" colspan="6" {{!}} {{#switch: {{{subtitlebelow|}}}| gallery = <div style="background: #BF84F1; border-radius: 9px; width:100%;">{{#ifexist: {{PAGENAME}}/Gallery|[[File:Menu Camera NH Icon.png|25px|link={{PAGENAME}}/Gallery]] [[{{{1|{{PAGENAME}}}}}/Gallery|<span style="font-family: Coustard; color: white; text-shadow: 2px 2px 0 #9230e8;">Image gallery</span>]]|}}</div>| update = <div style="background: #5fb983; border-radius: 9px; width:100%;">{{#ifexist: {{PAGENAME}}/Update history|[[File:Pete NH Character Icon.png|25px|link={{PAGENAME}}/Update history]] [[{{{1|{{PAGENAME}}}}}/Update history|<span style="font-family: Coustard; color: white; text-shadow: 2px 2px 0 #27593b;">Update history</span>]]|}}</div> | #default = <div style="border-radius: 9px; width: 100%;">{{{subtitlebelow|}}}</div>}} }} |
+ | |- {{#if: {{{subtitlebelow2|}}}| | ||
+ | {{!-}} style="text-align:center; margin: 0 auto;" | ||
+ | {{!}} class="roundy" colspan="6" {{!}} {{#switch: {{{subtitlebelow2|}}}| gallery = <div style="background: #BF84F1; border-radius: 9px; width:100%;">{{#ifexist: {{PAGENAME}}/Gallery|[[File:Menu Camera NH Icon.png|25px|link={{PAGENAME}}/Gallery]] [[{{{1|{{PAGENAME}}}}}/Gallery|<span style="font-family: Coustard; color: white; text-shadow: 2px 2px 0 #9230e8;">Image gallery</span>]]|}}</div>| update = <div style="background: #5fb983; border-radius: 9px; width:100%;">{{#ifexist: {{PAGENAME}}/Update history|[[File:Pete NH Character Icon.png|25px|link={{PAGENAME}}/Update history]] [[{{{1|{{PAGENAME}}}}}/Update history|<span style="font-family: Coustard; color: white; text-shadow: 2px 2px 0 #27593b;">Update history</span>]]|}}</div> | #default = <div style="border-radius: 9px; width: 100%;">{{{subtitlebelow2|}}}</div>}} }} | ||
<!-- --> | <!-- --> | ||
Line 64: | Line 67: | ||
|- {{#if:{{{leftdata|}}}| | |- {{#if:{{{leftdata|}}}| | ||
{{!-}} | {{!-}} | ||
− | ! colspan="{{#if:{{{middledata|}}}|2|3}}" style="min-width:50px; background: hsl({{#if:{{{secondarycolor|}}}|{{{secondarycolor|}}}|{{{primarycolor|0 0}}}}}% {{{overridesecondary|85%}}}); {{roundytl|9px}}; text-align: center;" {{!}} {{{leftlabel|}}} | + | ! id="tbl-t1" colspan="{{#if:{{{middledata|}}}|2|3}}" style="min-width:50px; {{#if:{{{colorclass|}}}||background: hsl({{#if:{{{secondarycolor|}}}|{{{secondarycolor|}}}|{{{primarycolor|0 0}}}}}% {{{overridesecondary|85%}}});}} {{roundytl|9px}}; text-align: center;" {{!}} {{{leftlabel|}}} |
{{#if:{{{middledata|}}}| | {{#if:{{{middledata|}}}| | ||
− | ! colspan="2" style="min-width:50px; background: hsl({{#if:{{{secondarycolor|}}}|{{{secondarycolor|}}}|{{{primarycolor|0 0}}}}}% {{{overridesecondary|85%}}}); text-align: center;" {{!}} {{{middlelabel|}}} }} | + | ! id="tbl-t2" colspan="2" style="min-width:50px; {{#if:{{{colorclass|}}}||background: hsl({{#if:{{{secondarycolor|}}}|{{{secondarycolor|}}}|{{{primarycolor|0 0}}}}}% {{{overridesecondary|85%}}});}} text-align: center;" {{!}} {{{middlelabel|}}} }} |
− | ! colspan="{{#if:{{{middledata|}}}|2|3}}" style="min-width:50px; background: hsl({{#if:{{{secondarycolor|}}}|{{{secondarycolor|}}}|{{{primarycolor|0 0}}}}}% {{{overridesecondary|85%}}}); {{roundytr|9px}}; text-align: center;" {{!}} {{{rightlabel|}}} | + | ! id="tbl-t3" colspan="{{#if:{{{middledata|}}}|2|3}}" style="min-width:50px; {{#if:{{{colorclass|}}}||background: hsl({{#if:{{{secondarycolor|}}}|{{{secondarycolor|}}}|{{{primarycolor|0 0}}}}}% {{{overridesecondary|85%}}});}} {{roundytr|9px}}; text-align: center;" {{!}} {{{rightlabel|}}} |
{{!-}} | {{!-}} | ||
− | {{!}} colspan="{{#if:{{{middledata|}}}|2|3}}" style="min-width:50px | + | {{!}} headers="tbl-t1" colspan="{{#if:{{{middledata|}}}|2|3}}" style="min-width:50px; text-align: center; {{#if: {{{leftdata2|}}} ||{{roundybl|9px}}}}" {{!}} {{{leftdata|}}} |
{{#if:{{{middledata|}}}| | {{#if:{{{middledata|}}}| | ||
− | {{!}} colspan="2" style="min-width:50px; background:# | + | {{!}} headers="tbl-t2" colspan="2" style="min-width:50px; text-align: center;" {{!}} {{{middledata|}}} }} |
− | {{!}} colspan="{{#if:{{{ | + | {{!}} headers="tbl-t3" colspan="{{#if:{{{middledata|}}}|2|3}}" style="min-width:50px; text-align: center; {{#if: {{{leftdata2|}}} ||{{roundybr|9px}}}}" {{!}} {{{rightdata|}}} }} |
+ | |||
+ | <!-- --> | ||
+ | <!-- SECOND TRIO LABEL --> | ||
+ | <!-- --> | ||
+ | |- {{#if:{{{leftdata2|}}}| | ||
+ | {{!-}} | ||
+ | ! id="tbl-t4" colspan="{{#if:{{{middledata2|}}}|2|3}}" style="min-width:50px; {{#if:{{{colorclass|}}}||background: hsl({{#if:{{{secondarycolor|}}}|{{{secondarycolor|}}}|{{{primarycolor|0 0}}}}}% {{{overridesecondary|85%}}});}} text-align: center;" {{!}} {{{leftlabel2|}}} | ||
+ | {{#if:{{{middledata2|}}}| | ||
+ | ! id="tbl-t5" colspan="2" style="min-width:50px; {{#if:{{{colorclass|}}}||background: hsl({{#if:{{{secondarycolor|}}}|{{{secondarycolor|}}}|{{{primarycolor|0 0}}}}}% {{{overridesecondary|85%}}});}} text-align: center;" {{!}} {{{middlelabel2|}}} }} | ||
+ | ! id="tbl-t6" colspan="{{#if:{{{middledata2|}}}|2|3}}" style="min-width:50px; {{#if:{{{colorclass|}}}||background: hsl({{#if:{{{secondarycolor|}}}|{{{secondarycolor|}}}|{{{primarycolor|0 0}}}}}% {{{overridesecondary|85%}}});}} text-align: center;" {{!}} {{{rightlabel2|}}} | ||
+ | {{!-}} | ||
+ | {{!}} headers="tbl-t4" colspan="{{#if:{{{middledata2|}}}|2|3}}" style="min-width:50px; text-align: center; {{roundybl|9px}}" {{!}} {{{leftdata2|}}} | ||
+ | {{#if:{{{middledata2|}}}| | ||
+ | {{!}} headers="tbl-t5" colspan="2" style="min-width:50px; text-align: center;" {{!}} {{{middledata2|}}} }} | ||
+ | {{!}} headers="tbl-t6" colspan="{{#if:{{{middledata2|}}}|2|3}}" style="min-width:50px; text-align: center; {{roundybr|9px}}" {{!}} {{{rightdata2|}}} }} | ||
<!-- --> | <!-- --> | ||
Line 79: | Line 97: | ||
|- {{#if:{{{calendar|}}}| | |- {{#if:{{{calendar|}}}| | ||
{{!-}} | {{!-}} | ||
− | ! colspan=6 style="background: hsl({{#if:{{{secondarycolor|}}}|{{{secondarycolor|}}}|{{{primarycolor|0 0}}}}}% {{{overridesecondary|85%}}}); {{roundytop|9px}}" {{!}} {{{calendar|Months}}} | + | ! colspan=6 style="{{#if:{{{colorclass|}}}||background: hsl({{#if:{{{secondarycolor|}}}|{{{secondarycolor|}}}|{{{primarycolor|0 0}}}}}% {{{overridesecondary|85%}}});}} {{roundytop|9px}}" {{!}} {{{calendar|Months}}} |
{{!-}} | {{!-}} | ||
<!-- JAN --> | <!-- JAN --> | ||
Line 92: | Line 110: | ||
{{!}} style="font-family:coustard; font-size:0.8em; {{#switch: {{{may|}}} | yes = background: hsl({{{calcolor|49 100}}}% 85%); | #default = background: hsl(0 0% 95%);}} width:25px; text-align:center" {{!}} [[May|<span style="{{#switch: {{{may|}}} | yes = color: hsl({{{calcolor|49 100}}}% 30%); | #default = color: hsl(0 0% 60%);}}">May</span>]] | {{!}} style="font-family:coustard; font-size:0.8em; {{#switch: {{{may|}}} | yes = background: hsl({{{calcolor|49 100}}}% 85%); | #default = background: hsl(0 0% 95%);}} width:25px; text-align:center" {{!}} [[May|<span style="{{#switch: {{{may|}}} | yes = color: hsl({{{calcolor|49 100}}}% 30%); | #default = color: hsl(0 0% 60%);}}">May</span>]] | ||
<!-- JUN --> | <!-- JUN --> | ||
− | {{!}} style="font-family:coustard; font-size:0.8em; {{#switch: {{{jun|}}} | yes = background: hsl({{{calcolor|49 100}}}% 85%); | #default = background: hsl(0 0% 95%);}} width:25px; text-align:center" {{!}} [[June|<span style="{{#switch: {{{jun|}}} | yes = color: hsl({{{calcolor|49 100}}}% 30%); | #default = color: hsl(0 0% 60%);}}">Jun</span>]] | + | {{!}} style="font-family:coustard; font-size:0.8em; {{#switch: {{{jun|}}} | yes = background: hsl({{{calcolor|49 100}}}% 85%); | #default = background: hsl(0 0% 95%);}} width:25px; text-align:center" {{!}} [[June (month)|<span style="{{#switch: {{{jun|}}} | yes = color: hsl({{{calcolor|49 100}}}% 30%); | #default = color: hsl(0 0% 60%);}}">Jun</span>]] |
{{!-}} | {{!-}} | ||
Line 126: | Line 144: | ||
{{!}} style="font-family:coustard; font-size:0.8em; {{#switch: {{{may2|}}} | yes = background: hsl({{{calcolor2|49 100}}}% 85%); | #default = background: hsl(0 0% 95%);}} width:25px; text-align:center" {{!}} [[May|<span style="{{#switch: {{{may2|}}} | yes = color: hsl({{{calcolor2|49 100}}}% 30%); | #default = color: hsl(0 0% 60%);}}">May</span>]] | {{!}} style="font-family:coustard; font-size:0.8em; {{#switch: {{{may2|}}} | yes = background: hsl({{{calcolor2|49 100}}}% 85%); | #default = background: hsl(0 0% 95%);}} width:25px; text-align:center" {{!}} [[May|<span style="{{#switch: {{{may2|}}} | yes = color: hsl({{{calcolor2|49 100}}}% 30%); | #default = color: hsl(0 0% 60%);}}">May</span>]] | ||
<!-- JUN2 --> | <!-- JUN2 --> | ||
− | {{!}} style="font-family:coustard; font-size:0.8em; {{#switch: {{{jun2|}}} | yes = background: hsl({{{calcolor2|49 100}}}% 85%); | #default = background: hsl(0 0% 95%);}} width:25px; text-align:center" {{!}} [[June|<span style="{{#switch: {{{jun2|}}} | yes = color: hsl({{{calcolor2|49 100}}}% 30%); | #default = color: hsl(0 0% 60%);}}">Jun</span>]] | + | {{!}} style="font-family:coustard; font-size:0.8em; {{#switch: {{{jun2|}}} | yes = background: hsl({{{calcolor2|49 100}}}% 85%); | #default = background: hsl(0 0% 95%);}} width:25px; text-align:center" {{!}} [[June (month)|<span style="{{#switch: {{{jun2|}}} | yes = color: hsl({{{calcolor2|49 100}}}% 30%); | #default = color: hsl(0 0% 60%);}}">Jun</span>]] |
{{!-}} | {{!-}} | ||
Line 147: | Line 165: | ||
|- {{#if:{{{widedata|}}}| | |- {{#if:{{{widedata|}}}| | ||
{{!-}} | {{!-}} | ||
− | ! colspan="6" style="background: hsl({{#if:{{{secondarycolor|}}}|{{{secondarycolor|}}}|{{{primarycolor|0 0}}} }}% {{{overridesecondary|85%}}}); {{#if:{{{calendar|}}}||{{roundytop|9px}} }} text-align: center;" {{!}} {{{widelabel}}} | + | ! id="tbl-w1" colspan="6" style="{{#if:{{{colorclass|}}}||background: hsl({{#if:{{{secondarycolor|}}}|{{{secondarycolor|}}}|{{{primarycolor|0 0}}} }}% {{{overridesecondary|85%}}});}} {{#if:{{{calendar|}}}||{{roundytop|9px}} }} text-align: center;" {{!}} {{{widelabel}}} |
{{!-}} | {{!-}} | ||
− | {{!}} colspan="6" style=" | + | {{!}} headers="tbl-w1" colspan="6" style="text-align: center; {{#if:{{{widedata2|}}}||{{roundybottom|9px}} }}" {{!}} {{{widedata|}}} }} |
<!-- W2 --> | <!-- W2 --> | ||
|- {{#if:{{{widedata2|}}}| | |- {{#if:{{{widedata2|}}}| | ||
{{!-}} | {{!-}} | ||
− | ! colspan="6" style="background: hsl({{#if:{{{secondarycolor|}}}|{{{secondarycolor|}}}|{{{primarycolor|0 0}}} }}% {{{overridesecondary|85%}}}); text-align:center;" {{!}} {{{widelabel2}}} | + | ! id="tbl-w2" colspan="6" style="{{#if:{{{colorclass|}}}||background: hsl({{#if:{{{secondarycolor|}}}|{{{secondarycolor|}}}|{{{primarycolor|0 0}}} }}% {{{overridesecondary|85%}}});}} text-align:center;" {{!}} {{{widelabel2}}} |
{{!-}} | {{!-}} | ||
− | {{!}} colspan="6" style=" | + | {{!}} headers="tbl-w2" colspan="6" style="text-align: center; {{#if:{{{widedata3|}}}||{{roundybottom|9px}} }}" {{!}} {{{widedata2|}}} }} |
<!-- W3 --> | <!-- W3 --> | ||
|- {{#if:{{{widedata3|}}}| | |- {{#if:{{{widedata3|}}}| | ||
{{!-}} | {{!-}} | ||
− | ! colspan="6" style="background: hsl({{#if:{{{secondarycolor|}}}|{{{secondarycolor|}}}|{{{primarycolor|0 0}}} }}% {{{overridesecondary|85%}}}); text-align:center;" {{!}} {{{widelabel3}}} | + | ! id="tbl-w3" colspan="6" style="{{#if:{{{colorclass|}}}||background: hsl({{#if:{{{secondarycolor|}}}|{{{secondarycolor|}}}|{{{primarycolor|0 0}}} }}% {{{overridesecondary|85%}}});}} text-align:center;" {{!}} {{{widelabel3}}} |
{{!-}} | {{!-}} | ||
− | {{!}} colspan="6" style=" | + | {{!}} headers="tbl-w3" colspan="6" style="text-align: center; {{#if:{{{widedata4|}}}||{{roundybottom|9px}} }}" {{!}} {{{widedata3|}}} }} |
<!-- W4 --> | <!-- W4 --> | ||
|- {{#if:{{{widedata4|}}}| | |- {{#if:{{{widedata4|}}}| | ||
{{!-}} | {{!-}} | ||
− | ! colspan="6" style="background: hsl({{#if:{{{secondarycolor|}}}|{{{secondarycolor|}}}|{{{primarycolor|0 0}}} }}% {{{overridesecondary|85%}}}); text-align:center;" {{!}} {{{widelabel4}}} | + | ! id="tbl-w4" colspan="6" style="{{#if:{{{colorclass|}}}||background: hsl({{#if:{{{secondarycolor|}}}|{{{secondarycolor|}}}|{{{primarycolor|0 0}}} }}% {{{overridesecondary|85%}}});}} text-align:center;" {{!}} {{{widelabel4}}} |
{{!-}} | {{!-}} | ||
− | {{!}} colspan="6" style=" | + | {{!}} headers="tbl-w4" colspan="6" style="text-align: center; {{#if:{{{widedata5|}}}||{{roundybottom|9px}} }}" {{!}} {{{widedata4|}}} }} |
<!-- W5 --> | <!-- W5 --> | ||
|- {{#if:{{{widedata5|}}}| | |- {{#if:{{{widedata5|}}}| | ||
{{!-}} | {{!-}} | ||
− | ! colspan="6" style="background: hsl({{#if:{{{secondarycolor|}}}|{{{secondarycolor|}}}|{{{primarycolor|0 0}}} }}% {{{overridesecondary|85%}}}); text-align:center;" {{!}} {{{widelabel5}}} | + | ! id="tbl-w5" colspan="6" style="{{#if:{{{colorclass|}}}||background: hsl({{#if:{{{secondarycolor|}}}|{{{secondarycolor|}}}|{{{primarycolor|0 0}}} }}% {{{overridesecondary|85%}}});}} text-align:center;" {{!}} {{{widelabel5}}} |
{{!-}} | {{!-}} | ||
− | {{!}} colspan="6" style=" | + | {{!}} headers="tbl-w5" colspan="6" style="{{roundybottom|9px}}; text-align: center;" {{!}} {{{widedata5|}}} }} |
<!-- --> | <!-- --> | ||
<!-- GROUP --> | <!-- GROUP --> | ||
Line 179: | Line 197: | ||
|- {{#if:{{{group|}}}| | |- {{#if:{{{group|}}}| | ||
{{!-}} | {{!-}} | ||
− | ! colspan="6" style="background: hsl({{#if:{{{secondarycolor|}}}|{{{secondarycolor|}}}|{{{primarycolor|0 0}}} }}% {{{overridesecondary|85%}}}); text-align:center; {{roundytop|9px}}" {{!}} {{{group|}}} }} | + | ! scope="col" colspan="6" style="{{#if:{{{colorclass|}}}||background: hsl({{#if:{{{secondarycolor|}}}|{{{secondarycolor|}}}|{{{primarycolor|0 0}}} }}% {{{overridesecondary|85%}}});}} text-align:center; {{roundytop|9px}}" {{!}} {{{group|}}} }} |
<!-- --> | <!-- --> | ||
<!-- LABELS --> | <!-- LABELS --> | ||
Line 185: | Line 203: | ||
|- {{#if:{{{data|}}}| | |- {{#if:{{{data|}}}| | ||
{{!-}} | {{!-}} | ||
− | ! colspan="{{#switch:{{{labelspan|}}}| wide = 3 | #default = 2 }}" style="background: hsl({{#if:{{{secondarycolor|}}}|{{{secondarycolor|}}}|{{{primarycolor|0 0}}}}}% {{#if:{{{group|}}}|{{{overridesecondary|90%}}}|{{{overridesecondary|85%}}}}}); text-align:center; {{#if:{{{data2|}}} | + | ! id="tbl-l1" colspan="{{#switch:{{{labelspan|}}}| wide = 3 | #default = 2 }}" style="{{#if:{{{colorclass|}}}||background: hsl({{#if:{{{secondarycolor|}}}|{{{secondarycolor|}}}|{{{primarycolor|0 0}}}}}% {{#if:{{{group|}}}|{{{overridesecondary|90%}}}|{{{overridesecondary|85%}}}}});}} text-align:center; {{#if:{{{data2|}}}{{{data3|}}}{{{data4|}}} |
<!--t-->|{{#if:{{{group|}}} | <!--t-->|{{#if:{{{group|}}} | ||
<!-- t--->| | <!-- t--->| | ||
Line 192: | Line 210: | ||
<!-- t-->| | <!-- t-->| | ||
<!-- f-->|{{roundyleft|9px}} }} }} }}" {{!}} {{{label|}}} | <!-- f-->|{{roundyleft|9px}} }} }} }}" {{!}} {{{label|}}} | ||
− | {{!}} colspan="{{#switch:{{{labelspan|}}}| wide = {{#if:{{{subdata|}}}|2|3}} | #default = {{#if:{{{subdata|}}}|3|4}} }}" style=" | + | {{!}} headers="tbl-l1" colspan="{{#switch:{{{labelspan|}}}| wide = {{#if:{{{subdata|}}}|2|3}} | #default = {{#if:{{{subdata|}}}|3|4}} }}" style="padding:0 0 0 6px; {{#if:{{{data2|}}}{{{data3|}}}{{{data4|}}} |
<!--t-->|{{#if:{{{subdata|}}} | <!--t-->|{{#if:{{{subdata|}}} | ||
<!-- t-->| | <!-- t-->| | ||
Line 205: | Line 223: | ||
<!-- SUB --> | <!-- SUB --> | ||
{{#if:{{{subdata|}}}| | {{#if:{{{subdata|}}}| | ||
− | {{!}} style="max-width: 25px | + | {{!}} headers="tbl-l1" style="max-width: 25px; text-align: center; {{#if:{{{data2|}}}|{{roundytr|9px}}|{{roundyright|9px}}}}" {{!}} {{{subdata|}}} }} |
<!-- L2 --> | <!-- L2 --> | ||
|- {{#if:{{{data2|}}}| | |- {{#if:{{{data2|}}}| | ||
{{!-}} | {{!-}} | ||
− | ! colspan="{{#switch:{{{labelspan|}}}| wide = 3 | #default = 2 }}" style="background: hsl({{#if:{{{secondarycolor|}}}|{{{secondarycolor|}}}|{{{primarycolor|0 0}}}}}% {{#if:{{{group|}}}|{{{overridesecondary|90%}}}|{{{overridesecondary|85%}}}}}); text-align:center; {{#ifexpr: {{#var:rowcount}} > 5||{{roundybl|9px|}}}}" {{!}} {{{label2}}} | + | ! id="tbl-l2" colspan="{{#switch:{{{labelspan|}}}| wide = 3 | #default = 2 }}" style="{{#if:{{{colorclass|}}}||background: hsl({{#if:{{{secondarycolor|}}}|{{{secondarycolor|}}}|{{{primarycolor|0 0}}}}}% {{#if:{{{group|}}}|{{{overridesecondary|90%}}}|{{{overridesecondary|85%}}}}});}} text-align:center; {{#ifexpr: {{#var:rowcount}} > 5||{{roundybl|9px|}}}}" {{!}} {{{label2}}} |
− | {{!}} colspan="{{#switch:{{{labelspan|}}}| wide = 3 | #default = 4 }}" style=" | + | {{!}} headers="tbl-l2" colspan="{{#switch:{{{labelspan|}}}| wide = 3 | #default = 4 }}" style="padding:0 0 0 6px; {{#ifexpr: {{#var:rowcount}} > 5||{{roundybr|9px|}}}}" {{!}} {{{data2|}}} }} |
<!-- L3 --> | <!-- L3 --> | ||
|- {{#if:{{{data3|}}}| | |- {{#if:{{{data3|}}}| | ||
{{!-}} | {{!-}} | ||
− | ! colspan="{{#switch:{{{labelspan|}}}| wide = 3 | #default = 2 }}" style="background: hsl({{#if:{{{secondarycolor|}}}|{{{secondarycolor|}}}|{{{primarycolor|0 0}}}}}% {{#if:{{{group|}}}|{{{overridesecondary|90%}}}|{{{overridesecondary|85%}}}}}); text-align:center; {{#ifexpr: {{#var:rowcount}} > 6||{{roundybl|9px|}}}}" {{!}} {{{label3}}} | + | ! id="tbl-l3" colspan="{{#switch:{{{labelspan|}}}| wide = 3 | #default = 2 }}" style="{{#if:{{{colorclass|}}}||background: hsl({{#if:{{{secondarycolor|}}}|{{{secondarycolor|}}}|{{{primarycolor|0 0}}}}}% {{#if:{{{group|}}}|{{{overridesecondary|90%}}}|{{{overridesecondary|85%}}}}});}} text-align:center; {{#ifexpr: {{#var:rowcount}} > 6||{{roundybl|9px|}}}}" {{!}} {{{label3}}} |
− | {{!}} colspan="{{#switch:{{{labelspan|}}}| wide = 3 | #default = 4 }}" style=" | + | {{!}} headers="tbl-l3" colspan="{{#switch:{{{labelspan|}}}| wide = 3 | #default = 4 }}" style="padding:0 0 0 6px; {{#ifexpr: {{#var:rowcount}} > 6||{{roundybr|9px|}}}}" {{!}} {{{data3|}}} }} |
<!-- L4 --> | <!-- L4 --> | ||
|- {{#if:{{{data4|}}}| | |- {{#if:{{{data4|}}}| | ||
{{!-}} | {{!-}} | ||
− | ! colspan="{{#switch:{{{labelspan|}}}| wide = 3 | #default = 2 }}" style="background: hsl({{#if:{{{secondarycolor|}}}|{{{secondarycolor|}}}|{{{primarycolor|0 0}}}}}% {{#if:{{{group|}}}|{{{overridesecondary|90%}}}|{{{overridesecondary|85%}}}}}); text-align:center; {{#ifexpr: {{#var:rowcount}} > 8||{{roundybl|9px|}}}}" {{!}} {{{label4}}} | + | ! id="tbl-l4" colspan="{{#switch:{{{labelspan|}}}| wide = 3 | #default = 2 }}" style="{{#if:{{{colorclass|}}}||background: hsl({{#if:{{{secondarycolor|}}}|{{{secondarycolor|}}}|{{{primarycolor|0 0}}}}}% {{#if:{{{group|}}}|{{{overridesecondary|90%}}}|{{{overridesecondary|85%}}}}});}} text-align:center; {{#ifexpr: {{#var:rowcount}} > 8||{{roundybl|9px|}}}}" {{!}} {{{label4}}} |
− | {{!}} colspan="{{#switch:{{{labelspan|}}}| wide = 3 | #default = 4 }}" style=" | + | {{!}} headers="tbl-l4" colspan="{{#switch:{{{labelspan|}}}| wide = 3 | #default = 4 }}" style="padding:0 0 0 6px; {{#ifexpr: {{#var:rowcount}} > 8||{{roundybr|9px|}}}}" {{!}} {{{data4|}}} }} |
<!-- L5 --> | <!-- L5 --> | ||
|- {{#if:{{{data5|}}}| | |- {{#if:{{{data5|}}}| | ||
{{!-}} | {{!-}} | ||
− | ! colspan="{{#switch:{{{labelspan|}}}| wide = 3 | #default = 2 }}" style="background: hsl({{#if:{{{secondarycolor|}}}|{{{secondarycolor|}}}|{{{primarycolor|0 0}}}}}% {{#if:{{{group|}}}|{{{overridesecondary|90%}}}|{{{overridesecondary|85%}}}}}); text-align:center; {{#ifexpr: {{#var:rowcount}} > 12||{{roundybl|9px|}}}}" {{!}} {{{label5}}} | + | ! id="tbl-l5" colspan="{{#switch:{{{labelspan|}}}| wide = 3 | #default = 2 }}" style="{{#if:{{{colorclass|}}}||background: hsl({{#if:{{{secondarycolor|}}}|{{{secondarycolor|}}}|{{{primarycolor|0 0}}}}}% {{#if:{{{group|}}}|{{{overridesecondary|90%}}}|{{{overridesecondary|85%}}}}});}} text-align:center; {{#ifexpr: {{#var:rowcount}} > 12||{{roundybl|9px|}}}}" {{!}} {{{label5}}} |
− | {{!}} colspan="{{#switch:{{{labelspan|}}}| wide = 3 | #default = 4 }}" style=" | + | {{!}} headers="tbl-l5" colspan="{{#switch:{{{labelspan|}}}| wide = 3 | #default = 4 }}" style="padding:0 0 0 6px; {{#ifexpr: {{#var:rowcount}} > 12||{{roundybr|9px|}}}}" {{!}} {{{data5|}}} }} |
<!-- L6 --> | <!-- L6 --> | ||
|- {{#if:{{{data6|}}}| | |- {{#if:{{{data6|}}}| | ||
{{!-}} | {{!-}} | ||
− | ! colspan="{{#switch:{{{labelspan|}}}| wide = 3 | #default = 2 }}" style="background: hsl({{#if:{{{secondarycolor|}}}|{{{secondarycolor|}}}|{{{primarycolor|0 0}}}}}% {{#if:{{{group|}}}|{{{overridesecondary|90%}}}|{{{overridesecondary|85%}}}}}); text-align:center; {{#ifexpr: {{#var:rowcount}} > 20||{{roundybl|9px|}}}}" {{!}} {{{label6}}} | + | ! id="tbl-l6" colspan="{{#switch:{{{labelspan|}}}| wide = 3 | #default = 2 }}" style="{{#if:{{{colorclass|}}}||background: hsl({{#if:{{{secondarycolor|}}}|{{{secondarycolor|}}}|{{{primarycolor|0 0}}}}}% {{#if:{{{group|}}}|{{{overridesecondary|90%}}}|{{{overridesecondary|85%}}}}});}} text-align:center; {{#ifexpr: {{#var:rowcount}} > 20||{{roundybl|9px|}}}}" {{!}} {{{label6}}} |
− | {{!}} colspan="{{#switch:{{{labelspan|}}}| wide = 3 | #default = 4 }}" style=" | + | {{!}} headers="tbl-l6" colspan="{{#switch:{{{labelspan|}}}| wide = 3 | #default = 4 }}" style="padding:0 0 0 6px; {{#ifexpr: {{#var:rowcount}} > 20||{{roundybr|9px|}}}}" {{!}} {{{data6|}}} }} |
<!-- L7 --> | <!-- L7 --> | ||
|- {{#if:{{{data7|}}}| | |- {{#if:{{{data7|}}}| | ||
{{!-}} | {{!-}} | ||
− | ! colspan="{{#switch:{{{labelspan|}}}| wide = 3 | #default = 2 }}" style="background: hsl({{#if:{{{secondarycolor|}}}|{{{secondarycolor|}}}|{{{primarycolor|0 0}}}}}% {{#if:{{{group|}}}|{{{overridesecondary|90%}}}|{{{overridesecondary|85%}}}}}); text-align:center; {{#ifexpr: {{#var:rowcount}} > 36||{{roundybl|9px|}}}}" {{!}} {{{label7}}} | + | ! id="tbl-l7" colspan="{{#switch:{{{labelspan|}}}| wide = 3 | #default = 2 }}" style="{{#if:{{{colorclass|}}}||background: hsl({{#if:{{{secondarycolor|}}}|{{{secondarycolor|}}}|{{{primarycolor|0 0}}}}}% {{#if:{{{group|}}}|{{{overridesecondary|90%}}}|{{{overridesecondary|85%}}}}});}} text-align:center; {{#ifexpr: {{#var:rowcount}} > 36||{{roundybl|9px|}}}}" {{!}} {{{label7}}} |
− | {{!}} colspan="{{#switch:{{{labelspan|}}}| wide = 3 | #default = 4 }}" style=" | + | {{!}} headers="tbl-l7" colspan="{{#switch:{{{labelspan|}}}| wide = 3 | #default = 4 }}" style="padding:0 0 0 6px; {{#ifexpr: {{#var:rowcount}} > 36||{{roundybr|9px|}}}}" {{!}} {{{data7|}}} }} |
<!-- L8 --> | <!-- L8 --> | ||
|- {{#if:{{{data8|}}}| | |- {{#if:{{{data8|}}}| | ||
{{!-}} | {{!-}} | ||
− | ! colspan="{{#switch:{{{labelspan|}}}| wide = 3 | #default = 2 }}" style="background: hsl({{#if:{{{secondarycolor|}}}|{{{secondarycolor|}}}|{{{primarycolor|0 0}}}}}% {{#if:{{{group|}}}|{{{overridesecondary|90%}}}|{{{overridesecondary|85%}}}}}); text-align:center; {{#ifexpr: {{#var:rowcount}} > 68||{{roundybl|9px|}}}}" {{!}} {{{label8}}} | + | ! id="tbl-l8" colspan="{{#switch:{{{labelspan|}}}| wide = 3 | #default = 2 }}" style="{{#if:{{{colorclass|}}}||background: hsl({{#if:{{{secondarycolor|}}}|{{{secondarycolor|}}}|{{{primarycolor|0 0}}}}}% {{#if:{{{group|}}}|{{{overridesecondary|90%}}}|{{{overridesecondary|85%}}}}});}} text-align:center; {{#ifexpr: {{#var:rowcount}} > 68||{{roundybl|9px|}}}}" {{!}} {{{label8}}} |
− | {{!}} colspan="{{#switch:{{{labelspan|}}}| wide = 3 | #default = 4 }}" style=" | + | {{!}} headers="tbl-l8" colspan="{{#switch:{{{labelspan|}}}| wide = 3 | #default = 4 }}" style="padding:0 0 0 6px; {{#ifexpr: {{#var:rowcount}} > 68||{{roundybr|9px|}}}}" {{!}} {{{data8|}}} }} |
<!-- L9 --> | <!-- L9 --> | ||
|- {{#if:{{{data9|}}}| | |- {{#if:{{{data9|}}}| | ||
{{!-}} | {{!-}} | ||
− | ! colspan="{{#switch:{{{labelspan|}}}| wide = 3 | #default = 2 }}" style="background: hsl({{#if:{{{secondarycolor|}}}|{{{secondarycolor|}}}|{{{primarycolor|0 0}}}}}% {{#if:{{{group|}}}|{{{overridesecondary|90%}}}|{{{overridesecondary|85%}}}}}); text-align:center; {{#ifexpr: {{#var:rowcount}} > 132||{{roundybl|9px|}}}}" {{!}} {{{label9}}} | + | ! id="tbl-l9" colspan="{{#switch:{{{labelspan|}}}| wide = 3 | #default = 2 }}" style="{{#if:{{{colorclass|}}}||background: hsl({{#if:{{{secondarycolor|}}}|{{{secondarycolor|}}}|{{{primarycolor|0 0}}}}}% {{#if:{{{group|}}}|{{{overridesecondary|90%}}}|{{{overridesecondary|85%}}}}});}} text-align:center; {{#ifexpr: {{#var:rowcount}} > 132||{{roundybl|9px|}}}}" {{!}} {{{label9}}} |
− | {{!}} colspan="{{#switch:{{{labelspan|}}}| wide = 3 | #default = 4 }}" style=" | + | {{!}} headers="tbl-l9" colspan="{{#switch:{{{labelspan|}}}| wide = 3 | #default = 4 }}" style="padding:0 0 0 6px; {{#ifexpr: {{#var:rowcount}} > 132||{{roundybr|9px|}}}}" {{!}} {{{data9|}}} }} |
<!-- L10 --> | <!-- L10 --> | ||
|- {{#if:{{{data10|}}}| | |- {{#if:{{{data10|}}}| | ||
{{!-}} | {{!-}} | ||
− | ! colspan="{{#switch:{{{labelspan|}}}| wide = 3 | #default = 2 }}" style="background: hsl({{#if:{{{secondarycolor|}}}|{{{secondarycolor|}}}|{{{primarycolor|0 0}}}}}% {{#if:{{{group|}}}|{{{overridesecondary|90%}}}|{{{overridesecondary|85%}}}}}); text-align:center; {{#ifexpr: {{#var:rowcount}} > 260||{{roundybl|9px|}}}}" {{!}} {{{label10}}} | + | ! id="tbl-l10" colspan="{{#switch:{{{labelspan|}}}| wide = 3 | #default = 2 }}" style="{{#if:{{{colorclass|}}}||background: hsl({{#if:{{{secondarycolor|}}}|{{{secondarycolor|}}}|{{{primarycolor|0 0}}}}}% {{#if:{{{group|}}}|{{{overridesecondary|90%}}}|{{{overridesecondary|85%}}}}});}} text-align:center; {{#ifexpr: {{#var:rowcount}} > 260||{{roundybl|9px|}}}}" {{!}} {{{label10}}} |
− | {{!}} colspan="{{#switch:{{{labelspan|}}}| wide = 3 | #default = 4 }}" style=" | + | {{!}} headers="tbl-l10" colspan="{{#switch:{{{labelspan|}}}| wide = 3 | #default = 4 }}" style="padding:0 0 0 6px; {{#ifexpr: {{#var:rowcount}} > 260||{{roundybr|9px|}}}}" {{!}} {{{data10|}}} }} |
<!-- L11 --> | <!-- L11 --> | ||
|- {{#if:{{{data11|}}}| | |- {{#if:{{{data11|}}}| | ||
{{!-}} | {{!-}} | ||
− | ! colspan="{{#switch:{{{labelspan|}}}| wide = 3 | #default = 2 }}" style="background: hsl({{#if:{{{secondarycolor|}}}|{{{secondarycolor|}}}|{{{primarycolor|0 0}}}}}% {{#if:{{{group|}}}|{{{overridesecondary|90%}}}|{{{overridesecondary|85%}}}}}); text-align:center; {{#ifexpr: {{#var:rowcount}} > 516||{{roundybl|9px|}}}}" {{!}} {{{label11}}} | + | ! id="tbl-l11" colspan="{{#switch:{{{labelspan|}}}| wide = 3 | #default = 2 }}" style="{{#if:{{{colorclass|}}}||background: hsl({{#if:{{{secondarycolor|}}}|{{{secondarycolor|}}}|{{{primarycolor|0 0}}}}}% {{#if:{{{group|}}}|{{{overridesecondary|90%}}}|{{{overridesecondary|85%}}}}});}} text-align:center; {{#ifexpr: {{#var:rowcount}} > 516||{{roundybl|9px|}}}}" {{!}} {{{label11}}} |
− | {{!}} colspan="{{#switch:{{{labelspan|}}}| wide = 3 | #default = 4 }}" style=" | + | {{!}} headers="tbl-l11" colspan="{{#switch:{{{labelspan|}}}| wide = 3 | #default = 4 }}" style="padding:0 0 0 6px; {{#ifexpr: {{#var:rowcount}} > 516||{{roundybr|9px|}}}}" {{!}} {{{data11|}}} }} |
<!-- L12 --> | <!-- L12 --> | ||
|- {{#if:{{{data12|}}}| | |- {{#if:{{{data12|}}}| | ||
{{!-}} | {{!-}} | ||
− | ! colspan="{{#switch:{{{labelspan|}}}| wide = 3 | #default = 2 }}" style="background: hsl({{#if:{{{secondarycolor|}}}|{{{secondarycolor|}}}|{{{primarycolor|0 0}}}}}% {{#if:{{{group|}}}|{{{overridesecondary|90%}}}|{{{overridesecondary|85%}}}}}); text-align:center; {{roundybl|9px}}" {{!}} {{{label12}}} | + | ! id="tbl-l12" colspan="{{#switch:{{{labelspan|}}}| wide = 3 | #default = 2 }}" style="{{#if:{{{colorclass|}}}||background: hsl({{#if:{{{secondarycolor|}}}|{{{secondarycolor|}}}|{{{primarycolor|0 0}}}}}% {{#if:{{{group|}}}|{{{overridesecondary|90%}}}|{{{overridesecondary|85%}}}}});}} text-align:center; {{#ifexpr: {{#var:rowcount}} > 1028||{{roundybl|9px|}}}}" {{!}} {{{label12}}} |
− | {{!}} colspan="{{#switch:{{{labelspan|}}}| wide = 3 | #default = 4 }}" style="background:# | + | {{!}} headers="tbl-l12" colspan="{{#switch:{{{labelspan|}}}| wide = 3 | #default = 4 }}" style="padding:0 0 0 6px; {{#ifexpr: {{#var:rowcount}} > 1028||{{roundybr|9px|}}}}" {{!}} {{{data12|}}} }} |
+ | <!-- L13 --> | ||
+ | |- {{#if:{{{data13|}}}| | ||
+ | {{!-}} | ||
+ | ! id="tbl-l13" colspan="{{#switch:{{{labelspan|}}}| wide = 3 | #default = 2 }}" style="{{#if:{{{colorclass|}}}||background: hsl({{#if:{{{secondarycolor|}}}|{{{secondarycolor|}}}|{{{primarycolor|0 0}}}}}% {{#if:{{{group|}}}|{{{overridesecondary|90%}}}|{{{overridesecondary|85%}}}}});}} text-align:center; {{roundybl|9px}}" {{!}} {{{label13}}} | ||
+ | {{!}} headers="tbl-l13" colspan="{{#switch:{{{labelspan|}}}| wide = 3 | #default = 4 }}" style="padding:0 0 0 6px; {{roundybr|9px}}" {{!}} {{{data13|}}} }} | ||
+ | |||
+ | <!-- --> | ||
+ | <!-- WIDE LABELS BOTTOM --> | ||
+ | <!-- --> | ||
+ | |- {{#if:{{{widebottomdata|}}}| | ||
+ | {{!-}} | ||
+ | ! id="tbl-wb1" colspan="6" style="{{#if:{{{colorclass|}}}||background: hsl({{#if:{{{secondarycolor|}}}|{{{secondarycolor|}}}|{{{primarycolor|0 0}}} }}% {{{overridesecondary|85%}}});}} {{#if:{{{calendar|}}}||{{roundytop|9px}} }} text-align: center;" {{!}} {{{widebottomlabel}}} | ||
+ | {{!-}} | ||
+ | {{!}} headers="tbl-wb1" colspan="6" style="text-align: center; {{#if:{{{widebottomdata2|}}}{{{widebottomdata3|}}}{{{widebottomdata4|}}}{{{widebottomdata5|}}}{{{widebottomdata6|}}}{{{widebottomdata7|}}}||{{roundybottom|9px}} }}" {{!}} {{{widebottomdata|}}} }} | ||
+ | <!-- W2 --> | ||
+ | |- {{#if:{{{widebottomdata2|}}}| | ||
+ | {{!-}} | ||
+ | ! id="tbl-wb2" colspan="6" style="{{#if:{{{colorclass|}}}||background: hsl({{#if:{{{secondarycolor|}}}|{{{secondarycolor|}}}|{{{primarycolor|0 0}}} }}% {{{overridesecondary|85%}}});}} text-align:center;" {{!}} {{{widebottomlabel2}}} | ||
+ | {{!-}} | ||
+ | {{!}} headers="tbl-wb2" colspan="6" style="text-align: center; {{#if:{{{widebottomdata3|}}}{{{widebottomdata4|}}}{{{widebottomdata5|}}}{{{widebottomdata6|}}}{{{widebottomdata7|}}}||{{roundybottom|9px}} }}" {{!}} {{{widebottomdata2|}}} }} | ||
+ | <!-- W3 --> | ||
+ | |- {{#if:{{{widebottomdata3|}}}| | ||
+ | {{!-}} | ||
+ | ! id="tbl-wb3" colspan="6" style="{{#if:{{{colorclass|}}}||background: hsl({{#if:{{{secondarycolor|}}}|{{{secondarycolor|}}}|{{{primarycolor|0 0}}} }}% {{{overridesecondary|85%}}});}} text-align:center;" {{!}} {{{widebottomlabel3}}} | ||
+ | {{!-}} | ||
+ | {{!}} headers="tbl-wb3" colspan="6" style="text-align: center; {{#if:{{{widebottomdata4|}}}{{{widebottomdata5|}}}{{{widebottomdata6|}}}{{{widebottomdata7|}}}||{{roundybottom|9px}} }}" {{!}} {{{widebottomdata3|}}} }} | ||
+ | <!-- W4 --> | ||
+ | |- {{#if:{{{widebottomdata4|}}}| | ||
+ | {{!-}} | ||
+ | ! id="tbl-wb4" colspan="6" style="{{#if:{{{colorclass|}}}||background: hsl({{#if:{{{secondarycolor|}}}|{{{secondarycolor|}}}|{{{primarycolor|0 0}}} }}% {{{overridesecondary|85%}}});}} text-align:center;" {{!}} {{{widebottomlabel4}}} | ||
+ | {{!-}} | ||
+ | {{!}} headers="tbl-wb4" colspan="6" style="text-align: center; {{#if:{{{widebottomdata5|}}}{{{widebottomdata6|}}}{{{widebottomdata7|}}}||{{roundybottom|9px}} }}" {{!}} {{{widebottomdata4|}}} }} | ||
+ | <!-- W5 --> | ||
+ | |- {{#if:{{{widebottomdata5|}}}| | ||
+ | {{!-}} | ||
+ | ! id="tbl-wb5" colspan="6" style="{{#if:{{{colorclass|}}}||background: hsl({{#if:{{{secondarycolor|}}}|{{{secondarycolor|}}}|{{{primarycolor|0 0}}} }}% {{{overridesecondary|85%}}});}} text-align:center;" {{!}} {{{widebottomlabel5}}} | ||
+ | {{!-}} | ||
+ | {{!}} headers="tbl-wb5" colspan="6" style="text-align: center; {{#if:{{{widebottomdata6|}}}{{{widebottomdata7|}}}||{{roundybottom|9px}} }};" {{!}} {{{widebottomdata5|}}} }} | ||
+ | <!-- W6 --> | ||
+ | |- {{#if:{{{widebottomdata6|}}}| | ||
+ | {{!-}} | ||
+ | ! id="tbl-wb6" colspan="6" style="{{#if:{{{colorclass|}}}||background: hsl({{#if:{{{secondarycolor|}}}|{{{secondarycolor|}}}|{{{primarycolor|0 0}}} }}% {{{overridesecondary|85%}}});}} text-align:center;" {{!}} {{{widebottomlabel6}}} | ||
+ | {{!-}} | ||
+ | {{!}} headers="tbl-wb5" colspan="6" style="text-align: center; {{#if:{{{widebottomdata7|}}}||{{roundybottom|9px}} }};" {{!}} {{{widebottomdata6|}}} }} | ||
+ | <!-- W7 --> | ||
+ | |- {{#if:{{{widebottomdata7|}}}| | ||
+ | {{!-}} | ||
+ | ! id="tbl-wb7" colspan="6" style="{{#if:{{{colorclass|}}}||background: hsl({{#if:{{{secondarycolor|}}}|{{{secondarycolor|}}}|{{{primarycolor|0 0}}} }}% {{{overridesecondary|85%}}});}} text-align:center;" {{!}} {{{widebottomlabel7}}} | ||
+ | {{!-}} | ||
+ | {{!}} headers="tbl-wb6" colspan="6" style="{{roundybottom|9px}}; text-align: center;" {{!}} {{{widebottomdata7|}}} }} | ||
<!-- --> | <!-- --> | ||
Line 267: | Line 335: | ||
|- {{#if:{{{appearances|}}}| | |- {{#if:{{{appearances|}}}| | ||
{{!-}} | {{!-}} | ||
− | ! colspan="6" style="background: hsl({{#if:{{{secondarycolor|}}}|{{{secondarycolor|}}}|{{{primarycolor|0 0}}}}}% {{{overridesecondary|85%}}}); {{roundytop|9px}} text-align: center;" {{!}} Main appearances | + | ! id="tbl-a" colspan="6" style="{{#if:{{{colorclass|}}}||background: hsl({{#if:{{{secondarycolor|}}}|{{{secondarycolor|}}}|{{{primarycolor|0 0}}}}}% {{{overridesecondary|85%}}});}} {{roundytop|9px}} text-align: center;" {{!}} Main appearances |
{{!-}} | {{!-}} | ||
− | {{!}} colspan="6" style=" | + | {{!}} headers="tbl-a" colspan="6" style="text-align: center; {{#if:{{{o-appearances|}}}||{{roundybottom|9px}}}}" {{!}} {{#incat:Doubutsu no Mori {{{appearances}}}|{{Infobox Appearance|game={{DnM|shortest}}|appears=yes|note={{{dnm-note|}}}}}|{{Infobox Appearance|game={{DnM|shortest}}|appears=no}}}} |
− | {{#incat:Animal Crossing {{{appearances}}}|{{Infobox Appearance|game={{PG|shortest}}|appears=yes}}|{{Infobox Appearance|game={{PG|shortest}}|appears=no}}}} | + | {{#incat:Doubutsu no Mori+ {{#if:{{{customcat-dnm+|}}}|{{{customcat-dnm+}}}|{{{appearances}}}}}|{{Infobox Appearance|game={{DnM+|shortest}}|appears=yes|note={{{dnm+-note|}}}}}|{{Infobox Appearance|game={{DnM+|shortest}}|appears=no}}}} |
− | {{#incat:Doubutsu no Mori e+ {{{appearances}}}|{{Infobox Appearance|game= | + | {{#incat:Animal Crossing {{#if:{{{customcat-pg|}}}|{{{customcat-pg}}}|{{{appearances}}}}}|{{Infobox Appearance|game={{PG|shortest}}|appears=yes|note={{{pg-note|}}}}}|{{Infobox Appearance|game={{PG|shortest}}|appears=no}}}} |
− | {{#incat:Wild World {{{appearances}}}|{{Infobox Appearance|game={{WW|shortest}}|appears=yes}}|{{Infobox Appearance|game={{WW|shortest}}|appears=no}}}} | + | {{#incat:Doubutsu no Mori e+ {{#if:{{{customcat-eplus|}}}|{{{customcat-eplus}}}|{{{appearances}}}}}|{{Infobox Appearance|game={{DnMe+|shortest}}|appears=yes|note={{{dnme+-note|}}}}}|{{Infobox Appearance|game={{DnMe+|shortest}}|appears=no}}}} |
− | {{#incat:City Folk {{{appearances}}}|{{Infobox Appearance|game={{CF|shortest}}|appears=yes}}|{{Infobox Appearance|game={{CF|shortest}}|appears=no}}}} | + | {{#incat:Dòngwù Sēnlín {{{appearances}}}|{{Infobox Appearance|game={{iQue|shortest}}|appears=yes|note={{{iQue-note|}}}}}|{{Infobox Appearance|game={{iQue|shortest}}|appears=no}}}}<br> |
− | {{#incat:New Leaf {{{appearances}}}|{{Infobox Appearance|game={{NL|shortest}}|appears=yes}}|{{#incat:Welcome amiibo {{{appearances}}}|{{Infobox Appearance|game={{NL|shortest}}<sup>[[Animal Crossing: New Leaf - Welcome amiibo| | + | {{#incat:Wild World {{#if:{{{customcat-ww|}}}|{{{customcat-ww}}}|{{{appearances}}}}}|{{Infobox Appearance|game={{WW|shortest}}|appears=yes|note={{{ww-note|}}}}}|{{Infobox Appearance|game={{WW|shortest}}|appears=no}}}} |
− | {{#incat:New Horizons {{{appearances}}}|{{Infobox Appearance|game={{NH|shortest}}|appears=yes}}|{{Infobox Appearance|game={{NH|shortest}}|appears=no}}}} }} | + | {{#incat:City Folk {{#if:{{{customcat-cf|}}}|{{{customcat-cf}}}|{{{appearances}}}}}|{{Infobox Appearance|game={{CF|shortest}}|appears=yes|note={{{cf-note|}}}}}|{{Infobox Appearance|game={{CF|shortest}}|appears=no}}}} |
+ | {{#incat:New Leaf {{{appearances}}}|{{Infobox Appearance|game={{NL|shortest}}|appears=yes|note={{{nleaf-note|}}}}}|{{#incat:Welcome amiibo {{{appearances}}}|{{Infobox Appearance|game={{NL|shortest}}<sup>[[Animal Crossing: New Leaf - Welcome amiibo|Wa]]</sup>|appears=yes|note={{{nleaf-note|}}}}}|{{Infobox Appearance|game={{NL|shortest}}|appears=no}}}}}} | ||
+ | {{#incat:New Horizons {{{appearances}}}|{{Infobox Appearance|game={{NH|shortest}}|appears=yes|note={{{nh-note|}}}}}|{{#incat:Happy Home Paradise {{{appearances}}}|{{Infobox Appearance|game={{NH|shortest}}<sup>[[Animal Crossing: New Horizons – Happy Home Paradise|HHP]]</sup>|appears=yes|note={{{nh-note|}}}}}|{{Infobox Appearance|game={{NH|shortest}}|appears=no}}}}}} }} | ||
<!-- --> | <!-- --> | ||
Line 282: | Line 352: | ||
|- {{#if:{{{o-appearances|}}}| | |- {{#if:{{{o-appearances|}}}| | ||
{{!-}} | {{!-}} | ||
− | ! colspan="6" style="background: hsl({{#if:{{{secondarycolor|}}}|{{{secondarycolor|}}}|{{{primarycolor|0 0}}}}}% {{{overridesecondary|85%}}}); text-align:center;" {{!}} Other appearances | + | ! id="tbl-o" colspan="6" style="{{#if:{{{colorclass|}}}||background: hsl({{#if:{{{secondarycolor|}}}|{{{secondarycolor|}}}|{{{primarycolor|0 0}}}}}% {{{overridesecondary|85%}}});}} text-align:center;" {{!}} Other appearances |
{{!-}} | {{!-}} | ||
− | {{!}} colspan="6" style=" | + | {{!}} headers="tbl-o" colspan="6" style="text-align: center; {{roundybottom|9px}}" {{!}} {{#incat:{{{filmoverride|Gekijōban Doubutsu no Mori}}} {{{o-appearances}}}|{{Infobox Appearance|game=[[Gekijōban Doubutsu no Mori|Film]]|appears=yes}}|{{Infobox Appearance|game=[[Gekijōban Doubutsu no Mori|Film]]|appears=no}}}} |
{{#incat:{{{hhdoverride|Happy Home Designer}}} {{{o-appearances}}}|{{Infobox Appearance|game={{HHD|shortest}}|appears=yes}}|{{Infobox Appearance|game={{HHD|shortest}}|appears=no}}}} | {{#incat:{{{hhdoverride|Happy Home Designer}}} {{{o-appearances}}}|{{Infobox Appearance|game={{HHD|shortest}}|appears=yes}}|{{Infobox Appearance|game={{HHD|shortest}}|appears=no}}}} | ||
− | {{#incat:{{{afoverride|amiibo Festival}}} {{{o-appearances}}}|{{Infobox Appearance|game={{ | + | {{#incat:{{{afoverride|amiibo Festival}}} {{{o-appearances}}}|{{Infobox Appearance|game={{aF|shortest}}|appears=yes}}|{{Infobox Appearance|game={{aF|shortest}}|appears=no}}}} |
− | {{#incat:Pocket Camp {{{o-appearances}}}|{{Infobox Appearance|game={{PC|shortest}}|appears=yes}}|{{Infobox Appearance|game={{PC|shortest}}|appears=no}}}} }} | + | {{#incat:Pocket Camp {{#if:{{{customcat-pc|}}}|{{{customcat-pc}}}|{{{o-appearances}}}}}|{{Infobox Appearance|game={{PC|shortest}}|appears=yes}}|{{Infobox Appearance|game={{PC|shortest}}|appears=no}}}} }} |
<!-- --> | <!-- --> | ||
Line 294: | Line 364: | ||
|- {{#if:{{{languages|}}}| | |- {{#if:{{{languages|}}}| | ||
{{!-}} | {{!-}} | ||
− | {{!}} colspan="6" style="background: hsl({{#if:{{{secondarycolor|}}}|{{{secondarycolor|}}}|{{{primarycolor|0 0}}}}}% {{{overridesecondary|85%}}}); text-align: center; {{roundy|9px}}" {{!}} '''{{{languages|Name}}} in other languages'''< | + | {{!}} id="lang1" colspan="6" style="{{#if:{{{colorclass|}}}||background: hsl({{#if:{{{secondarycolor|}}}|{{{secondarycolor|}}}|{{{primarycolor|0 0}}}}}% {{{overridesecondary|85%}}});}} text-align: center; {{roundy|9px}}" {{!}} <div class="mw-collapsible {{#if:{{{languages-collapsed|}}}|mw-collapsed}}">'''{{{languages|Name}}} in other languages'''<div class="mw-collapsible-content"> |
{{Translation | {{Translation | ||
| color = black | | color = black | ||
Line 310: | Line 380: | ||
| nl-name = {{{nl-name|}}}{{#if:{{{nl-note|}}}|{{Note|{{{nl-note}}}}}|}} | | nl-name = {{{nl-name|}}}{{#if:{{{nl-note|}}}|{{Note|{{{nl-note}}}}}|}} | ||
| ru-name = {{{ru-name|}}}{{#if:{{{ru-note|}}}|{{Note|{{{ru-note}}}}}|}} | | ru-name = {{{ru-name|}}}{{#if:{{{ru-note|}}}|{{Note|{{{ru-note}}}}}|}} | ||
− | }} | + | }}</div></div> |
}} | }} | ||
Line 318: | Line 388: | ||
|- {{#if:{{{languages2|}}}| | |- {{#if:{{{languages2|}}}| | ||
{{!-}} | {{!-}} | ||
− | {{!}} colspan="6" style="background: hsl({{#if:{{{secondarycolor|}}}|{{{secondarycolor|}}}|{{{primarycolor|0 0}}}}}% {{{overridesecondary|85%}}}); text-align: center; {{roundy|9px}}" {{!}} '''{{{languages2|Phrase}}} in other languages'''< | + | {{!}} id="lang1" colspan="6" style="{{#if:{{{colorclass|}}}||background: hsl({{#if:{{{secondarycolor|}}}|{{{secondarycolor|}}}|{{{primarycolor|0 0}}}}}% {{{overridesecondary|85%}}});}} text-align: center; {{roundy|9px}}" {{!}} <div class="mw-collapsible {{#if:{{{languages2-collapsed|}}}|mw-collapsed}}">'''{{{languages2|Phrase}}} in other languages'''<div class="mw-collapsible-content"> |
{{Translation | {{Translation | ||
| color = black | | color = black | ||
Line 334: | Line 404: | ||
| nl-name = {{{nl-name2|}}}{{#if:{{{nl-note2|}}}|{{Note|{{{nl-note2}}}}}|}} | | nl-name = {{{nl-name2|}}}{{#if:{{{nl-note2|}}}|{{Note|{{{nl-note2}}}}}|}} | ||
| ru-name = {{{ru-name2|}}}{{#if:{{{ru-note2|}}}|{{Note|{{{ru-note2}}}}}|}} | | ru-name = {{{ru-name2|}}}{{#if:{{{ru-note2|}}}|{{Note|{{{ru-note2}}}}}|}} | ||
− | }}}} | + | }}</div></div>}} |
<!-- --> | <!-- --> | ||
<!-- STRATEGYWIKI --> | <!-- STRATEGYWIKI --> | ||
Line 340: | Line 410: | ||
{{#if:{{{strategywiki|}}}| | {{#if:{{{strategywiki|}}}| | ||
{{!-}} | {{!-}} | ||
− | {{!}} style=" | + | {{!}} style="text-align:center; line-height:12px; {{roundy|9px}}" colspan="6" {{!}} |
[[StrategyWiki:{{{strategywiki|}}}|Guide at StrategyWiki]]}} | [[StrategyWiki:{{{strategywiki|}}}|Guide at StrategyWiki]]}} | ||
|} | |} | ||
− | <noinclude>{{Documentation}} | + | <noinclude>{{Documentation}}[[Category:Infobox templates]][[Category:Pages using the Variables extension]]</noinclude> |
Latest revision as of 08:43, September 4, 2024
| ||||||
Template documentation (view)
Usage
{{Infobox 2.0 | colorclass = | title = | lefticon = | righticon = | primarycolor = | secondarycolor = | leftlink = | rightlink = | subtitleabove = | subtitlebelow = | image = | caption = | image2 = | caption2 = | leftlabel = | leftdata = | middlelabel = | middledata = | rightlabel = | rightdata = | calendar = | calcolor = | widelabel = | widedata = | group = | label = | data = | subdata = | widebottomlabel = | widebottomdata = | appearances = | o-appearances = | languages = | strategywiki = }}
This template is intended to be used for all infoboxes, as it allows them to be easily created and maintained and gives them a consistent visual style and functionality. It is very complex, and has been designed to adapt to the many different needs of various infoboxes across the wiki. This template is mobile-friendly and should appear the same on mobile devices (it will be centered on small resolution screens).
- Visual styles
The following parameters primarily set the visual style of the template:
colorclass
sets the display colors of the infobox to a color class defined in MediaWiki:Common.css. A list of valid color classes can be found here. If this parameter is not defined, the infobox will fallback to the default hue and saturation values of0 0%
.
title
sets the displayed heading of the infobox.lefticon
is an optional parameter that allows an image or text to appear in the upper-left corner of the infobox.righticon
is an optional parameter that allows an image or text to appear in the upper-right corner of the infobox.
The below parameters are deprecated. All infoboxes should use colorclass from now on.
|
primarycolor
sets the display colors of the infobox. Requires hue and saturation values in in HSL format, as other colors on the template are adjusted dynamically based on these values.secondarycolor
allows a complimentary color to be specified. Requires hue and saturation values in in HSL format, as other colors on the template are adjusted dynamically based on these values.overrideprimary
allows the lightness of the primary color to be overridden with a custom percentage value. Should only be used if chosen color lightness is not suitable.overridesecondary
allows the lightness of the secondary color to be overridden with a custom percentage value. Should only be used if chosen color lightness is not suitable.
titlecolor
sets the displayed colour that appears behind the heading text. Intended for use with villager infoboxes.textcolor
sets the displayed colour of the heading text. Intended for use with villager infoboxes.calcolor
sets the displayed colour of highlighted months on calendar, if it has been set to be shown (see below). Requires hue and saturation values in in HSL format, as other colors on the template are adjusted dynamically based on these values. Appending2
defines the color of the second calendar (see below).
- Content
The following parameters primarily set the content of the template:
image
sets the image file to be displayed in the infobox.caption
sets a text caption to be displayed below the image.image2
sets a second image file to be displayed in the infobox, below the first image.caption2
sets a text caption to be displayed below the second image.
leftlink
sets a link that appears on the upper-left side of the infobox with an arrow pointing left. Intended for navigation between related topics.rightlink
sets a link that appears on the upper-right side of the infobox with an arrow pointing right. Intended for navigation between related topics.
subtitleabove
sets a subtitle that will appear below the heading, but above any images.subtitlebelow
sets a subtitle that will appear below images. Setting this toGallery
will automatically set this to a styled gallery page link.
- Multi-column labels
The infobox can be set to show two or three adjacent columns of labels and data using the following parameters. It will appear with two columns if only left and right sides are specified, and three if the middle parameters are specified.
leftlabel
leftdata
middlelabel
middledata
rightlabel
rightdata
A second row may be specified via leftlabel2
/leftdata2
, etc.
- Calendars
A calendar can be set to appear in the infobox and will highlight any specified months. The calendar will appear above and visually join wide labels if they are set to be shown. Appending 2
to these parameters will allow creation of a second calendar below the first one, which is primarily intended for distinguishing months between northern and southern hemispheres.
calendar
sets the title for the calendar. Defaults to "Months".
- Wide labels
The following parameters will create label/data pairs above the data, in a single column that spans the width of the infobox:
widelabel
widedata
Up to five rows may be created via widelabel2
/widedata2
, etc.
- Labels
The following parameters will set the label to appear adjacent to the data, in two columns.
group
will create a group label in a single column that spans the width of the infobox. This will also shade the labels in a slightly lighter colour, allowing the creation of "sub-labels".labelspan
can be set towide
to extend the width of the labels at the expense of the data column.label
data
subdata
allows an extra cell to be displayed to the right of the first level of data. At the present time, this is solely intended to display star signs in Template:Infobox Villager.
- Wide labels at bottom
The following parameters will create label/data pairs below the data, in a single column that spans the width of the infobox:
widebottomlabel
widebottomdata
Up to six rows may be created via widebottomlabel2
/widebottomdata2
, etc.
- Appearances
The following parameters will display which media the subject has appeared in, by checking the categories the page is included in. For both parameters, the category name must be specified, omitting the title of the media (e.g. just "characters" rather than "New Horizons characters")
appearances
will display appearances in main series games.o-appearances
will display appearances in spin-off games and media.
For cases where the category name varies from game to game, one of the following parameters may be used to override the category designation for a specific title:
customcat-cf
is used to override the category used for City Folk.customcat-pc
is used to override the category used for Pocket Camp.
- Languages
languages
setting toyes
toggles the appearance of the languages sub-box, intended for names for the subject in other languages. The following parameters must be used to specify any parameters for the supported languages. Appending2
to these parameters will allow creation of a second languages box below the first one.
ja-name
for Japaneseko-name
for Koreanzh-name
for Simplified Chinesezht-name
for Traditional Chinesefr-name
for Frenchfrq-name
for Québec Frenches-name
for Spanishesl-name
for Latin American Spanishit-name
for Italiande-name
for Germannl-name
for Dutchru-name
for Russian
- Miscellaneous
StrategyWiki
allows a link to be set to a corresponding on StrategyWiki
The infobox template supports up to 5 wide rows and 13 two-column rows. When adding more than one row, you must append the sequential number to the names of the parameters like so. Failing to this will result in display errors.
| widelabel2 = | widedata2 = | label2 = | data2 =