Template:SkillRequirementTable: Difference between revisions
From Official Barotrauma Wiki
No edit summary |
No edit summary |
||
Line 4: | Line 4: | ||
!Skill Requirement | !Skill Requirement | ||
!Handicap | !Handicap | ||
{{#if:{{{hideItems|}}}|| | |||
{{#cargo_query: | {{#cargo_query: | ||
tables = Items | tables = Items | ||
Line 12: | Line 13: | ||
| template = SkillRequirementTable/weapons | | template = SkillRequirementTable/weapons | ||
| named args = yes | | named args = yes | ||
}} | }}}} | ||
{{#if:{{{hideInstallations|}}}|| | |||
{{#cargo_query: | {{#cargo_query: | ||
tables = Installations | tables = Installations | ||
| fields = name, image, weapons, repairtype, repairskill | | fields = name, image, weapons, handicap, repairtype, repairskill | ||
| where = {{#switch: {{{Tabletype}}}|weapons=weapons IS NOT NULL|engineering=repairtype = "Electrical"|mechanical=repairtype = "Mechanical"}} | | where = {{#switch: {{{Tabletype}}}|weapons=weapons IS NOT NULL|engineering=repairtype = "Electrical"|mechanical=repairtype = "Mechanical"|}} | ||
| order by = repairskill | | order by = repairskill | ||
| format = template | | format = template | ||
| template = SkillRequirementTable/weapons | | template = SkillRequirementTable/weapons | ||
| named args = yes | | named args = yes | ||
}} | }}}} | ||
|}</includeonly> | |}</includeonly> |
Revision as of 12:48, 11 March 2023
Table displaying Skill Requirements of Items and Installations for the Skills page.
Sub Templates
Instructions
Field | Note | Example | Expected | Default |
---|---|---|---|---|
tabletype | Type of the table | weapons | helm / weapons / mechanical / electrical / medical | Outerwear |
width | Width of the table | 50% / 1000px | % / px | auto |
collapsed | Table starts collapsed if defined | yes | ||
hideitems | Doesn't display items if defined | yes | ||
hideinstallations | Doesn't display installations if defined | yes |
Template in use
Helm
{{SkillRequirementTable|tabletype=helm|collapsed=yes}}
{{SkillRequirementTable|tabletype=helm|fabricator=yes|collapsed=yes}}
Weapons
{{SkillRequirementTable|tabletype=weapons|collapsed=yes}}
{{SkillRequirementTable|tabletype=weapons|fabricator=yes|collapsed=yes}}
Mechanical
{{SkillRequirementTable|tabletype=mechanical|collapsed=yes}}
{{SkillRequirementTable|tabletype=mechanical|fabricator=yes|collapsed=yes}}
Electrical
{{SkillRequirementTable|tabletype=electrical|collapsed=yes}}
{{SkillRequirementTable|tabletype=electrical|fabricator=yes|collapsed=yes}}
Medical
{{SkillRequirementTable|tabletype=medical|collapsed=yes}}
{{SkillRequirementTable|tabletype=medical|fabricator=yes|collapsed=yes}}
The above documentation is transcluded from Template:SkillRequirementTable/doc. (edit | history)