Template:Duplicator series: Difference between revisions

From stencil.wiki
No edit summary
Tag: Manual revert
No edit summary
 
(13 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>
<noinclude>{{Class template|class=Duplicator series|category=Duplicator series}}
{{#template_params:brand (label=Brand;property=Has brand)|series (label=Series label;property=Is series)|drum_number (label=Number of Drums)|launch_year (label=Launch year;property=Was launched)|discontinued_year (label=Discontinued Year;property=Was discontinued)|status (label=Status;property=Has status)|nickname (label=Nickname;property=Has nickname)}}
 
</noinclude><includeonly>{{Infobox series
== TemplateData ==
<templatedata>
{
"params": {
"series": {
"label": "Series code",
"description": "The identifying series code for machines in this line (i.e. GR, MZ, SF, etc. for Riso).",
"example": "FR",
"type": "string",
"required": true
},
"brand": {
"label": "Brand",
"description": "The manufacturer of this series.",
"type": "string",
"suggestedvalues": [
"Riso",
"Ricoh",
"Gestetner"
],
"required": true
},
"drum_count": {
"label": "Number of Drums",
"description": "The number of drums that can be printed with a single pass (1 for single-drum machines, 2 for two-drum machines).",
"type": "number",
"suggestedvalues": [
"1",
"2"
],
"required": true
},
"launch_year": {
"label": "Launch year",
"description": "The year the line was launched",
"type": "number"
},
"discontinued_year": {
"label": "Discontinued year",
"description": "The year the last machine in the line was discontinued.",
"type": "number"
},
"status": {
"label": "Status",
"description": "The status of the series as a whole (if any machines are still Active, the series should be classified as Active).",
"type": "string",
"suggestedvalues": [
"Active",
"Discontinued",
"Obsolete"
]
},
"tagline": {
"label": "Tagline",
"description": "A manufacturer provided tagline for the series, usually used in spec sheets + promotional material.",
"example": "Greater Riso",
"type": "string"
},
"machines": {
"label": "Machines",
"description": "A list of machines in the series. These are implemented with Template:Duplicator series/machine—please use the page form Form:Duplicator series to edit them.",
"type": "content"
}
},
"description": "The main template for the \"Duplicator series\" class. This template handles semantic annotation and transcludes display templates for the data (mainly Template:Infobox duplicator series).",
"format": "block"
}
</templatedata>
</noinclude><!--
--><includeonly>{{Infobox duplicator series
   | title            = {{{series|}}}
   | title            = {{{series|}}}
   | brand            = {{{brand|}}}
   | brand            = {{{brand|}}}
   | drum_number      = {{{drum_number|}}}
   | drum_count        = {{{drum_count|}}}
   | launch_year      = {{{launch_year|}}}
   | launch_year      = {{{launch_year|}}}
   | discontinued_year = {{{discontinued_year|}}}
   | discontinued_year = {{{discontinued_year|}}}
   | status            = {{{status|}}}
   | status            = {{{status|}}}
   | nickname          = {{{nickname|}}}
   | tagline          = {{{tagline|}}}
}}
}}<!--
[[Category:Machine series]]
-->{{{machines|}}}<!--
{{Machines in series|{{{series|}}}}}
-->[[Category:Duplicator series]]{{Shortcut|{{{series|}}}}}<!--
</includeonly>
-->{{#set:
{{#set:
     Has brand        = {{{brand|}}}
     Has brand        = {{{brand|}}}
   | Is series        = {{{series|}}}
   | Is series        = {{{series|}}}
   | Uses one drum     = {{#ifeq:{{{drum_number|}}}|1|true|false}}
   | Uses drum count   = {{{drum_count|}}}
   | Uses two drums    = {{#ifeq:{{{drum_number|}}}|2|true|false}}
   | Was launched      = {{{launch_year|}}}
   | Was launched      = {{{launch_year|}}}
   | Was discontinued  = {{{discontinued_year|}}}
   | Was discontinued  = {{{discontinued_year|}}}
   | Has status        = {{{status|}}}
   | Has status        = {{{status|}}}
   | Has nickname      = {{{nickname|}}}
   | Has tagline      = {{{tagline|}}}
}}
}}</includeonly>

Latest revision as of 17:07, 16 December 2024

Warning: Class template
This is the main template for the Duplicator series class—it should primarily be used with Form:Duplicator series to create or edit associated pages, and not invoked in other circumstances. Most of the content can be edited with the VisualEditor, but for best functionality please use the specified form.

Pages which use this template are listed at Category:Duplicator series.

TemplateData

The main template for the "Duplicator series" class. This template handles semantic annotation and transcludes display templates for the data (mainly Template:Infobox duplicator series).

Template parameters[Edit template data]

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Series codeseries

The identifying series code for machines in this line (i.e. GR, MZ, SF, etc. for Riso).

Example
FR
Stringrequired
Brandbrand

The manufacturer of this series.

Suggested values
Riso Ricoh Gestetner
Stringrequired
Number of Drumsdrum_count

The number of drums that can be printed with a single pass (1 for single-drum machines, 2 for two-drum machines).

Suggested values
1 2
Numberrequired
Launch yearlaunch_year

The year the line was launched

Numberoptional
Discontinued yeardiscontinued_year

The year the last machine in the line was discontinued.

Numberoptional
Statusstatus

The status of the series as a whole (if any machines are still Active, the series should be classified as Active).

Suggested values
Active Discontinued Obsolete
Stringoptional
Taglinetagline

A manufacturer provided tagline for the series, usually used in spec sheets + promotional material.

Example
Greater Riso
Stringoptional
Machinesmachines

A list of machines in the series. These are implemented with Template:Duplicator series/machine—please use the page form Form:Duplicator series to edit them.

Contentoptional