Template:Tutorial/part: Difference between revisions
| Robertbaxter (talk | contribs)  (Created page with "<noinclude>{{Class subtemplate}} This is a pass-through function for custom links in Template:Tutorial, it is the output for the parts in Form:Tutorial.  It calls Template:Infobox tutorial/part to generate the infobox line to display the part.  == TemplateData == <templatedata> { 	"params": { 		"part_number": { 			"label": "Part number", 			"description": "Unique OEM number from the part.", 			"type": "string", 			"required": true, 			"example": "612-10010"...") | Robertbaxter (talk | contribs)  No edit summary | ||
| Line 30: | Line 30: | ||
| } | } | ||
| </templatedata> | </templatedata> | ||
| </noinclude><includeonly>{{Infobox tutorial/part|{{{ | </noinclude><includeonly>{{Infobox tutorial/part|{{{part_number|}}}|{{{part_name|}}}|{{{part_qty|}}}}}</includeonly> | ||
Latest revision as of 21:58, 29 January 2025
This is a pass-through function for custom links in Template:Tutorial, it is the output for the parts in Form:Tutorial.
It calls Template:Infobox tutorial/part to generate the infobox line to display the part.
TemplateData
Support function for the "Tutorial" class to pass through part info.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Part number | part_number | Unique OEM number from the part. 
 | String | required | 
| Part name | part_name | Plain text name for the part (from the parts manual, or colloquial). | String | required | 
| Part quantity | part_qty | How many of this part are required. | String | optional |