Template:RelatedTalents: Difference between revisions
From Official Barotrauma Wiki
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}}}' | ||
| format = template | | format = template | ||
| template = RelatedTalents/row | | template = RelatedTalents/row | ||
| delimiter = \n | | delimiter = \n | ||
| 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:14, 9 June 2022
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".
|
---|
The above documentation is transcluded from Template:RelatedTalents/doc. (edit | history)