Template:Recipe/doc: Difference between revisions
(Adding a multiple item with multiple counts > 3 example) Tag: sourceedit |
(Adding example with multiple results) Tag: sourceedit |
||
Line 12: | Line 12: | ||
:<code><nowiki>{{Recipe|item=Salt|count=3|result=Magnesium}}</nowiki></code> |
:<code><nowiki>{{Recipe|item=Salt|count=3|result=Magnesium}}</nowiki></code> |
||
{{Recipe|item=Salt|count=3|result=Magnesium}} |
{{Recipe|item=Salt|count=3|result=Magnesium}} |
||
*Multiple results of the same item are possible, too: |
|||
:<code><nowiki>{{Recipe|item=Scrap Metal|result=Titanium|resultcount=2}}</nowiki></code> |
|||
{{Recipe|item=Scrap Metal|result=Titanium|resultcount=2}} |
|||
*This will also show a multiplier if a lot of an item is needed: |
*This will also show a multiplier if a lot of an item is needed: |
Revision as of 08:59, 10 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=|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.