Template:Talents: Difference between revisions

From Official Barotrauma Wiki
Jump to: navigation, search
mNo edit summary
mNo edit summary
Line 1: Line 1:
<noinclude>{{doc}}[[Category:Templates]]</noinclude>
<noinclude>{{doc}}[[Category:Templates]]</noinclude>
<includeonly>{| class="wikitable" style="text-align:center; width:100%"
<includeonly>{| style="text-align:center; width:100%"
|-
|-
! colspan="2" style="width:33%" | {{{2}}}
! colspan="2" style="width:33%" | {{{2}}}
Line 6: Line 6:
! colspan="2" style="width:33%" | {{{4}}}
! colspan="2" style="width:33%" | {{{4}}}
|- <!-- Tier 1 -->
|- <!-- Tier 1 -->
{{#cargo_query: tables = Talents
{{#cargo_query:_table=Talents
  | fields = Talents.icon, Talents.name, Talents.identifier, Talents.description, Talents.sort
  | fields = icon, name, identifier, description, sort
  | where = Talents.job LIKE "%{{{1}}}%" AND Talents.tier {{=}} "1"
  | where = job {{=}} "{{{1}}}" AND tree !{{=}} "General" AND row {{=}} "1"
  | format = template
  | format = template
  | template = Talents/entry
  | template = Talents/entry
  | delimiter = \n
  | delimiter = \n
  | order by = Talents.tree ASC, Talents.sort ASC
  | order by = tree ASC, name ASC
  | named args = yes
  | named args = yes
| default = {{!}} colspan="6" style="color: #FF0000" {{!}} <big>'''ERROR: Query found no rows containing job: "{{{1}}}" & tier: "1" in table [[Special:CargoTables/Talents|Talents]].'''</big>
}}
}}
|- <!-- Tier 2 -->
|- <!-- Tier 2 -->
{{#cargo_query: tables = Talents
{{#cargo_query:_table=Talents
  | fields = Talents.icon, Talents.name, Talents.identifier, Talents.description, Talents.sort
  | fields = icon, name, identifier, description, sort
  | where = Talents.job LIKE "%{{{1}}}%" AND Talents.tier {{=}} "2"
  | where = job {{=}} "{{{1}}}" AND tree !{{=}} "General" AND row {{=}} "2"
  | format = template
  | format = template
  | template = Talents/entry
  | template = Talents/entry
  | delimiter = \n
  | delimiter = \n
  | order by = Talents.tree ASC, Talents.sort ASC
  | order by = tree ASC, name ASC
  | named args = yes
  | named args = yes
| default = {{!}} colspan="6" style="color: #FF0000" {{!}} <big>'''ERROR: Query found no rows containing job: "{{{1}}}" & tier: "2" in table [[Special:CargoTables/Talents|Talents]].'''</big>
}}
}}
|- <!-- Tier 3 -->
|- <!-- Tier 3 -->
{{#cargo_query: tables = Talents
{{#cargo_query:_table=Talents
  | fields = Talents.icon, Talents.name, Talents.identifier, Talents.description, Talents.sort
  | fields = icon, name, identifier, description, sort
  | where = Talents.job LIKE "%{{{1}}}%" AND Talents.tier {{=}} "3"
  | where = job {{=}} "{{{1}}}" AND tree !{{=}} "General" AND row {{=}} "3"
  | format = template
  | format = template
  | template = Talents/entry
  | template = Talents/entry
  | delimiter = \n
  | delimiter = \n
  | order by = Talents.tree ASC, Talents.sort ASC
  | order by = tree ASC, name ASC
  | named args = yes
  | named args = yes
| default = {{!}} colspan="6" style="color: #FF0000" {{!}} <big>'''ERROR: Query found no rows containing job: "{{{1}}}" & tier: "3" in table [[Special:CargoTables/Talents|Talents]].'''</big>
}}
}}
|- <!-- Tier 4 -->
|- <!-- Tier 4 -->
{{#cargo_query: tables = Talents
{{#cargo_query:_table=Talents
  | fields = Talents.icon, Talents.name, Talents.identifier, Talents.description, Talents.sort
  | fields = icon, name, identifier, description, sort
  | where = Talents.job LIKE "%{{{1}}}%" AND Talents.tier {{=}} "4"
  | where = job {{=}} "{{{1}}}" AND tree !{{=}} "General" AND row {{=}} "4"
  | format = template
  | format = template
  | template = Talents/entry
  | template = Talents/entry
  | delimiter = \n
  | delimiter = \n
  | order by = Talents.tree ASC, Talents.sort ASC
  | order by = tree ASC, name ASC
  | named args = yes
  | named args = yes
| default = {{!}} colspan="6" style="color: #FF0000" {{!}} <big>'''ERROR: Query found no rows containing job: "{{{1}}}" & tier: "4" in table [[Special:CargoTables/Talents|Talents]].'''</big>
}}
}}
|}</includeonly>
|}</includeonly>

Revision as of 19:31, 9 December 2022

Documentation

Captain Talents:

At least one table must be specified.
At least one table must be specified.
At least one table must be specified.
At least one table must be specified.
Gunslinger Skipper Politician

Security Officer Talents:

At least one table must be specified.
At least one table must be specified.
At least one table must be specified.
At least one table must be specified.
Frogman Enforcer Gunner

Medical Doctor Talents:

At least one table must be specified.
At least one table must be specified.
At least one table must be specified.
At least one table must be specified.
Xenologist Medic Scientist

Engineer Talents:

At least one table must be specified.
At least one table must be specified.
At least one table must be specified.
At least one table must be specified.
Weapons Engineer Electrician Physicist

Mechanic Talents:

At least one table must be specified.
At least one table must be specified.
At least one table must be specified.
At least one table must be specified.
Scrapper Machinist Brawler

Assistant Talents:

At least one table must be specified.
At least one table must be specified.
At least one table must be specified.
At least one table must be specified.
Grayshirt Apprentice Clown