Template:Catch/header: Difference between revisions

Cleaning up code in the same way as {{Catch/header/8}} — most significantly, replacing   that were used for padding with actual CSS padding
No edit summary
(Cleaning up code in the same way as {{Catch/header/8}} — most significantly, replacing   that were used for padding with actual CSS padding)
Line 1: Line 1:
{| align="left" class="roundy" width=425px style="border: 2px solid #{{locationcolor/dark|{{{1|road}}}}}; background: #{{locationcolor/med|{{{1|road}}}}}; margin-right: 5px; margin-bottom: 5px;"
{| class="roundy" width="500px" style="border: 2px solid #{{locationcolor/dark|{{{1|road}}}}}; background: #{{locationcolor/med|{{{1|road}}}}}; margin-right: 5px; margin-bottom: 5px;"
! class="roundytl" width=20% style="background: #{{locationcolor/light|{{{1|road}}}}}; color: #{{locationcolor/text|{{{1|road}}}}}" rowspan="{{#ifeq: {{{2|yes}}}|yes|2|1}}" |   Pokémon  
! class="roundytl" style="padding-left: 1em; padding-right: 1em; background: #{{locationcolor/light|{{{1|road}}}}}; color: #{{locationcolor/text|{{{1|road}}}}}" rowspan="{{#ifeq: {{{2|yes}}}|yes|2|1}}" | Pokémon
! width=18% style="background: #{{locationcolor/light|{{{1|road}}}}}; color: #{{locationcolor/text|{{{1|road}}}}}" rowspan="{{#ifeq: {{{2|yes}}}|yes|2|1}}" colspan="6" |   Games  
! style="padding-left: 1em; padding-right: 1em; background-color: #{{locationcolor/light|{{{1|road}}}}}; color: #{{locationcolor/text|{{{1|road}}}}}" rowspan="{{#ifeq: {{{2|yes}}}|yes|2|1}}" colspan="6" | Games
! width=29% style="background: #{{locationcolor/light|{{{1|road}}}}}; color: #{{locationcolor/text|{{{1|road}}}}}" rowspan="{{#ifeq: {{{2|yes}}}|yes|2|1}}" |   Location  
! style="padding-left: 1em; padding-right: 1em; background-color: #{{locationcolor/light|{{{1|road}}}}}; color: #{{locationcolor/text|{{{1|road}}}}}" rowspan="{{#ifeq: {{{2|yes}}}|yes|2|1}}" | Location
! width=29% style="background: #{{locationcolor/light|{{{1|road}}}}}; color: #{{locationcolor/text|{{{1|road}}}}}" rowspan="{{#ifeq: {{{2|yes}}}|yes|2|1}}" |   Levels  
! style="padding-left: 1em; padding-right: 1em; background-color: #{{locationcolor/light|{{{1|road}}}}}; color: #{{locationcolor/text|{{{1|road}}}}}" rowspan="{{#ifeq: {{{2|yes}}}|yes|2|1}}" | Levels
! class="roundytr" width=33% style="background: #{{locationcolor/light|{{{1|road}}}}}; color: #{{locationcolor/text|{{{1|road}}}}}" colspan="{{#ifeq: {{{seasons|}}}|yes|4|3}}" |   Rate  
! class="roundytr" style="padding-left: 1em; padding-right: 1em; background-color: #{{locationcolor/light|{{{1|road}}}}}; color: #{{locationcolor/text|{{{1|road}}}}}" colspan="{{#ifeq: {{{seasons|}}}|yes|4|3}}" | Rate
{{#ifeq: {{{2|yes}}}|yes|
{{#ifeq: {{{2|yes}}}|yes|
{{!}}- align="center" style="background: #{{locationcolor/light|{{{1|road}}}}}; color: #{{locationcolor/text|{{{1|road}}}}}"
{{!}}- style="text-align: center; background-color: #{{locationcolor/light|{{{1|road}}}}}; color: #{{locationcolor/text|{{{1|road}}}}}"
{{#ifeq: {{{seasons|}}}|yes|! width=8% style="background:#{{spring color}}" {{!}} [[Season (mechanic)#Spring|<span style="color:#000000;">Sp</span>]]
{{#ifeq: {{{seasons|}}}|yes|! style="background:#{{spring color}}" {{!}} [[Season (mechanic)#Spring|<span style="color:#000000;">Sp</span>]]
! width=8% style="background:#78D0F8" {{!}} [[Season (mechanic)#Summer|<span style="color:#000000;">Su</span>]]
! style="background:#78D0F8" {{!}} [[Season (mechanic)#Summer|<span style="color:#000000;">Su</span>]]
! width=8% style="background:#F89058" {{!}} [[Season (mechanic)#Autumn|<span style="color:#000000;">Au</span>]]
! style="background:#F89058" {{!}} [[Season (mechanic)#Autumn|<span style="color:#000000;">Au</span>]]
! width=8% style="background:#F0D8F8" {{!}} [[Season (mechanic)#Winter|<span style="color:#000000;">Wi</span>]]|! width=11% style="background:#FFFFAA" {{!}} [[File:Morning Icon.png|30px|Morning|link=Morning]]
! style="background:#F0D8F8" {{!}} [[Season (mechanic)#Winter|<span style="color:#000000;">Wi</span>]]|! style="background:#FFFFAA" {{!}} [[File:Morning Icon.png|30px|Morning|link=Morning]]
! width=11% style="background:#5ED0FF" {{!}} [[File:Day Icon.png|30px|Day|link=Day]]
! style="background:#5ED0FF" {{!}} [[File:Day Icon.png|30px|Day|link=Day]]
! width=11% style="background:#003366" {{!}} [[File:Night Icon.png|30px|Night|link=Night]]}}|{{!}}-}}<noinclude>
! style="background:#003366" {{!}} [[File:Night Icon.png|30px|Night|link=Night]]}}|{{!}}-}}<noinclude>
|}[[Category:Catch templates]]</noinclude>
|}[[Category:Catch templates]]</noinclude>