Template:Parts: Difference between revisions

From TekWiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 17: Line 17:
<small>{{#cargo_query:
<small>{{#cargo_query:
tables=Components
tables=Components
|fields=_pageName=Page,Class=Class,Description=Description,Used_in__full=Used in
|fields=_pageName=Page,Part_nos=Part_nos,Class=Class,Description=Description,Used_in__full=Used in
|where=Used_in HOLDS '{{{1}}}'
|where=Used_in HOLDS '{{{1}}}'
|limit=100
|limit=100

Revision as of 00:54, 14 September 2023

This is the Parts template.

It inserts a table that lists components used in a specific instrument. (To list only custom ICs or CRTs, see the Custom ICs and CRTs templates, respectively.)

Call it as

 {{Parts|575}}

leaving no spaces around the instrument name.

Note: The table data comes from the Components CargoTable. To change the table data, please edit the respective component page (that page needs to use one of the linked templates listed at special:CargoTables). To force the table to be updated, it may be necessary to purge the page cache by appending ?action=purge to the URL of the page that includes this template.