Template:Infobox ink: Difference between revisions

From stencil.wiki
No edit summary
No edit summary
 
(28 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{| align="right" class="infobox"
<noinclude>{{Infobox template|class=Ink|category=Inks}}</noinclude><!--
--><includeonly><!--
-->{| align="right" class="infobox"
|-
|-
! colspan="2" class="infobox-title" | {{PAGENAME}}  
! colspan="2" class="infobox-title" | {{{title|}}}
{{#if:{{{japanese_name|}}}|<tr><th colspan="2" class="infobox-subheader">{{{japanese_name}}}</th></tr>|}}<!--
-->{{#if:{{{rgb|}}}|<tr><th colspan="2"><div style="border:.5px solid black; height:.75rem; width:100%; background-color:rgba({{{rgb|255,255,255}}},1);"></div></th></tr>|}}<!--
-->{{#if:{{{hex|}}}{{{rgb|}}}{{{cmyk|}}}{{{cielab|}}}{{{pantone|}}}|<tr><th colspan="2" class="infobox-header">Color coordinates</th></tr>|}}<!--
-->{{#if:{{{hex|}}}|<tr><th scope="row">Hex</th><td><code><nowiki>#</nowiki>{{uc:{{{hex|}}}}}</code></td></tr>|}}<!--
-->{{#if:{{{rgb|}}}|<tr><th scope="row">RGB</th><td><code>({{#rreplace:{{{rgb}}}|,|, }})</code></td></tr>|}}<!--
-->{{#if:{{{cmyk|}}}|<tr><th scope="row">CMYK</th><td><code>({{#rreplace:{{{cmyk}}}|,|, }})</code></td></tr>|}}<!--
-->{{#if:{{{cielab|}}}|<tr><th scope="row">CIELab*</th><td><code>({{#rreplace:{{{cielab}}}|,|, }})</code></td></tr>|}}<!--
-->{{#if:{{{pantone|}}}|<tr><th scope="row">Pantone</th><td><code>{{{pantone}}}</code></td></tr>|}}
|-
|-
! colspan="2" class="infobox-subheader" | {{{japanese_name}}}
!colspan="2" class="infobox-header"| Ink information
|-
! colspan="2" | <div style="border:.5px solid black; height:.75rem; width:100%; background-color:#{{{hex|#ffffff}}};"></div>
|-
!colspan="2" class="infobox-header"| Color Coordinates
|-
! scope="row" | Hex
| {{#if:{{{rgb|}}}|<nowiki>#</nowiki>{{uc:{{{hex|}}}}}|}}
|-
! scope="row" | RGB
| {{#if:{{{rgb|}}}|({{#rreplace:{{rgb}}|,|, }})|}}
|-
! scope="row" |CMYK
| {{#if:{{{cmyk|}}}|
  ({{#rmatch:{{{cmyk}}}|/^\s*\(?\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)?\s*$/|$1}}, {{#rmatch:{{{cmyk}}}|/^\s*\(?\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)?\s*$/|$2}}, {{#rmatch:{{{cmyk}}}|/^\s*\(?\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)?\s*$/|$3}}, {{#rmatch:{{{cmyk}}}|/^\s*\(?\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)?\s*$/|$4}})|}}
|-
! scope="row" |CIELab
| {{#if:{{{cielab|}}}|
({{#rmatch:{{{cielab|}}}|/^\s*\(?\s*([0-9]{1,3}),\s*(-?[0-9]{1,3}),\s*(-?[0-9]{1,3})\s*\)?$/|$1}}, {{#rmatch:{{{cielab|}}}|/^\s*\(?\s*([0-9]{1,3}),\s*(-?[0-9]{1,3}),\s*(-?[0-9]{1,3})\s*\)?$/|$2}}, {{#rmatch:{{{cielab|}}}|/^\s*\(?\s*([0-9]{1,3}),\s*(-?[0-9]{1,3}),\s*(-?[0-9]{1,3})\s*\)?$/|$3}})
|}}
|-
! scope="row" |Pantone
| {{{pantone}}}
|-
!colspan="2" class="infobox-header"| Ink Information
|-
|-
! scope="row" | Brand
! scope="row" | Brand
Line 33: Line 19:
|-
|-
! scope="row" | Series  
! scope="row" | Series  
| {{{series}}}
| {{{series}}}<!--
|}
-->{{#if:{{{products|}}}|<tr><th colspan="2" class="infobox-header">Product number(s)</th></tr>{{{products|}}}|}}
|}</includeonly>

Latest revision as of 23:31, 16 December 2024

Warning: Infobox template
This is an infobox template for the Ink class—it is used as a display template for Template:Ink, with values from the associated Form:Ink, and should never be transcluded outside of that context.

Pages which use this infobox are listed at Category:Inks.