Template:Infobox tutorial: Difference between revisions

From stencil.wiki
No edit summary
No edit summary
 
(22 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>{| align="right" class="infobox"
 
|-
=== Subtemplates ===
|! colspan="2" class="infobox-title" | {{PAGENAME}}
Two subtemplates support this display:
|-
* [[Template:Infobox tutorial/part]] displays a part with number and name.
! Difficulty
* [[Template:Infobox tutorial/error]] an associated error code with the error message as tooltip text.
| {{{Difficulty|}}}
 
|-
</noinclude><!--
! Estimated time needed
--><includeonly>{| align="right" class="infobox" style="max-width:350px"
| {{{Time needed|}}}
|-
! Tutorial type
| {{{Category|}}}
|-
|-
! Tools Needed
! colspan="2" class="infobox-title" | {{{title}}}
| {{{Tools Needed|}}}
{{#if:{{{type|}}}|<tr><th scope="row">Type</th><td>{{{type}}}</td></tr>|}}<!--
|-
-->{{#if:{{{difficulty|}}}|<tr><th scope="row">Difficulty</th><td>{{{difficulty}}}</td></tr>|}}<!--
! Parts Needed
-->{{#if:{{{time|}}}|<tr><th scope="row">Duration</th><td>{{{time}}}</td></tr>|}}<!--
| {{{Parts Needed|}}}
-->{{#if:{{{series_type|}}}|<tr><th scope="row">For series</th><td>{{#if:{{{series_label|}}}|{{{series_label}}}|{{#switch: {{{series_type|}}}
|-
| All = All series
! Related Machine Series
| GR/FR = {{machine chip|GR}}{{machine chip|FR}}
| {{{Related Machine Series|}}}
| RP/RN = {{machine chip|RP}}{{machine chip|RN}}
|-
| Z+ = {{Z+}}
! Related Error Messages
| Two-drum = {{machine chip|MZ}}{{machine chip|MV}}{{machine chip|MD}}{{machine chip|ME}}{{machine chip|MF}}{{machine chip|MH}}
| {{{Related Error Messages|}}}
| Other = {{#arraymap:{{{series|}}}|,|@@@@|{{machine chip|{{#show:@@@@|?Is series}}}}|}}
|}
}}}}</td></tr>|}}<!--
 
-->{{#if:{{{tools|}}}|<tr><th scope="row">Tools</th><td>{{#arraymap:{{{tools}}}|,|@@@@|<div>@@@@</div>|}}</td></tr>|}}<!--
[[Category:Tutorial]]
-->{{#if:{{{parts|}}}|<tr><th scope="row">Parts</th><td>{{{parts}}}</td></tr>|}}<!--
</includeonly>
-->{{#if:{{{errors|}}}|<tr><th scope="row">Error codes</th><td>{{{errors}}}</td></tr>|}}
|}<!--
--></includeonly>

Latest revision as of 15:26, 30 November 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: