Difference between revisions of "Template:USBID"

From ThinkWiki
Jump to: navigation, search
(Help text for usage of this template, with example)
(Examples: Output marked as such...)
Line 16: Line 16:
 
   <nowiki>{{USBID|</nowiki>'''8086'''<nowiki>|</nowiki>'''0044'''<nowiki>}}</nowiki>
 
   <nowiki>{{USBID|</nowiki>'''8086'''<nowiki>|</nowiki>'''0044'''<nowiki>}}</nowiki>
  
 +
Output on the displayed ThinkWiki page:
 
  [https://usb-ids.gowdy.us/read/UD/8086/0044 8086:0044]
 
  [https://usb-ids.gowdy.us/read/UD/8086/0044 8086:0044]
  

Revision as of 17:43, 2 February 2022

This Template links to the USB ID Repository. Its usb.ids file is used by lsusb to display the vendor and device names for the corresponding numeric IDs of the USB device.

Usage

Both the four-digit vendor ID and the four-digit device or item ID must be specified.

{{USBID|vendor ID|device/item ID}}

The parameter number 1= and 2= are optional:

{{USBID|1=vendor ID|2=device/item ID}}

Examples

Use lsusb to find the USB device in question:

$ lsusb
Bus 001 Device 001: ID 8086:0044 Intel Corp. CPU DRAM Controller

For this USB device, vendor 8086 being Intel Corp. and device 0044 being the processors' DRAM Controller, the following wiki source text will link to the corresponding USB ID Repository webpage:

 {{USBID|8086|0044}}

Output on the displayed ThinkWiki page:

8086:0044


{{{1}}}:{{{2}}}