Form:Ink: Difference between revisions

From stencil.wiki
No edit summary
No edit summary
Line 19: Line 19:
| {{{field|series|input type=radiobutton|property=Has series|default=Standard|values=Standard,Special Edition,Custom}}}
| {{{field|series|input type=radiobutton|property=Has series|default=Standard|values=Standard,Special Edition,Custom}}}
|-
|-
! Display Hex:  
! Hex Code:  
| {{{field|display_hex|input type=regexp|regexp=/^[0-9A-F]{6}$/|message=Must use the format XXXXXX!|property=Has display hex}}}
| {{{field|hex
| input type=regexp
| regexp=/^[0-9A-F]{6}$/
| message=Must use the format XXXXXX!
| placeholder=XXXXXX
| property=Has hex
}}}
|-
|-
! RGB:
! RGB:
| {{{field|rgb|input type=regexp|regexp=/^\s*\(?\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]?|0)\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]?|0)\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]?|0)\s*\)?\s*$
| {{{field|rgb
/|message=Must use the format (XXX, XXX, XXX)!|property=Has rgb}}}
| input type=regexp
| regexp=/^(255|[0-9]{1,2}|[1-2][0-9]{2}),(255|[0-9]{1,2}|[1-2][0-9]{2}),(255|[0-9]{1,2}|[1-2][0-9]{2})$/
| message=Must use the format XXX,XXX,XXX
| placeholder=XXX,XXX,XXX
| property=Has rgb
}}}
|-
|-
! CMYK:
! CMYK:
| {{{field|raw_cmyk
| {{{field|cmyk
| input type=regexp
| input type=regexp
| regexp=/^\s*\(?\s*(100|[1-9]?[0-9])\s*,\s*(100|[1-9]?[0-9])\s*,\s*(100|[1-9]?[0-9])\s*,\s*(100|[1-9]?[0-9])\s*\)?\s*$/
| regexp=/^(100|[0-9]{1,2}),(100|[0-9]{1,2}),(100|[0-9]{1,2}),(100|[0-9]{1,2})$/
| message=Must use the format (XXX, XXX, XXX, XXX) or XXX,XXX,XXX,XXX!}}}
| message=Must use the format XXX,XXX,XXX,XXX
{{#set:cmyk={{#rreplace:{{{raw_cmyk}}}|^\s*\(?\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)?\s*$|\1,\2,\3,\4}}}}
| placeholder=XXX,XXX,XXX,XXX
| property=Has cmyk
}}}
|-
|-
! CIELab:
! CIELab:
| {{{field|cielab|input type=regexp|regexp=/^\s*\(?\s*((100)|[0-9]{1,2}),\s*-?((100)|[0-9]{1,2}),\s*-?((100)|[0-9]{1,2})\s*\)?$/|message=Must use the format (XXX, XXX, XXX)!|property=Has cielab}}}
| {{{field|cielab
|input type=regexp
|regexp=/^([0-9]{1,3}|100),(-?1[0-2][0-8]|-?[0-9]{1,2}|127),(-?1[0-2][0-8]|-?[0-9]{1,2}|127)$/
|message=Must use the format XXX,XXX,XXX
|placeholder=XXX,XXX,XXX
|property=Has cielab}}}
|-
|-
! Pantone:
! Pantone:

Revision as of 15:42, 3 December 2024

This is the "Ink" form. To create a page with this form, enter the page name below; if a page with that name already exists, you will be sent to a form to edit that page.