Difference between revisions of "Template:TableContent"

From Nookipedia, the Animal Crossing wiki
(Spacing wikitext to make code easier to read.)
(Remove styling for WW/CF/NL months display)
 
(8 intermediate revisions by 2 users not shown)
Line 5: Line 5:
 
===Parameters===
 
===Parameters===
 
* '''type''' - Optional. Will change cell border colors to match the fish, insect or seafood tables.
 
* '''type''' - Optional. Will change cell border colors to match the fish, insect or seafood tables.
 +
 +
[[Category:Table templates]]
 
</noinclude>
 
</noinclude>
 
<includeonly>
 
<includeonly>
Line 14: Line 16:
 
                 | seafood = 1a7aff
 
                 | seafood = 1a7aff
 
                 | FFDD66
 
                 | FFDD66
                 }}; {{roundyleft}}" {{!}} {{{1|}}}
+
                 }}; border-top-left-radius: 20px; border-bottom-left-radius: 20px;" {{!}} {{{1|}}}
 
}}
 
}}
 
{{#if: {{{2|}}}
 
{{#if: {{{2|}}}
Line 24: Line 26:
 
                 }}; {{#if: {{{3|}}}
 
                 }}; {{#if: {{{3|}}}
 
                         |  
 
                         |  
                         | {{roundyright}}
+
                         | border-top-right-radius: 20px; border-bottom-right-radius: 20px;
                         }}" {{!}} {{#switch: {{{type|}}}
+
                         }}" {{!}} {{{2|}}}
                                | fish
 
                                | insect
 
                                | seafood = {{{2|}}}
 
                                | {{{2|}}}
 
                                }}
 
 
}}
 
}}
 
{{#if: {{{3|}}}
 
{{#if: {{{3|}}}
Line 40: Line 37:
 
                 }}; {{#if: {{{4|}}}
 
                 }}; {{#if: {{{4|}}}
 
                         |  
 
                         |  
                         | {{roundyright}}
+
                         | border-top-right-radius: 20px; border-bottom-right-radius: 20px;
 
                         }}" {{!}} {{{3|}}}
 
                         }}" {{!}} {{{3|}}}
 
}}
 
}}
Line 51: Line 48:
 
                 }}; {{#if: {{{5|}}}
 
                 }}; {{#if: {{{5|}}}
 
                         |  
 
                         |  
                         | {{roundyright}}
+
                         | border-top-right-radius: 20px; border-bottom-right-radius: 20px;
                         }}" {{!}} {{#switch: {{{type|}}}
+
                         }}" {{!}} {{{4|}}}
                                | fish
 
                                | insect
 
                                | seafood = {{{4|}}}
 
                                | {{{4|}}}
 
                                }}
 
 
}}
 
}}
 
{{#if: {{{5|}}}
 
{{#if: {{{5|}}}
Line 67: Line 59:
 
                 }}; {{#if: {{{6|}}}
 
                 }}; {{#if: {{{6|}}}
 
                         |  
 
                         |  
                         | {{roundyright}}
+
                         | border-top-right-radius: 20px; border-bottom-right-radius: 20px;
 
                         }}" {{!}} {{{5|}}}
 
                         }}" {{!}} {{{5|}}}
 
}}
 
}}
Line 78: Line 70:
 
                 }}; {{#if: {{{7|}}}
 
                 }}; {{#if: {{{7|}}}
 
                         |  
 
                         |  
                         | {{roundyright}}
+
                         | border-top-right-radius: 20px; border-bottom-right-radius: 20px;
 
                         }}" {{!}} {{{6|}}}
 
                         }}" {{!}} {{{6|}}}
 
}}
 
}}
Line 89: Line 81:
 
                 }}; {{#if: {{{8|}}}
 
                 }}; {{#if: {{{8|}}}
 
                         |  
 
                         |  
                         | {{roundyright}}
+
                         | border-top-right-radius: 20px; border-bottom-right-radius: 20px;
                         }}" {{!}} {{#switch: {{{game|}}}
+
                         }}" {{!}} {{#switch: {{{type|}}}
                                | ACNL = {{{7|}}}
+
                                        | insect = {{#switch: {{{game|}}}
                                | {{#switch: {{{type|}}}
+
                                                | DnM
                                        | fish
+
                                                | DnM+
                                        | insect
+
                                                | ACGC
                                        | seafood = <small><font color{{=}}"#DFDFDF">{{{7|}}}</font></small>
+
                                                | DnMe+ = <small><font color{{=}}"#DFDFDF">{{{7|}}}</font></small>
 +
                                                | {{{7|}}}
 +
                                                }}
 
                                         | {{{7|}}}
 
                                         | {{{7|}}}
 
                                         }}
 
                                         }}
                                }}
 
 
}}
 
}}
 
