Template:Recipe/doc: Difference between revisions
(Adding example with multiple results) Tag: sourceedit |
(Updated to show more item slots) Tag: sourceedit |
||
Line 3: | Line 3: | ||
;Usage |
;Usage |
||
*Full syntax: <code><nowiki>{{Recipe|item1=|count1=|item2=|count2=|item3=|count3=|result=}}</nowiki></code> |
*Full syntax: <code><nowiki>{{Recipe|item1=|count1=|item2=|count2=|item3=|count3=|item4=|count4=|item5=|count5=|item6=|count6=|item7=|count7=|item8=|count8=|result=}}</nowiki></code> |
||
*Basic usage is as follows: |
*Basic usage is as follows: |
Revision as of 00:21, 20 March 2015
- Overview
This template is used to make an organized, standardized recipe layout with automatic links/icons. Full in-game item names should be used, as this will select the corresponding article and image.
- Usage
- Full syntax:
{{Recipe|item1=|count1=|item2=|count2=|item3=|count3=|item4=|count4=|item5=|count5=|item6=|count6=|item7=|count7=|item8=|count8=|result=}}
- Basic usage is as follows:
{{Recipe|item=Airsack|result=Filtered Water}}
- Typically, more than 1 of an item is needed:
{{Recipe|item=Salt|count=3|result=Magnesium}}
- Multiple results of the same item are possible, too:
{{Recipe|item=Scrap Metal|result=Titanium|resultcount=2}}
- This will also show a multiplier if a lot of an item is needed:
{{Recipe|item=Salt|count=12|result=Magnesium}}
×12
- Most recipes need several different items:
{{Recipe|item1=Plasteel Ingot|count1=5|item2=Enameled Glass|count2=5|item3=Advanced Wiring Kit|result=Cyclops}}
×5×5
- To make a page with lots of recipes less cluttered, you can use the small syntax:
{{Recipe|item1=Salt|item2=Spadefish|result=Cooked Spadefish|small=yes}}
Lastly, credit where credit is due: Big thanks to the Don't Starve Wikia for the base code. It has been modified to (hopefully) be more resilient.