Form:Ink: Difference between revisions

From stencil.wiki
No edit summary
No edit summary
 
(20 intermediate revisions by 2 users not shown)
Line 5: Line 5:


{{#forminput:form=Ink|autocomplete on category=Inks}}
{{#forminput:form=Ink|autocomplete on category=Inks}}
</noinclude><includeonly>
</noinclude><includeonly>
<div id="wikiPreview" style="display: none; padding-bottom: 25px; margin-bottom: 25px; border-bottom: 1px solid #AAAAAA;"></div>
<div id="wikiPreview" style="display: none; padding-bottom: 25px; margin-bottom: 25px; border-bottom: 1px solid #AAAAAA;"></div>
Line 17: Line 16:
|-
|-
! Series:  
! Series:  
| {{{field|series|input type=radiobutton|property=Has series|default=Standard|values=Standard,Special Edition,Custom}}}
| {{{field|series|input type=dropdown|property=Has series|default=Standard|values=Standard, Special Edition, Custom, Mixed}}}
|-
|-
! 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-Fa-f]{6}$/
| message=Must use the format XXXXXX, where X is 0–9 or A–F!
| placeholder=FFFFFF
| 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=/^(25[0-5]!2[0-4][0-9]!1[0-9]{2}![1-9]?[0-9]),(25[0-5]!2[0-4][0-9]!1[0-9]{2}![1-9]?[0-9]),(25[0-5]!2[0-4][0-9]!1[0-9]{2}![1-9]?[0-9])$/
| message=Must use the format XXX,XXX,XXX, where each value is 0 to 255, comma separated, and no spaces allowed!
| placeholder=255,255,255
| 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, where each value is 0 to 100, comma separated, and no spaces allowed!
{{#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=100,100,100,100
| 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=/^(100![0-9]{1,2}),-?(100![0-9]{1,2}),-?(100![0-9]{1,2})$/
| message=Must use the format XXX,XXX,XXX, where L* is 0–100, and a*, b* are -100 to 100!
| placeholder=34,13,-51
| property=Has cielab
}}}
|-
|-
! Pantone:
! Pantone:
| {{{field|pantone|property=Has pantone}}}
| {{{field|pantone|property=Has pantone|placeholder=185 U}}}
|-
|-
! Part(s):  
! Product No.(s):  
| {{{field|parts|holds template}}}
| {{{field|products|holds template}}}
|-
! Color Value(s):
| {{{field|color_value}}}
|}
|}
{{{end template}}}
{{{end template}}}


{{{for template|Ink part|multiple|embed in field=Ink[parts]}}}
{{{for template|Ink/product|multiple|embed in field=Ink[products]}}}
{| class="formtable"
{| class="formtable"
! Part ID:
! Line/Type:
| {{{field|part_id|type=regexp|regexp=/^S-[0-9]+[A-Z]*$/|message=Must be in the format S-####...|property=Has part ID|mandatory}}}
| {{{field|product_line
| input type=text with autocomplete
| property=Has product line
| values=GR/RP, Z-Type, E-Type, F-Type, FII-Type
| default=Z-Type
| mandatory
}}}
|-
|-
! Line/Type:
! Product ID:
| {{{field|part_line|series|input type=text with autocomplete|property=Has part line|values=GR/RP, Z-Type, E-Type,F-Type,FII-Type|default=Z-Type|mandatory}}}
| {{{field|product_id
| input type=regexp
| regexp=/^S-[0-9]+[A-Z]*$/
| message=Must be in the format S-#### with optional trailing letters.
| property=Has product ID
| mandatory
}}}
|-
|-
! Label:
! Label:
| {{{field|part_label|property=Has part label}}}
| {{{field|product_label|property=Has product label}}}
|}
|}
{{{end template}}}
{{{end template}}}


'''Free text:'''
'''Free text:'''
 
{{{standard input|free text|rows=10|editor=wikieditor|preload=Template:Ink/preload}}}<!--
{{{standard input|free text|rows=10}}}
--></includeonly>
</includeonly>

Latest revision as of 12:01, 18 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.