Template:Infobox tutorial: Difference between revisions

From stencil.wiki
No edit summary
No edit summary
 
(15 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>
<noinclude>{{Infobox template|class=Tutorial|category=Tutorials}}
{{#template_params:Difficulty|Time needed (label=Estimated time needed)|Category (label=Tutorial type)|Tools Needed|Parts Needed|Related Machine Series|Related Error Messages}}
This infobox displays the key information about a ''Tutorial''—a how-to article.


{{Infobox tutorial
=== Subtemplates ===
|Difficulty=Moderate
Two subtemplates support this display:
|Time needed=1.5 Hours
* [[Template:Infobox tutorial/part]] displays a part with number and name.
|Category=Maintenance
* [[Template:Infobox tutorial/error]] an associated error code with the error message as tooltip text.
|Tools Needed=Screwdriver, Pliers, White Lithium Grease
 
|Parts Needed=Gear TPH Drive M1*20*6 612-10010
</noinclude><!--
|Related Error Messages=T19-XXX 
!!System Error!!
--><includeonly>{| align="right" class="infobox" style="max-width:350px"
Press Reset Key
If Recovery has Failed, Call Service
}}
</noinclude><includeonly>{| align="right" class="infobox"
|-
|-
! colspan="2" class="infobox-title" | {{PAGENAME}}
! colspan="2" class="infobox-title" | {{{title}}}
{{#if:{{{Difficulty|}}}|<tr><th scope="row">Difficulty</th><td>{{{Difficulty}}}</td></tr>|}}<!--
{{#if:{{{type|}}}|<tr><th scope="row">Type</th><td>{{{type}}}</td></tr>|}}<!--
-->{{#if:{{{Time needed|}}}|<tr><th scope="row">Estimated time needed</th><td>{{{Time needed}}}</td></tr>|}}<!--
-->{{#if:{{{difficulty|}}}|<tr><th scope="row">Difficulty</th><td>{{{difficulty}}}</td></tr>|}}<!--
-->{{#if:{{{Category|}}}|<tr><th scope="row">Tutorial type</th><td>{{{Category}}}</td></tr>|}}<!--
-->{{#if:{{{time|}}}|<tr><th scope="row">Duration</th><td>{{{time}}}</td></tr>|}}<!--
-->{{#if:{{{Tools Needed|}}}|<tr><th scope="row">Tools needed</th><td>{{{Tools Needed}}}</td></tr>|}}<!--
-->{{#if:{{{series|}}}|<tr><th scope="row">For series</th><td>{{#arraymap:{{{series}}}|,|@@@@|[[@@@@|{{#show:@@@@|?Is series}}]]|,&nbsp;}}</td></tr>|}}<!--
-->{{#if:{{{Parts Needed|}}}|<tr><th scope="row">Parts needed</th><td>{{{Parts Needed}}}</td></tr>|}}<!--
-->{{#if:{{{tools|}}}|<tr><th scope="row">Tools</th><td>{{#arraymap:{{{tools}}}|,|@@@@|<div>@@@@</div>|}}</td></tr>|}}<!--
-->{{#if:{{{Related Machine Series|}}}|<tr><th scope="row">Related machine series</th><td>{{{Related Machine Series}}}</td></tr>|}}<!--
-->{{#if:{{{parts|}}}|<tr><th scope="row">Parts</th><td>{{{parts}}}</td></tr>|}}<!--
-->{{#if:{{{Related Error Messages|}}}|<tr><th scope="row">Related Error Messages</th><td>{{{Related Error Messages}}}</td></tr>|}}
-->{{#if:{{{errors|}}}|<tr><th scope="row">Error codes</th><td>{{{errors}}}</td></tr>|}}
|}
|}<!--
 
--></includeonly>
[[Category:Tutorial]]
</includeonly>

Latest revision as of 14:37, 4 February 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

Two subtemplates support this display: