Template:Machine chip: Difference between revisions
Robertbaxter (talk | contribs) No edit summary |
Robertbaxter (talk | contribs) No edit summary |
||
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<includeonly>{{# | <includeonly>{{#if:{{{2|}}}|{{Machine chip/verbose|{{{1|}}}|{{{2|}}}|{{{3|}}}|{{{4|}}}}}|{{Machine chip/simple|{{{1|}}}}}}}</includeonly><!-- | ||
--><noinclude> | |||
A template to display machine links as [https://m3.material.io/components/chips/overview chips]. It currently supports logos for [[Riso]] [[EZ]], [[FR]], [[GR]], [[MZ]], [[RZ]], and [[SF]] machines. Machines in any other series will be displayed as a simple text link. | A template to display machine links as [https://m3.material.io/components/chips/overview chips]. It currently supports logos for [[Riso]] [[EZ]], [[FR]], [[GR]], [[MZ]], [[RZ]], and [[SF]] machines. Machines in any other series will be displayed as a simple text link. | ||
==Usage== | == Usage == | ||
To use this template split each of the elements: | To use this template split each of the elements: | ||
<pre> | <pre> | ||
Line 11: | Line 12: | ||
<pre>{{Machine chip|Riso|SF|5450|EII}}</pre> | <pre>{{Machine chip|Riso|SF|5450|EII}}</pre> | ||
<div>{{Machine chip|Riso|SF|5450|EII}}</div> | <div>{{Machine chip|Riso|SF|5450|EII}}</div> | ||
Machine chips can be included inline within a paragraph using <code><nowiki>{{Machine chip|Riso|MZ|790}}</nowiki></code> to produce a {{Machine chip|Riso|MZ|790}} chip. When used this way, they appear smaller to maintain the article's visual flow. | Machine chips can be included inline within a paragraph using <code><nowiki>{{Machine chip|Riso|MZ|790}}</nowiki></code> to produce a {{Machine chip|Riso|MZ|790}} chip. When used this way, they appear smaller to maintain the article's visual flow. | ||
=== Shortcut === | |||
===Shortcut=== | The template can also be called with only one element, the "display name" (e.g. "GR 3750" or "MZ 790 U" etc.) but ''only if that machine has been defined on the relevant [[:Category:Duplicator series|Duplicator series]] page.'' If a single parameter is passed that is not recognized as a machine in the database, it will be rendered as a redlink. | ||
The template can also be called with only one element, the "display name" (e.g. "GR 3750" or "MZ 790 U" etc.) but ''only if that machine has been defined on the relevant [[:Category:Duplicator series|Duplicator series]] page.'' | |||
<pre> | <pre> | ||
{{Machine chip|GR3750}} | {{Machine chip|GR3750}} | ||
Line 24: | Line 22: | ||
<div>{{Machine chip|GR3750}}</div> | <div>{{Machine chip|GR3750}}</div> | ||
<pre> | |||
{{Machine chip|Duplo DC-10 Mini}} | |||
</pre> | |||
<div>{{Machine chip|Duplo DC-10 Mini}}</div> | |||
A series can also be linked as a machine chip with the text for the series page or series code. | |||
<pre> | |||
{{Machine chip|GR series}} {{Machine chip|FR}} | |||
</pre> | |||
<div>{{Machine chip|GR series}} {{Machine chip|FR}}</div> | |||
=== Examples === | |||
<pre> | <pre> | ||
{{Machine chip|Riso|EZ|570|E}} | {{Machine chip|Riso|EZ|570|E}} |
Latest revision as of 16:53, 3 February 2025
A template to display machine links as chips. It currently supports logos for Riso EZ, FR, GR, MZ, RZ, and SF machines. Machines in any other series will be displayed as a simple text link.
Usage
To use this template split each of the elements:
{{Machine chip|Brand|Series|Model Number|Extra}}
For the most part, the Model Number and Extra fields are optional. However, SF-EII models require "EII" in the Extra field slot in order to show the correct logo:
{{Machine chip|Riso|SF|5450|EII}}
Machine chips can be included inline within a paragraph using {{Machine chip|Riso|MZ|790}}
to produce a MZ790 chip. When used this way, they appear smaller to maintain the article's visual flow.
Shortcut
The template can also be called with only one element, the "display name" (e.g. "GR 3750" or "MZ 790 U" etc.) but only if that machine has been defined on the relevant Duplicator series page. If a single parameter is passed that is not recognized as a machine in the database, it will be rendered as a redlink.
{{Machine chip|GR3750}}
{{Machine chip|Duplo DC-10 Mini}}
A series can also be linked as a machine chip with the text for the series page or series code.
{{Machine chip|GR series}} {{Machine chip|FR}}
Examples
{{Machine chip|Riso|EZ|570|E}}
{{Machine chip|Riso|FR|3950}}
{{Machine chip|Riso|GR|3770}}
{{Machine chip|Riso|MZ|790}}
{{Machine chip|Riso|RZ|990}}
{{Machine chip|Riso|SF|5450}}
{{Machine chip|Riso|A2}}