{{#if: {{{8|}}}
 
{{#if: {{{8|}}}
Line 108: Line 101:
 
                 }}; {{#if: {{{9|}}}
 
                 }}; {{#if: {{{9|}}}
 
                         |  
 
                         |  
                         | {{roundyright}}
+
                         | border-top-right-radius: 20px; border-bottom-right-radius: 20px;
                         }}" {{!}} {{#switch: {{{game|}}}
+
                         }}" {{!}} {{#switch: {{{type|}}}
                                | ACNL = {{#switch: {{{type|}}}
+
                                        | insect = {{#switch: {{{game|}}}
                                         | fish
+
                                                | ACWW = <small><font color{{=}}"#DFDFDF">{{{8|}}}</font></small>
                                        | insect
+
                                                | {{{8|}}}
                                        | seafood = <small><font color{{=}}"#DFDFDF">{{{8|}}}</font></small>
+
                                                }}
 +
                                         | fish = {{#switch: {{{game|}}}
 +
                                                | DnM
 +
                                                | DnM+
 +
                                                | ACGC
 +
                                                | DnMe+ = <small><font color{{=}}"#DFDFDF">{{{8|}}}</font></small>
 +
                                                | {{{8|}}}
 +
                                                }}
 
                                         | {{{8|}}}
 
                                         | {{{8|}}}
 
                                         }}
 
                                         }}
                                | {{{8|}}}
 
                                }}
 
 
}}
 
}}
 
{{#if: {{{9|}}}
 
{{#if: {{{9|}}}
Line 127: Line 125:
 
                 }}; {{#if: {{{10|}}}
 
                 }}; {{#if: {{{10|}}}
 
                         |  
 
                         |  
                         | {{roundyright}}
+
                         | border-top-right-radius: 20px; border-bottom-right-radius: 20px;
                        }}" {{!}} {{{9|}}}
+
                        }}" {{!}} {{#switch: {{{type|}}}
 +
                                        | insect = {{#switch: {{{game|}}}
 +
                                                | {{{9|}}}
 +
                                                }}
 +
                                        | {{{9|}}}
 +
                                        }}
 
}}
 
}}
 
{{#if: {{{10|}}}
 
{{#if: {{{10|}}}
Line 138: Line 141:
 
                 }}; {{#if: {{{11|}}}
 
                 }}; {{#if: {{{11|}}}
 
                         |  
 
                         |  
                         | {{roundyright}}
+
                         | border-top-right-radius: 20px; border-bottom-right-radius: 20px;
                        }}" {{!}} {{{10|}}}
+
                        }}" {{!}} {{#switch: {{{type|}}}
 +
                                        | fish = {{#switch: {{{game|}}}
 +
                                                | {{{10|}}}
 +
                                                }}
 +
                                        | {{{10|}}}
 +
                                        }}
 
}}
 
}}
 
{{#if: {{{11|}}}
 
{{#if: {{{11|}}}
Line 149: Line 157:
 
                 }}; {{#if: {{{12|}}}
 
                 }}; {{#if: {{{12|}}}
 
                         |  
 
                         |  
                         | {{roundyright}}
+
                         | border-top-right-radius: 20px; border-bottom-right-radius: 20px;
                        }}" {{!}} {{{11|}}}
+
                        }}" {{!}} {{#switch: {{{type|}}}
 +
                                        | seafood = {{#switch: {{{game|}}}
 +
                                                | ACNL = <small><font color{{=}}"#DFDFDF">{{{11|}}}</font></small>
 +
                                                | {{{11|}}}
 +
                                                }}
 +
                                        | {{{11|}}}
 +
                                        }}
 
}}
 
}}
 
{{#if: {{{12|}}}
 
{{#if: {{{12|}}}
Line 158: Line 172:
 
                 | seafood = 1a7aff
 
                 | seafood = 1a7aff
 
                 | FFDD66
 
                 | FFDD66
                 }}; {{roundyright}}" {{!}} {{{12|}}}
+
                 }}; border-top-right-radius: 20px; border-bottom-right-radius: 20px;" {{!}} {{{12|}}}
 
}}}}
 
}}}}
 
|-
 
|-
 
</includeonly>
 
</includeonly>

Latest revision as of 03:45, January 3, 2021

Usage

Replaces templates Template:RowStart, Template:RowCenter, and Template:RowEnd.

Parameters

  • type - Optional. Will change cell border colors to match the fish, insect or seafood tables.