Template:RelatedTalents: Difference between revisions

From Official Barotrauma Wiki
Jump to: navigation, search
No edit summary
No edit summary
Line 6: Line 6:
{{#cargo_query: tables = Talents
{{#cargo_query: tables = Talents
  | fields = Talents.icon, Talents.name, Talents.job, Talents.tree, Talents.tier, Talents.description, Talents.identifier
  | fields = Talents.icon, Talents.name, Talents.job, Talents.tree, Talents.tier, Talents.description, Talents.identifier
  | where = Talents.name = '{{{1}}}'
  | where = Talents.name = '{{{1}}}' OR Talents.identifier = '{{{1}}}' OR Talents.name = '{{{2}}}' OR Talents.identifier = '{{{2}}}' OR Talents.name = '{{{3}}}' OR Talents.identifier = '{{{3}}}' OR Talents.name = '{{{4}}}' OR Talents.identifier = '{{{4}}}' OR Talents.name = '{{{5}}}' OR Talents.identifier = '{{{5}}}'
  | 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
| 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>
| order by = Talents.job ASC, Talents.tree ASC, Talents.tier ASC, Talents.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>-->

Revision as of 16:44, 9 June 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
Error: No field named "tier" found for the database table "Talents".

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

Talent Tree Description
Error: No field named "tier" found for the database table "Talents".