Template:Parts: Difference between revisions

From TekWiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
(3 intermediate revisions by the same user not shown)
Line 17: Line 17:
<small>{{#cargo_query:
<small>{{#cargo_query:
tables=Components
tables=Components
|fields=_pageName=Page,Part Number(s)=Part_nos,Class=Class,Description=Description,Used_in__full=Used in
|fields=_pageName=Part,Part_nos=Part Number(s),Class=Class,Description=Description,Used_in__full=Used in
|where=Used_in HOLDS '{{{1}}}'
|where=Used_in HOLDS '{{{1}}}'
|limit=100
|limit=100
|offset=0
|offset=0
|default=:''(no results)''
}}</small> __NOEDITSECTION__
}}</small> __NOEDITSECTION__
</includeonly>
</includeonly>

Latest revision as of 14:31, 21 June 2024

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.