Template:Recipes: Difference between revisions
No edit summary |
mNo edit summary |
||
(11 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
<noinclude>{{doc}}[[Category:Templates]][[Category:Cargo Querying Templates]]</noinclude><includeonly> | <noinclude>{{doc}}[[Category:Templates]][[Category:Cargo Querying Templates]]</noinclude><includeonly> | ||
{| class="responsive-table sortable mw-collapsible" style="max-width: | {| class="responsive-table sortable mw-collapsible" style="max-width:{{{width|auto}}}%;" | ||
|+{{#switch: {{{1}}}|medicalfabricator='''<big>Medical Fabricator Items</big>'''|fabricator='''<big>Fabricator Items</big>'''|deconstructor='''<big>Deconstructor Items</big>'''}} | |+{{#switch: {{{1}}}|medicalfabricator='''<big>Medical Fabricator Items</big>'''|fabricator='''<big>Fabricator Items</big>'''|deconstructor='''<big>Deconstructor Items</big>'''}} | ||
! class="unsortable" {{!}} Crafting Materials | ! class="unsortable" {{!}} Crafting Materials | ||
! style="width:15%;" {{!}} Crafting Talent, Skill, Time | ! style="width:15%;" {{!}} Crafting Talent, Skill, Time | ||
! Item | ! Item | ||
! class="unsortable" style="width:12%;" | Deconstruction Time | ! class="unsortable" style="width:12%;" | Deconstruction Time | ||
! class="unsortable" | Deconstruction Yield{{#cargo_query: | ! class="unsortable" | Deconstruction Yield{{#cargo_query: | ||
tables = Items | tables = Items | ||
| fields = Items.name, Items.icon, Items.fabricatormaterials, Items.fabricatortime, Items.fabricatorskill, Items.fabricatorskill2, Items.fabricatorskilllevel, Items.fabricatorskilllevel2, Items.fabricatormaterialsalt, Items.fabricatortimealt, Items.fabricatorskilllevelalt, Items.deconstructormaterials, Items.deconstructortime, Items.talent, Items.fabricator, Items.deconstructor, Items.medicalfabricator, Items.fabricatedamount | | fields = Items._pageName, Items.name, Items.icon, Items.fabricatormaterials, Items.fabricatortime, Items.fabricatorskill, Items.fabricatorskill2, Items.fabricatorskilllevel, Items.fabricatorskilllevel2, Items.fabricatormaterialsalt, Items.fabricatorskillalt, Items.fabricatortimealt, Items.fabricatorskilllevelalt, Items.deconstructormaterials, Items.deconstructortime, Items.talent, Items.talentalt, Items.fabricator, Items.deconstructor, Items.medicalfabricator, Items.fabricatedamount, Items.fabricatedamountalt | ||
| where = {{#if:{{{everything|}}}|<!-- | | where = Items.name NOT LIKE "%Legacy%" AND {{#if:{{{everything|}}}|<!-- | ||
if everything is defined, then list all things | if everything is defined, then list all things | ||
Line 28: | Line 25: | ||
if {{{1}}} = deconstructor, list non-craftable decons recipes for PAGENAME/material | if {{{1}}} = deconstructor, list non-craftable decons recipes for PAGENAME/material | ||
-->|deconstructor={{ | -->|deconstructor=(Items.fabricatormaterials NOT LIKE "%{{{material|{{PAGENAME}}}}}%" OR Items.fabricatormaterials IS NULL) AND Items.deconstructormaterials LIKE "%{{{material|{{PAGENAME}}}}}%" {{#if:{{{exclude|}}}|AND Items.deconstructormaterials NOT LIKE "%{{{exclude}}}%" {{#if:{{{exclude2|}}}|AND Items.deconstructormaterials NOT LIKE "%{{{exclude2}}}%"|}}|}}<!-- | ||
-->|#default= }}<!-- | -->|#default= }}<!-- | ||
-->}} | -->}} | ||
| format = template | | format = template | ||
| template = Recipes/row<!-- ######### TODO: make a separate subtemplate for single material displays (to hide deconstructor columns) #########--> | | order by = Items.fabricatormaterials DESC, Items.deconstructormaterials | ||
| template = {{#ifeq:{{{1|}}}|deconstructor|Recipes/rowallowfab|Recipes/row}}<!-- ######### TODO: make a separate subtemplate for single material displays (to hide deconstructor columns) #########--> | |||
| delimiter = \n | | delimiter = \n | ||
| named args = yes | | named args = yes |
Latest revision as of 03:08, 3 May 2024
This template is used to display a list of items, and their crafting requirements / deconstruction yields.
Syntax
{{ Recipes | fabricator OR medicalfabricator OR deconstructor | width = <customwidth> (default 70) | everything = yes | material = <Custom Material> | exclude = <Term to exclude>}}
everything | If this is set to yes (or any non-null value), then all the items are displayed. This is meant to be used on the main fabricator/deconstructor pages for example. For individual pages, this parameter shouldn't be specified. |
fabricator | displays the list of items that can be fabricated in the standard fabricator with the current item.
|
medicalfabricator | displays the list of items that can be fabricated in the medical fabricator with the current item.
|
deconstructor | displays the list of items that can be deconstructed into the current item, but can't be crafted using the current item.
|
material | sets a custom material to be listed. If omitted, it will default to the page name. Note that all items which have this term in their name will be listed, so the "exclude" parameter may be necessary as well. |
exclude | excludes a string from the query. This is useful in case the current item's name is also contained in another item's name, such as "Diving Suit" is contained in "Combat Diving Suit". |
exclude2 | same as above, useful if one exclusion isn't enough. |
Examples
In the following examples, "material" is always specified because it would otherwise default to the page name. On an item's page, it can be omitted.
{{Recipes|fabricator|material=Diving Suit}}
gives:
Crafting Materials | Crafting Talent, Skill, Time | Item | Deconstruction Time | Deconstruction Yield |
---|---|---|---|---|
![]() ![]() ![]() |
Mechanical 60![]() |
![]() Abyss Diving Suit |
![]() |
![]() ![]() |
![]() ![]() ![]() ![]() (produces 1 items) |
Mechanical 60![]() |
![]() Combat Diving Suit |
![]() |
![]() ![]() ![]() (for 1 deconstructed item) |
{{Recipes|deconstructor|material=Plastic|width=40}}
gives:
{{Recipes|deconstructor|material=Titanium|width=40}}
gives:
Crafting Materials | Crafting Talent, Skill, Time | Item | Deconstruction Time | Deconstruction Yield |
---|---|---|---|---|
![]() ![]() (produces 1 items) |
Mechanical 20 Talent: ![]() ![]() |
![]() Slipsuit |
![]() |
![]() ![]() ![]() (for 1 deconstructed item) |
![]() ![]() ![]() (produces 1 items) |
Electrical 60 Talent: ![]() ![]() |
![]() PUCS |
![]() |
![]() ![]() ![]() ![]() (for 1 deconstructed item) |
![]() Boom Stick |
![]() |
![]() ![]() | ||
![]() Grenade Launcher |
![]() |
![]() ![]() | ||
![]() Ilmenite |
![]() |
![]() | ||
![]() Titanite |
![]() |
![]() ![]() | ||
![]() Broken Diving Suit |
![]() |
One of the following:![]() ![]() ![]() ![]() | ||
![]() Scrap |
![]() |
Two of the following:![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
{{Recipes|deconstructor|material=Titanium|exclude=Alloy|width=40}}
gives:
Crafting Materials | Crafting Talent, Skill, Time | Item | Deconstruction Time | Deconstruction Yield |
---|---|---|---|---|
![]() Ilmenite |
![]() |
![]() | ||
![]() Titanite |
![]() |
![]() ![]() |
{{Recipes|deconstructor|material=Sodium|allowfab=1|width=40}}
gives:
Crafting Materials | Crafting Talent, Skill, Time | Item | Deconstruction Time | Deconstruction Yield |
---|---|---|---|---|
![]() ![]() ![]() (produces 2 items) |
Medical 31![]() |
![]() Blood Pack |
![]() |
![]() ![]() (for 1 deconstructed item) |
![]() ![]() |
Weapons 60![]() |
![]() Frag Grenade |
![]() |
![]() ![]() |
![]() ![]() |
Weapons 30![]() |
![]() 40mm Grenade |
![]() |
![]() ![]() |
![]() ![]() ![]() ![]() |
Weapons 50![]() |
![]() Exploding Ammunition Box |
![]() |
![]() ![]() |
Alternate recipe:![]() ![]() ![]() ![]() |
Weapons 40![]() | |||
![]() 40mm Mini Nuke |
![]() |
![]() ![]() | ||
![]() Amblygonite |
![]() |
![]() ![]() ![]() | ||
![]() Sylvite |
![]() |
![]() ![]() | ||
![]() Salt Bulb |
![]() |
![]() ![]() | ||
![]() Cryolite |
![]() |
![]() |
The above documentation is transcluded from Template:Recipes/doc. (edit | history)