Template:Infobox tutorial: Difference between revisions

From stencil.wiki
No edit summary
No edit summary
Line 4: Line 4:
=== Subtemplates ===
=== Subtemplates ===
Multiple subtemplates support this display:
Multiple subtemplates support this display:
* [[Template:Infobox tutorial/tool]] lists the each tool (both required and optional) needed for this tutorial.
* [[Template:Infobox tutorial/part]] displays a part with number and name.
* [[Template:Infobox tutorial/part]] displays a part with number and name.
* [[Template:Infobox tutorial/error]] an associated error code with the error message as tooltip text.
* [[Template:Infobox tutorial/error]] an associated error code with the error message as tooltip text.
Line 16: Line 15:
-->{{#if:{{{time|}}}|<tr><th scope="row">Duration</th><td>{{{time}}}</td></tr>|}}<!--
-->{{#if:{{{time|}}}|<tr><th scope="row">Duration</th><td>{{{time}}}</td></tr>|}}<!--
-->{{#if:{{{series|}}}|<tr><th scope="row">For series</th><td>{{{series}}}</td></tr>|}}<!--
-->{{#if:{{{series|}}}|<tr><th scope="row">For series</th><td>{{{series}}}</td></tr>|}}<!--
-->{{#if:{{{tools|}}}|<tr><th scope="row">Tools</th><td>{{#arraymap:{{{tools}}}|@@@@|<div>@@@@</div>|}}</td></tr>|}}<!--
-->{{#if:{{{tools|}}}|<tr><th scope="row">Tools</th><td>{{#arraymap:{{{tools}}}|,|@@@@|<div>@@@@</div>|}}</td></tr>|}}<!--
-->{{#if:{{{parts|}}}|<tr><th scope="row">Parts</th><td>{{{parts}}}</td></tr>|}}<!--
-->{{#if:{{{parts|}}}|<tr><th scope="row">Parts</th><td>{{{parts}}}</td></tr>|}}<!--
-->{{#if:{{{errors|}}}|<tr><th scope="row">Error codes</th><td>{{{errors}}}</td></tr>|}}
-->{{#if:{{{errors|}}}|<tr><th scope="row">Error codes</th><td>{{{errors}}}</td></tr>|}}
|}<!--
|}<!--
--></includeonly>
--></includeonly>

Revision as of 19:33, 31 January 2025

Warning: Infobox template
This is an infobox template for the Tutorial class—it is used as a display template for Template:Tutorial, with values from the associated Form:Tutorial, and should never be transcluded outside of that context.

Pages which use this infobox are listed at Category:Tutorials.

This infobox displays the key information about a Tutorial—a how-to article.

Subtemplates

Multiple subtemplates support this display: