Template:Ink: Difference between revisions

From stencil.wiki
No edit summary
No edit summary
Tag: Manual revert
 
(56 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<noinclude>
<noinclude>{{Class template|class=Ink|category=Inks}}
{{#template_params:}}
 
</noinclude>
== TemplateData ==
{{#set:
<templatedata>
    Has Japanese name = {{{japanese_name|}}}
{
  | Has brand         = {{{brand|}}}
"params": {
  | Has series       = {{{series|}}}
"japanese_name": {
  | Has display hex  = {{{display_hex|}}}
"label": "Japanese name",
}}
"description": "The Japanese name for the ink (if available/provided by the manufacturer).",
{{Infobox ink
"type": "string"
},
"brand": {
"label": "Brand",
"description": "The brand of manufacture (Riso, Ricoh, etc.) for the color of ink. Generic inks may also be listed on this page—but this attribute should reflect the original brand.",
"type": "string",
"suggestedvalues": [
"Riso",
"Riso Compatible",
"Ricoh"
],
"required": true
},
"series": {
"label": "Series",
"description": "The series name that the ink is part of (for Riso, these are \"Standard,\" \"Special Edition,\" and \"Custom\").",
"type": "string",
"suggestedvalues": [
"Standard",
"Special Edition",
"Custom",
"Mixed"
],
"suggested": true
},
"hex": {
"label": "Hex code",
"description": "The hex code for the color (without a pound sign).",
"example": "AC936E",
"type": "string",
"suggested": true
},
"rgb": {
"label": "RGB",
"description": "The RGB code for the color—this is used for its display throughout the wiki. It must formatted as a comma-separated list with no spaces: XXX,XXX,XXX",
"example": "172,147,110",
"type": "string",
"required": true
},
"cmyk": {
"label": "CMYK",
"description": "The CMYK code for the color. It must formatted as a comma-separated list with no spaces: XX,XX,XX,XX",
"example": "22,33,68,8",
"type": "string",
"suggested": true
},
"cielab": {
"label": "CIELab*",
"description": "The CIELab* code for the color. It must formatted as a comma-separated list with no spaces: XX,XX,XX",
"example": "67,8,20",
"type": "string",
"suggested": true
},
"pantone": {
"label": "Pantone",
"description": "The Pantone swatch code for the color.",
"example": "872 U",
"type": "string",
"deprecated": "Pantone is no longer supported by Adobe, so this is less used—but can still be valuable for color matching inks to papers etc."
},
"products": {
"label": "Products",
"description": "A list of product codes associated with the ink. These are implemented with Template:Ink/product—please use the page form Form:Ink to edit them.",
"type": "content"
}
},
"description": "The main template for the \"Ink\" class. This template handles semantic annotation and transcludes display templates for the data (mainly Template:Infobox ink).",
"paramOrder": [
"brand",
"series",
"japanese_name",
"rgb",
"hex",
"cmyk",
"cielab",
"pantone",
"products"
],
"format": "block"
}
</templatedata>
</noinclude><includeonly>{{Infobox ink
   | title            = {{PAGENAME}}
   | title            = {{PAGENAME}}
   | japanese_name    = {{{japanese_name|}}}
   | japanese_name    = {{{japanese_name|}}}
   | brand            = {{{brand|}}}
   | brand            = {{{brand|}}}
   | series            = {{{series|}}}
   | series            = {{{series|}}}
   | hex              = {{{display_hex|}}}
   | hex              = {{{hex|}}}
}}
  | rgb              = {{{rgb|}}}
<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;"
  | cmyk              = {{{cmyk|}}}
! style="text-align: center; background-color:#ccccff;" colspan="2" |<span style="font-size: larger;">{{PAGENAME}}</span>
  | cielab            = {{{cielab|}}}
|-
  | pantone          = {{{pantone|}}}
|}
  | products          = {{{products|}}}
 
}}<!--
[[Category:Inks]]
-->[[Category:Inks]]<!--
</includeonly>
-->{{#if:{{{brand|}}}|[[Category:{{ucfirst:{{{brand}}}}} inks]]|}}<!--
-->{{#set:
    Has Japanese name = {{{japanese_name|}}}
  | Has brand        = {{{brand|}}}
  | Has series        = {{{series|}}}
  | Has hex          = {{{hex|}}}
  | Has rgb          = {{{rgb|}}}
  | Has cmyk          = {{{cmyk|}}}
  | Has cielab        = {{{cielab|}}}
  | Has pantone      = {{{pantone|}}}
}}</includeonly>

Latest revision as of 11:49, 18 December 2024

Warning: Class template
This is the main template for the Ink class—it should primarily be used with Form:Ink 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:Inks.

TemplateData

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

Template parameters[Edit template data]

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Brandbrand

The brand of manufacture (Riso, Ricoh, etc.) for the color of ink. Generic inks may also be listed on this page—but this attribute should reflect the original brand.

Suggested values
Riso Riso Compatible Ricoh
Stringrequired
Seriesseries

The series name that the ink is part of (for Riso, these are "Standard," "Special Edition," and "Custom").

Suggested values
Standard Special Edition Custom Mixed
Stringsuggested
Japanese namejapanese_name

The Japanese name for the ink (if available/provided by the manufacturer).

Stringoptional
RGBrgb

The RGB code for the color—this is used for its display throughout the wiki. It must formatted as a comma-separated list with no spaces: XXX,XXX,XXX

Example
172,147,110
Stringrequired
Hex codehex

The hex code for the color (without a pound sign).

Example
AC936E
Stringsuggested
CMYKcmyk

The CMYK code for the color. It must formatted as a comma-separated list with no spaces: XX,XX,XX,XX

Example
22,33,68,8
Stringsuggested
CIELab*cielab

The CIELab* code for the color. It must formatted as a comma-separated list with no spaces: XX,XX,XX

Example
67,8,20
Stringsuggested
Pantonepantone

The Pantone swatch code for the color.

Example
872 U
Stringdeprecated
Productsproducts

A list of product codes associated with the ink. These are implemented with Template:Ink/product—please use the page form Form:Ink to edit them.

Contentoptional