Template:Recipe/doc: Difference between revisions

From Subnautica Wiki
(Updated to show more item slots)
Tag: sourceedit
(Updated to account for machine text)
Tag: sourceedit
Line 1: Line 1:
;Overview
;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.
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. The "item" text is corresponds to the ingredients, the "machine" text corresponds to the method of crafting, and the "result" text corresponds to the products. While the typical order is "item", "machine, then "result" any order will work as long as there is proper separation. This is also true for the "count" text. The "item=" and "item1=" texts are interchangeable and the same goes for "result1" and "count1". If no count is provided for an item or result then a single count is assumed. Therefor "count=1" is unnecessary but will still work.
;Usage
;Usage


*Full syntax: <code><nowiki>{{Recipe|item1=|count1=|item2=|count2=|item3=|count3=|item4=|count4=|item5=|count5=|item6=|count6=|item7=|count7=|item8=|count8=|result=}}</nowiki></code>
*Full syntax: <code><nowiki>{{Recipe|item1=|count1=|item2=|count2=|item3=|count3=|item4=|count4=|item5=|count5=|item6=|count6=|item7=|count7=|item8=|count8=|machine=|result1=|resultcount1=|result2=|resultcount2=|result3=|resultcount3=}}</nowiki></code>



*Basic usage is as follows:
*Basic usage is as follows:
:<code><nowiki>{{Recipe|item=Airsack|result=Filtered Water}}</nowiki></code>
:<code><nowiki>{{Recipe|item=Airsack|machine=Fabricator|result=Filtered Water}}</nowiki></code>
{{Recipe|item=Airsack|result=Filtered Water}}
{{Recipe|item=Airsack|machine=Fabricator|result=Filtered Water}}



*Typically, more than 1 of an item is needed:
*Typically, more than 1 of an item is needed:
:<code><nowiki>{{Recipe|item=Salt|count=3|result=Magnesium}}</nowiki></code>
:<code><nowiki>{{Recipe|item=Salt|count=3|machine=Fabricator|result=Magnesium}}</nowiki></code>
{{Recipe|item=Salt|count=3|result=Magnesium}}
{{Recipe|item=Salt|count=3|machine=Fabricator|result=Magnesium}}



