Difference between revisions of "Template:TableContent"

From Nookipedia, the Animal Crossing wiki
(Substituting roundy templates to reduce transclusion count)
(Simplifying roundy CSS (browser-specific properties are no longer necessary))
Line 16: Line 16:
 
                 | seafood = 1a7aff
 
                 | seafood = 1a7aff
 
                 | FFDD66
 
                 | FFDD66
                 }}; {{subst:roundyleft}}" {{!}} {{{1|}}}
+
                 }}; border-top-left-radius: 20px; border-bottom-left-radius: 20px;" {{!}} {{{1|}}}
 
}}
 
}}
 
{{#if: {{{2|}}}
 
{{#if: {{{2|}}}
Line 26: Line 26:
 
                 }}; {{#if: {{{3|}}}
 
                 }}; {{#if: {{{3|}}}
 
                         |  
 
                         |  
                         | {{subst:roundyright}}
+
                         | border-top-right-radius: 20px; border-bottom-right-radius: 20px;
 
                         }}" {{!}} {{{2|}}}
 
                         }}" {{!}} {{{2|}}}
 
}}
 
}}
Line 37: Line 37:
 
                 }}; {{#if: {{{4|}}}
 
                 }}; {{#if: {{{4|}}}
 
                         |  
 
                         |  
                         | {{subst:roundyright}}
+
                         | border-top-right-radius: 20px; border-bottom-right-radius: 20px;
 
                         }}" {{!}} {{{3|}}}
 
                         }}" {{!}} {{{3|}}}
 
}}
 
}}
Line 48: Line 48:
 
                 }}; {{#if: {{{5|}}}
 
                 }}; {{#if: {{{5|}}}
 
                         |  
 
                         |  
                         | {{subst:roundyright}}
+
                         | border-top-right-radius: 20px; border-bottom-right-radius: 20px;
 
                         }}" {{!}} {{{4|}}}
 
                         }}" {{!}} {{{4|}}}
 
}}
 
}}
Line 59: Line 59:
 
                 }}; {{#if: {{{6|}}}
 
                 }}; {{#if: {{{6|}}}
 
                         |  
 
                         |  
                         | {{subst:roundyright}}
+
                         | border-top-right-radius: 20px; border-bottom-right-radius: 20px;
 
                         }}" {{!}} {{{5|}}}
 
                         }}" {{!}} {{{5|}}}
 
}}
 
}}
Line 70: Line 70:
 
                 }}; {{#if: {{{7|}}}
 
                 }}; {{#if: {{{7|}}}
 
                         |  
 
                         |  
                         | {{subst:roundyright}}
+
                         | border-top-right-radius: 20px; border-bottom-right-radius: 20px;
 
                         }}" {{!}} {{{6|}}}
 
                         }}" {{!}} {{{6|}}}
 
}}
 
}}
Line 81: Line 81:
 
                 }}; {{#if: {{{8|}}}
 
                 }}; {{#if: {{{8|}}}
 
                         |  
 
                         |  
                         | {{subst:roundyright}}
+
                         | border-top-right-radius: 20px; border-bottom-right-radius: 20px;
 
                         }}" {{!}} {{#switch: {{{type|}}}
 
                         }}" {{!}} {{#switch: {{{type|}}}
 
                                         | insect = {{#switch: {{{game|}}}
 
                                         | insect = {{#switch: {{{game|}}}
Line 101: Line 101:
 
                 }}; {{#if: {{{9|}}}
 
                 }}; {{#if: {{{9|}}}
 
                         |  
 
                         |  
                         | {{subst:roundyright}}
+
                         | border-top-right-radius: 20px; border-bottom-right-radius: 20px;
 
                         }}" {{!}} {{#switch: {{{type|}}}
 
                         }}" {{!}} {{#switch: {{{type|}}}
 
                                         | insect = {{#switch: {{{game|}}}
 
                                         | insect = {{#switch: {{{game|}}}
Line 125: Line 125:
 
                 }}; {{#if: {{{10|}}}
 
                 }}; {{#if: {{{10|}}}
 
                         |  
 
                         |  
                         | {{subst:roundyright}}
+
                         | border-top-right-radius: 20px; border-bottom-right-radius: 20px;
 
                         }}" {{!}} {{#switch: {{{type|}}}
 
                         }}" {{!}} {{#switch: {{{type|}}}
 
                                         | insect = {{#switch: {{{game|}}}
 
                                         | insect = {{#switch: {{{game|}}}
Line 143: Line 143:
 
                 }}; {{#if: {{{11|}}}
 
                 }}; {{#if: {{{11|}}}
 
                         |  
 
                         |  
                         | {{subst:roundyright}}
+
                         | border-top-right-radius: 20px; border-bottom-right-radius: 20px;
 
                         }}" {{!}} {{#switch: {{{type|}}}
 
                         }}" {{!}} {{#switch: {{{type|}}}
 
                                         | fish = {{#switch: {{{game|}}}
 
                                         | fish = {{#switch: {{{game|}}}
Line 162: Line 162:
 
                 }}; {{#if: {{{12|}}}
 
                 }}; {{#if: {{{12|}}}
 
                         |  
 
                         |  
                         | {{subst:roundyright}}
+
                         | border-top-right-radius: 20px; border-bottom-right-radius: 20px;
 
                         }}" {{!}} {{#switch: {{{type|}}}
 
                         }}" {{!}} {{#switch: {{{type|}}}
 
                                         | seafood = {{#switch: {{{game|}}}
 
                                         | seafood = {{#switch: {{{game|}}}
Line 177: Line 177:
 
                 | seafood = 1a7aff
 
                 | seafood = 1a7aff
 
                 | FFDD66
 
                 | FFDD66
                 }}; {{subst:roundyright}}" {{!}} {{{12|}}}
+
                 }}; border-top-right-radius: 20px; border-bottom-right-radius: 20px;" {{!}} {{{12|}}}
 
}}}}
 
}}}}
 
|-
 
|-
 
</includeonly>
 
</includeonly>

Revision as of 10:29, June 8, 2020

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.