Template:EffectsTable

From Eastward Wiki
Jump to navigation Jump to search

The EffectsTable template displays a standard table design for food pages, specifically to outline a grid of quality based effects and buffs.

Use

Syntax

 {{Infobox
   |image           = The English name of the item image that will display below quality stars
   |0starstats      = The stats for no star quality. Each stat should be wrapped in a {{stat}} template.
   |1starstats      = The stats for 1 star quality. Each stat should be wrapped in a {{stat}} template.
   |2starstats      = The stats for 2 star quality. Each stat should be wrapped in a {{stat}} template.
   |3starstats      = The stats for 3 star quality. Each stat should be wrapped in a {{stat}} template.
 }}

Parameters

Only parameters relevant to the current item should be provided (completely delete irrelevant ones to fully omit from the infobox). Default value for all arguments is empty, unless specified otherwise.

  • image = value
    • Name of item image to display in the quality column. Default is page_name.png
    • The extension .png is automatically added, just the name should be entered.
  • 0starstats = value
    • The stats for no star quality.
    • Each stat should be wrapped in a {{stat}} template.
    • Example: {{stat|health|5}}{{stat|armor|2}}
  • 1starstats = value
    • The stats for 1 star quality.
    • Each stat should be wrapped in a {{stat}} template.
    • Example: {{stat|health|5}}{{stat|armor|2}}
  • 2starstats = value
    • The stats for 2 star quality.
    • Each stat should be wrapped in a {{stat}} template.
    • Example: {{stat|health|5}}{{stat|armor|2}}
  • 3starstats = value
    • The stats for 3 star quality.
    • Each stat should be wrapped in a {{stat}} template.
    • Example: {{stat|health|5}}{{stat|armor|2}}

The following optional parameters apply to recipes with only two ingredient types which can be combined in a 2-1 and 1-2 recipe. For example - Sweet and Sour Pork can be made using Fruit.png Fruit (2) & Meat.png Meat (1) OR Fruit.png Fruit (1) & Meat.png Meat (2), which each produce different base stats.

  • ingredient1 = value
    • First (of two) ingredient types.
    • Text, no formatting
  • ingredient2 = value
    • Second (of two) ingredient types.
    • Text, no formatting
  • 0starstats2 = value
    • The second set of stats for no star quality.
    • Each stat should be wrapped in a {{stat}} template.
    • Example: {{stat|health|5}}{{stat|armor|2}}
  • 1starstats2 = value
    • The second set of stats for 1 star quality.
    • Each stat should be wrapped in a {{stat}} template.
    • Example: {{stat|health|5}}{{stat|armor|2}}
  • 2starstats2 = value
    • The second set of stats for 2 star quality.
    • Each stat should be wrapped in a {{stat}} template.
    • Example: {{stat|health|5}}{{stat|armor|2}}
  • 3starstats2 = value
    • The second set of stats for 3 star quality.
    • Each stat should be wrapped in a {{stat}} template.
    • Example: {{stat|health|5}}{{stat|armor|2}}

Examples

The code below generates the infobox below it.

{{EffectsTable
|image=Lasagna
|0starstats={{stat|health|6}}{{stat|armor|2}}
|1starstats={{stat|armor|9}}{{stat|energy|3}}
|2starstats={{stat|health|12}}{{stat|armor|4}}
|3starstats={{stat|health|15}}{{stat|armor|5}}
}}
Quality Effects Steam Peppercorn.png SP Lava Candy.png LC Fire Mint.png FM Electric Chili Sauce.png ECS
Lasagna.png
Restores hearts +6
Increases hearts +2
Increases defense 1:00
Increases attack 1:00
Reduces cost 1:00
Boosts attack speed 1:00
Lasagna.png
1 Star Icon.png
Increases hearts +9
Restores energy +3
Increases defense 1:30
Increases attack 1:30
Reduces cost 1:30
Boosts attack speed 1:30
Lasagna.png
2 Star Icon.png
Restores hearts +12
Increases hearts +4
Increases defense 2:00
Increases attack 2:00
Reduces cost 2:00
Boosts attack speed 2:00
Lasagna.png
3 Star Icon.png
Restores hearts +15
Increases hearts +5
Increases defense 2:30
Increases attack 2:30
Reduces cost 2:30
Boosts attack speed 2:30
{{EffectsTable
|image=Pork Chop
|ingredient1=Vegetable
|ingredient2=Meat
|0starstats={{stat|health|6}}
|0starstats2={{stat|health|7}}
|1starstats={{stat|health|9}}
|1starstats2={{stat|health|11}}
|2starstats={{stat|health|12}}
|2starstats2={{stat|health|14}}
|3starstats={{stat|health|15}}
|3starstats2={{stat|health|18}}
}}
Quality Effects Steam Peppercorn.png SP Lava Candy.png LC Fire Mint.png FM Electric Chili Sauce.png ECS
Pork Chop.png
Vegetable.png Vegetable (2)
Meat.png Meat (1)
Vegetable.png Vegetable (1)
Meat.png Meat (2)
Increases defense 1:00
Increases attack 1:00
Reduces cost 1:00
Boosts attack speed 1:00
Restores hearts +6
Restores hearts +7
Pork Chop.png
1 Star Icon.png
Restores hearts +9
Restores hearts +11
Increases defense 1:30
Increases attack 1:30
Reduces cost 1:30
Boosts attack speed 1:30
Pork Chop.png
2 Star Icon.png
Restores hearts +12
Restores hearts +14
Increases defense 2:00
Increases attack 2:00
Reduces cost 2:00
Boosts attack speed 2:00
Pork Chop.png
3 Star Icon.png
Restores hearts +15
Restores hearts +18
Increases defense 2:30
Increases attack 2:30
Reduces cost 2:30
Boosts attack speed 2:30