*Multiple results of the same item are possible, too:
*Multiple results of the same item are possible, too:
:<code><nowiki>{{Recipe|item=Scrap Metal|result=Titanium|resultcount=2}}</nowiki></code>
:<code><nowiki>{{Recipe|item=Scrap Metal|machine=Fabricator|result=Titanium|resultcount=2}}</nowiki></code>
{{Recipe|item=Scrap Metal|result=Titanium|resultcount=2}}
{{Recipe|item=Scrap Metal|machine=Fabricator|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:
:<code><nowiki>{{Recipe|item=Salt|count=12|result=Magnesium}}</nowiki></code>
:<code><nowiki>{{Recipe|item=Titanium|count=10|machine=Fabricator|result=Titanium Ingot}}</nowiki></code>
{{Recipe|item=Salt|count=12|result=Magnesium}}
{{Recipe|item=Titanium|count=10|machine=Fabricator|result=Titanium Ingot}}



*Most recipes need several different items:
*Most recipes need several different items:
:<code><nowiki>{{Recipe|item1=Plasteel Ingot|count1=5|item2=Enameled Glass|count2=5|item3=Advanced Wiring Kit|result=Cyclops}}</nowiki></code>
:<code><nowiki>{{Recipe|item1=Plasteel Ingot|count1=5|item2=Enameled Glass|count2=5|item3=Advanced Wiring Kit|machine=Constructor|result=Cyclops}}</nowiki></code>
{{Recipe|item1=Plasteel Ingot|count1=5|item2=Enameled Glass|count2=5|item3=Advanced Wiring Kit|result=Cyclops}}
{{Recipe|item1=Plasteel Ingot|count1=5|item2=Enameled Glass|count2=5|item3=Advanced Wiring Kit|machine=Constructor|result=Cyclops}}


*While it hasn't been utilized on the wiki there is a small syntax:
:<code><nowiki>{{Recipe|item1=Salt|item2=Spadefish|machine=Fabricator|result=Cooked Spadefish|small=yes}}</nowiki></code>
{{Recipe|item1=Salt|item2=Spadefish|machine=Fabricator|result=Cooked Spadefish|small=yes}}


*If the recipe is known but cannot be used in the game the "machine" is set to "Unknown":
:<code><nowiki>{{Recipe|item = Titanium|count=2|item2 = Wiring Kit|item3=Computer Chip|item4=Workbench Blueprint|machine=Unknown|result = Workbench}}</nowiki></code>
{{Recipe|item = Titanium|count=2|item2 = Wiring Kit|item3=Computer Chip|item4=Workbench Blueprint|machine=Unknown|result = Workbench}}


*To make a page with lots of recipes less cluttered, you can use the small syntax:
:<code><nowiki>{{Recipe|item1=Salt|item2=Spadefish|result=Cooked Spadefish|small=yes}}</nowiki></code>
{{Recipe|item1=Salt|item2=Spadefish|result=Cooked Spadefish|small=yes}}


Lastly, credit where credit is due: Big thanks to the [http://dont-starve-game.wikia.com/wiki/Template:Recipe Don't Starve Wikia] for the base code. It has been modified to (hopefully) be more resilient.
Lastly, credit where credit is due: Big thanks to the [http://dont-starve-game.wikia.com/wiki/Template:Recipe Don't Starve Wikia] for the base code. It has been modified to (hopefully) be more resilient.

Revision as of 09:16, 12 May 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. The "item" text is corresponds to the ingredients, the "machine" text corresponds to the method of crafting, and the "result" text corresponds to the products. While the typical order is "item", "machine, then "result" any order will work as long as there is proper separation. This is also true for the "count" text. The "item=" and "item1=" texts are interchangeable and the same goes for "result1" and "count1". If no count is provided for an item or result then a single count is assumed. Therefor "count=1" is unnecessary but will still work.

Usage
  • Full syntax: {{Recipe|item1=|count1=|item2=|count2=|item3=|count3=|item4=|count4=|item5=|count5=|item6=|count6=|item7=|count7=|item8=|count8=|machine=|result1=|resultcount1=|result2=|resultcount2=|result3=|resultcount3=}}


  • Basic usage is as follows:
{{Recipe|item=Airsack|machine=Fabricator|result=Filtered Water}}


  • Typically, more than 1 of an item is needed:
{{Recipe|item=Salt|count=3|machine=Fabricator|result=Magnesium}}
Salt.pngSalt.pngSalt.pngItem Arrow.pngFabricator.pngItem Arrow.pngMagnesium.png


  • Multiple results of the same item are possible, too:
{{Recipe|item=Scrap Metal|machine=Fabricator|result=Titanium|resultcount=2}}


  • This will also show a multiplier if a lot of an item is needed:
{{Recipe|item=Titanium|count=10|machine=Fabricator|result=Titanium Ingot}}
Titanium.png×10Item Arrow.pngFabricator.pngItem Arrow.pngTitanium Ingot.png


  • Most recipes need several different items:
{{Recipe|item1=Plasteel Ingot|count1=5|item2=Enameled Glass|count2=5|item3=Advanced Wiring Kit|machine=Constructor|result=Cyclops}}
Plasteel Ingot.png×5Enameled Glass.png×5Advanced Wiring Kit.pngItem Arrow.pngConstructor.pngItem Arrow.pngCyclops.png


  • While it hasn't been utilized on the wiki there is a small syntax:
{{Recipe|item1=Salt|item2=Spadefish|machine=Fabricator|result=Cooked Spadefish|small=yes}}
Salt.pngSpadefish.pngItem Arrow.pngFabricator.pngItem Arrow.pngCooked Spadefish.png


  • If the recipe is known but cannot be used in the game the "machine" is set to "Unknown":
{{Recipe|item = Titanium|count=2|item2 = Wiring Kit|item3=Computer Chip|item4=Workbench Blueprint|machine=Unknown|result = Workbench}}
Titanium.pngTitanium.pngWiring Kit.pngComputer Chip.pngWorkbench Blueprint.pngItem Arrow.pngUnknown.pngItem Arrow.pngWorkbench.png


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.