Template:Infobox tutorial/part: Difference between revisions

From stencil.wiki
(Created page with "<noinclude> This is a helper template for Template:Infobox tutorial, it takes information about a part and displays it as an item in the infobox. == TemplateData == <templatedata> { "params": { "1": { "label": "Part number", "description": "Unique OEM number from the part.", "type": "string", "required": true, "example": "612-10010" }, "2": { "label": "Part name", "description": "Plain text name for the part (from the parts manual, or col...")
 
No edit summary
Line 25: Line 25:
}
}
},
},
"description": "A helper template to display parts in the infobox for a place.",
"description": "A helper template to display parts in the infobox for a tutorial.",
"format": "inline"
"format": "inline"
}
}
</templatedata>
</templatedata>
</noinclude><includeonly><div>{{#if:{{{3|}}}|{{{3}}} × |}}{{{2}}} <code>{{{1}}}</code></div></includeonly>
</noinclude><includeonly><div>{{#if:{{{3|}}}|{{{3}}} × |}}{{{2}}} <code>{{{1}}}</code></div></includeonly>

Revision as of 22:09, 29 January 2025

This is a helper template for Template:Infobox tutorial, it takes information about a part and displays it as an item in the infobox.

TemplateData

A helper template to display parts in the infobox for a tutorial.

Template parameters[Edit template data]

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Part number1

Unique OEM number from the part.

Example
612-10010
Stringrequired
Part name2

Plain text name for the part (from the parts manual, or colloquial).

Stringrequired
Part quantity3

How many of this part are required.

Stringoptional