Template:Recipe/doc: Difference between revisions

From Subnautica Wiki
(Created page with ";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 co...")
Tag: sourceedit
 
(Changed the examples to use working images (even if they don't make sense))
Tag: sourceedit
Line 6: Line 6:


*Basic usage is as follows:
*Basic usage is as follows:
:<code><nowiki>{{Recipe|item=Salt|result=Bleach}}</nowiki></code>
:<code><nowiki>{{Recipe|item=Silicone|result=Bleach}}</nowiki></code>
{{Recipe|item=Silicone|result=Bleach}}
{{Recipe|item=Silicone|result=Bleach}}


*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=Silicone|count=3|result=Bleach}}</nowiki></code>
{{Recipe|item=Salt|count=3|result=Magnesium}}
{{Recipe|item=Silicone|count=3|result=Bleach}}


*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=Silicone|count=12|result=Bleach}}</nowiki></code>
{{Recipe|item=Salt|count=12|result=Magnesium}}
{{Recipe|item=Silicone|count=12|result=Bleach}}


*Most recipes need several items:
*Most recipes need several items:
:<code><nowiki>{{Recipe|item1=Salt|item2=Silicone|result=Bleach}}</nowiki></code>
:<code><nowiki>{{Recipe|item1=Silicone|item2=Glass|result=Bleach}}</nowiki></code>
{{Recipe|item1=Twigs|item2=Flint|result=Axe}}
{{Recipe|item1=Silicone|item2=Glass|result=Bleach}}


*To make a page with lots of recipes less cluttered, you can use the small syntax:
*To make a page with lots of recipes less cluttered, you can use the small syntax:
:<code><nowiki>{{Recipe|item1=Salt|item2=Silicone|result=Bleach|small=yes}}</nowiki></code>
:<code><nowiki>{{Recipe|item1=Silicone|item2=Silicone|result=Bleach|small=yes}}</nowiki></code>
{{Recipe|item1=Salt|item2=Silicone|result=Bleach|small=yes}}
{{Recipe|item1=Silicone|item2=Glass|result=Bleach|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 17:25, 9 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=Silicone|result=Bleach}}
Silicone.pngItem Arrow.pngItem Arrow.pngBleach.png
  • Typically, more than 1 of an item is needed:
{{Recipe|item=Silicone|count=3|result=Bleach}}
Silicone.pngSilicone.pngSilicone.pngItem Arrow.pngItem Arrow.pngBleach.png
  • This will also show a multiplier if a lot of an item is needed:
{{Recipe|item=Silicone|count=12|result=Bleach}}
Silicone.png×12Item Arrow.pngItem Arrow.pngBleach.png
  • Most recipes need several items:
{{Recipe|item1=Silicone|item2=Glass|result=Bleach}}
Silicone.pngGlass.pngItem Arrow.pngItem Arrow.pngBleach.png
  • To make a page with lots of recipes less cluttered, you can use the small syntax:
{{Recipe|item1=Silicone|item2=Silicone|result=Bleach|small=yes}}
Silicone.pngGlass.pngItem Arrow.pngItem Arrow.pngBleach.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.