Template:Infobox tutorial: Difference between revisions

From stencil.wiki
(Created page with "<noinclude> {{#template_params:Difficulty|Time needed (label=Estimated time needed)|Category (label=Tutorial type)|Tools Needed|Parts Needed|Related Machine Series|Related Error Messages}} </noinclude><includeonly>{| style="width: 30em; font-size: 90%; border: 1px solid #aaaaaa; background-color: #f9f9f9; color: black; margin-bottom: 0.5em; margin-left: 1em; padding: 0.2em; float: right; clear: right; text-align:left;" ! style="text-align: center; background-color:#ccccf...")
 
No edit summary
 
(20 intermediate revisions by 2 users 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.
</noinclude><includeonly>{| style="width: 30em; font-size: 90%; border: 1px solid #aaaaaa; background-color: #f9f9f9; color: black; margin-bottom: 0.5em; margin-left: 1em; padding: 0.2em; float: right; clear: right; text-align:left;"
 
! style="text-align: center; background-color:#ccccff;" colspan="2" |<span style="font-size: larger;">{{PAGENAME}}</span>
=== Subtemplates ===
Two subtemplates support this display:
* [[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.
 
</noinclude><!--
--><includeonly>{| align="right" class="infobox" style="max-width:350px"
|-
|-
! Difficulty
! colspan="2" class="infobox-title" | {{{title}}}
| {{{Difficulty|}}}
{{#if:{{{type|}}}|<tr><th scope="row">Type</th><td>{{{type}}}</td></tr>|}}<!--
|-
-->{{#if:{{{difficulty|}}}|<tr><th scope="row">Difficulty</th><td>{{{difficulty}}}</td></tr>|}}<!--
! Estimated time needed
-->{{#if:{{{time|}}}|<tr><th scope="row">Duration</th><td>{{{time}}}</td></tr>|}}<!--
| {{{Time needed|}}}
-->{{#if:{{{series|}}}|<tr><th scope="row">For series</th><td>{{#arraymap:{{{series}}}|,|@@@@|[[@@@@|{{#show:@@@@|?Is series}}]]|,&nbsp;}}</td></tr>|}}<!--
|-
-->{{#if:{{{tools|}}}|<tr><th scope="row">Tools</th><td>{{#arraymap:{{{tools}}}|,|@@@@|<div>@@@@</div>|}}</td></tr>|}}<!--
! Tutorial type
-->{{#if:{{{parts|}}}|<tr><th scope="row">Parts</th><td>{{{parts}}}</td></tr>|}}<!--
| {{{Category|}}}
-->{{#if:{{{errors|}}}|<tr><th scope="row">Error codes</th><td>{{{errors}}}</td></tr>|}}
|-
|}<!--
! Tools Needed
--></includeonly>
| {{{Tools Needed|}}}
|-
! Parts Needed
| {{{Parts Needed|}}}
|-
! Related Machine Series
| {{{Related Machine Series|}}}
|-
! Related Error Messages
| {{{Related Error Messages|}}}
|}
 
[[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: