Template:RelatedTalents: Difference between revisions

From Official Barotrauma Wiki
Jump to: navigation, search
No edit summary
mNo edit summary
 
(7 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<noinclude>{{doc}}</noinclude>
<noinclude>{{doc}}[[Category:Templates]][[Category:Talents]]</noinclude>
<includeonly>{| style="text-align:center"
<includeonly>{| style="text-align:center"
! [[Talents|Talent]]
! [[Talents|Talent]]
! Tree
! Tree
! Description
! Description
{{#cargo_query: tables = Talents
{{#cargo_query:tables=Talents
  | fields = Talents.icon, Talents.name, Talents.job, Talents.tree, Talents.tier, Talents.description, Talents.identifier
  | fields = icon, name, identifier, job, tree, row, description
  | where = {{#if:{{{1|}}}|Talents.name = "{{{1}}}" OR Talents.name = "{{{2}}}" OR Talents.name = "{{{3}}}" OR Talents.name = "{{{4}}}" OR Talents.name = "{{{5}}}"|}}
  | where = name {{=}} "{{{1}}}" OR name {{=}} "{{{2}}}" OR name {{=}} "{{{3}}}" OR name {{=}} "{{{4}}}" OR name {{=}} "{{{5}}}" OR name {{=}} "{{{6}}}" OR name {{=}} "{{{7}}}" OR name {{=}} "{{{8}}}" OR name {{=}} "{{{9}}}" OR name {{=}} "{{{10}}}" OR name {{=}} "{{{11}}}" OR name {{=}} "{{{12}}}" OR name {{=}} "{{{13}}}" OR name {{=}} "{{{14}}}" OR name {{=}} "{{{15}}}" OR name {{=}} "{{{16}}}" OR name {{=}} "{{{17}}}" OR name {{=}} "{{{18}}}"
  | format = template
  | format = template
  | template = RelatedTalents/row
  | template = RelatedTalents/row
  | delimiter = \n
  | delimiter = \n
  | order by = Talents.job ASC, Talents.tree ASC, Talents.tier ASC, Talents.name ASC
  | order by = job ASC, tree ASC, row ASC, name ASC
| default = {{!}} colspan="3" style="color: #FF0000" {{!}} <big>'''ERROR: Query found no rows containing name: "{{{1}}}" OR identifier: "{{{1}}}" in table [[Special:CargoTables/Talents|Talents]].'''</big>
  | named args = yes
  | named args = yes
}}
}}
|}</includeonly><!---->
|}</includeonly><!---->

Latest revision as of 04:41, 17 December 2022

Documentation

This template is used to display a list of related talents on any page, such as items, installations, afflictions, etc.


{{RelatedTalents|Genetic Genius}} produces:

Talent Tree Description

Genetic Genius
ID: geneticgenious
Medical Doctor
Xenologist
Spec. 4
Combining different types of genetic materials is 99% less likely to taint the materials. Unlock recipe: Advanced Gene Splicer.

{{RelatedTalents|Gunsmith|Don't Push It|Gene Splicer}} produces:

Talent Tree Description

Gunsmith
ID: gunsmith
Captain
General
Tier 2
Unlock recipe: Revolver, Revolver Round.

Gene Splicer
ID: genesplicer
Medical Doctor
Xenologist
Spec. 2
Refining genetic materials adds an additional 10% to their potency.

Don't Push It
ID: dontpushit
Security Officer
General
Tier 2
Unlock recipe: Bandolier, Explosive Slug.