Difference between revisions of "Template:CoffeePrefList"

From Nookipedia, the Animal Crossing wiki
m (Adding category.)
m (Text replacement - " width="(.*)\%"(.*)style="" to "$2style="width: $1%; ")
 
(3 intermediate revisions by one other user not shown)
Line 1: Line 1:
{{#switch: {{{1|}}}
+
<noinclude>{{Deprecated|note=[[Coffee preferences]] list now use updated tables}}</noinclude>{{#switch: {{{1|}}}
 
|1={{#switch: {{{2|}}}
 
|1={{#switch: {{{2|}}}
|start={{(!}} class="coffee" width="40%" cellpadding="1px" style="border: 2px solid #78ab46;"  
+
|start={{(!}} class="coffee" cellpadding="1px" style="width: 40%; border: 2px solid #78ab46;"  
 
! style="border: 0px solid; background-color:#78ab46; color:#000000;" {{!}} Name
 
! style="border: 0px solid; background-color:#78ab46; color:#000000;" {{!}} Name
 
! style="border: 2px solid #78ab46; background-color:#baeea8; color:#444444;" {{!}} Coffee Beans
 
! style="border: 2px solid #78ab46; background-color:#baeea8; color:#444444;" {{!}} Coffee Beans
 
! style="border: 2px solid #78ab46; background-color:#baeea8; color:#444444;" {{!}} Milk
 
! style="border: 2px solid #78ab46; background-color:#baeea8; color:#444444;" {{!}} Milk
 
! style="border: 2px solid #78ab46; background-color:#baeea8; color:#444444;" {{!}} Sugar
 
! style="border: 2px solid #78ab46; background-color:#baeea8; color:#444444;" {{!}} Sugar
 +
{{!-}}
 
|end={{!)}}}}
 
|end={{!)}}}}
 
|2={{#switch: {{{2|}}}
 
|2={{#switch: {{{2|}}}
|start={{(!}} width="80%" style="border-collapse:collapse;" cellpadding="0px"
+
|start={{(!}} style="width: 80%; border-collapse:collapse;" cellpadding="0px"
{{!}} width="50%" style="vertical-align: top;" {{!}}
+
{{!}} style="width: 50%; vertical-align: top;" {{!}}
{{(!}} class="coffee" align="center" width="100%" cellpadding="1px" style="border: 2px solid #78ab46; border-right:1px solid #78ab46"  
+
{{(!}} class="coffee" align="center" cellpadding="1px" style="width: 100%; border: 2px solid #78ab46; border-right:1px solid #78ab46"  
 
! style="border: 0px solid; background-color:#78ab46; color:#000000;" {{!}} Name
 
! style="border: 0px solid; background-color:#78ab46; color:#000000;" {{!}} Name
 
! style="border: 2px solid #78ab46; background-color:#baeea8; color:#444444;" {{!}} Coffee Beans
 
! style="border: 2px solid #78ab46; background-color:#baeea8; color:#444444;" {{!}} Coffee Beans
 
! style="border: 2px solid #78ab46; background-color:#baeea8; color:#444444;" {{!}} Milk
 
! style="border: 2px solid #78ab46; background-color:#baeea8; color:#444444;" {{!}} Milk
 
! style="border: 2px solid #78ab46; background-color:#baeea8; color:#444444;" {{!}} Sugar
 
! style="border: 2px solid #78ab46; background-color:#baeea8; color:#444444;" {{!}} Sugar
 +
{{!-}}
 
|mid={{!)}}
 
|mid={{!)}}
{{!}} width="50%" style="vertical-align: top;" {{!}}
+
{{!}} style="width: 50%; vertical-align: top;" {{!}}
{{(!}} class="coffee" align="center" width="100%" cellpadding="1px" style="border: 2px solid #78ab46; border-left:1px solid #78ab46"  
+
{{(!}} class="coffee" align="center" cellpadding="1px" style="width: 100%; border: 2px solid #78ab46; border-left:1px solid #78ab46"  
 
! style="border: 0px solid; background-color:#78ab46; color:#000000;" {{!}} Name
 
! style="border: 0px solid; background-color:#78ab46; color:#000000;" {{!}} Name
 
! style="border: 2px solid #78ab46; background-color:#baeea8; color:#444444;" {{!}} Coffee Beans
 
! style="border: 2px solid #78ab46; background-color:#baeea8; color:#444444;" {{!}} Coffee Beans
Line 25: Line 27:
 
{{!)}}
 
{{!)}}
 
|enduneven={{!)}}
 
|enduneven={{!)}}
{{(!}} width="100%" cellpadding="0px" style="border-left:1px solid #78ab46" {{!}}
+
{{(!}} cellpadding="0px" style="width: 100%; border-left:1px solid #78ab46" {{!}}
 
{{!}}&nbsp;
 
{{!}}&nbsp;
 
{{!)}}
 
{{!)}}

Latest revision as of 20:10, June 30, 2021

Lucky NH Villager Icon.png
This template is deprecated and should no longer be used.
This template's functionality is obsolete and no longer maintained. It should be removed from pages or replaced with an alternative template.
Further details: Coffee preferences list now use updated tables
Lucky NH Villager Icon.png
This template is deprecated and should no longer be used.
This template's functionality is obsolete and no longer maintained. It should be removed from pages or replaced with an alternative template.
Further details: Coffee preferences list now use updated tables

Template:CoffeePrefList

Usage

{{CoffeePrefList|<Number of Columns>|<Position>}}

Replace <Number of Columns> above with 1 or 2, depending on the number of coffee preference tables to be displayed. In a one-column table, replace <Position> with one of the following:

  • start- to begin a table
  • end- to end a table

In a one-column table, replace <Position> with one of the following:

  • start- to begin a table
  • mid- at the midpoint of a two-column table
  • endeven- to end a table when both columns have the same number of rows
  • enduneven- to end a table when the columns have different numbers of rows